Skip to content

Commit

Permalink
change to opt-out
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Oct 26, 2023
1 parent 81a6d80 commit 94b35d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fun Project.configureKmpTargets() {
configureJvm()
}

if (NATIVE_ENABLED && hasLinux) {
if (hasLinux && !NATIVE_DISABLED) {
configureLinux()
}

Expand All @@ -105,13 +105,13 @@ fun Project.configureKmpTargets() {
// FIXME Configure Apple
// FIXME Configure Windows

withIf(NATIVE_ENABLED && hasLinux, kmpExt) {
withIf(hasLinux && !NATIVE_DISABLED, kmpExt) {
linuxX64()
// FIXME - Okio missing arm64 target support
// linuxArm64()
}

withIf(NATIVE_ENABLED && hasDesktop, kmpExt) {
withIf(hasDesktop && !NATIVE_DISABLED, kmpExt) {
linuxX64()
// FIXME Configure desktop
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ val HOST_NAME = when {

val Project.COMMON_JVM_ONLY get() = IDEA_ACTIVE && properties["aws.kotlin.ide.jvmAndCommonOnly"] == "true"

val Project.NATIVE_ENABLED get() = properties["aws.sdk.kotlin.native"] == "true"
val Project.NATIVE_DISABLED get() = properties["aws.kotlin.disableNative"] == "true"

/**
* Scope down the native target enabled when working in intellij
Expand Down

0 comments on commit 94b35d4

Please sign in to comment.