Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use linux code for linux/macos/mingw targets #131

Merged
merged 1 commit into from Sep 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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