Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Sep 26, 2023
1 parent 302eae5 commit cfcadd2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,36 +98,37 @@ fun Project.configureKmpTargets() {
}

withIf(!COMMON_JVM_ONLY, kmpExt) {
if (hasJs) {
// FIXME - configure JS
js(KotlinJsCompilerType.IR) {
nodejs()
}
}

if (hasApple) {
macosX64()
macosArm64()
ios()
watchos()
tvos()
}
// FIXME - configure JS
// if (hasJs) {
// js(KotlinJsCompilerType.IR) {
// nodejs()
// }
// }

// if (hasApple) {
// macosX64()
// macosArm64()
// ios()
// watchos()
// tvos()
// }

if (hasLinux) {
linuxX64()
linuxArm64()
}

if (hasWindows) {
mingwX64()
// FIXME - okio missing arm64 target support
// linuxArm64()
}

// if (hasWindows) {
// mingwX64()
// }
//
if (hasDesktop) {
linuxX64()
linuxArm64()
mingwX64()
macosX64()
macosArm64()
// linuxArm64()
// mingwX64()
// macosX64()
// macosArm64()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ val HOST_NAME = when {
else -> error("Unknown os name `$OS_NAME`")
}

// TODO - enable real logic when ready to add additional targets
// val Project.COMMON_JVM_ONLY get() = IDEA_ACTIVE && properties["aws.kotlin.ide.jvmAndCommonOnly"] == "true"
val Project.COMMON_JVM_ONLY get() = true
val Project.COMMON_JVM_ONLY get() = IDEA_ACTIVE && properties["aws.kotlin.ide.jvmAndCommonOnly"] == "true"

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

0 comments on commit cfcadd2

Please sign in to comment.