Skip to content

Commit

Permalink
Use linux code for linux/macos/mingw targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Tomin committed Sep 11, 2020
1 parent d51e868 commit f27469e
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle.kts
Expand Up @@ -60,6 +60,8 @@ kotlin {
//nodejs()
}
linuxX64("linuxX64")
macosX64("macosX64")
mingwX64("mingwX64")
sourceSets {
val commonMain by getting {}
val commonTest by getting {
Expand Down Expand Up @@ -90,6 +92,18 @@ kotlin {
implementation(kotlin("test-js"))
}
}
val nativeMain by creating {
dependsOn(commonMain)
}
val linuxX64Main by getting {
dependsOn(nativeMain)
}
val mingwX64Main by getting {
dependsOn(nativeMain)
}
val macosX64Main by getting {
dependsOn(nativeMain)
}
}
}

Expand Down
1 change: 1 addition & 0 deletions gradle.properties
@@ -0,0 +1 @@
kotlin.mpp.enableGranularSourceSetsMetadata=true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f27469e

Please sign in to comment.