@@ -23,6 +23,7 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
2323 " -linker-options" ,
2424 " -lsqlite3 -L/usr/lib/x86_64-linux-gnu -L/usr/lib"
2525 )
26+
2627 HostManager .hostIsMingw -> listOf (" -linker-options" , " -lsqlite3 -Lc:\\ msys64\\ mingw64\\ lib" )
2728 else -> listOf (" -linker-options" , " -lsqlite3" )
2829 }
@@ -102,9 +103,11 @@ kotlin {
102103 target.compilations.getByName(" main" ).defaultSourceSet.dependsOn(mingwMain)
103104 target.compilations.getByName(" test" ).defaultSourceSet.dependsOn(nativeCommonTest)
104105 }
106+
105107 target.name.startsWith(" linux" ) -> {
106108 target.compilations.getByName(" test" ).defaultSourceSet.dependsOn(nativeCommonTest)
107109 }
110+
108111 else -> {
109112 target.compilations.getByName(" main" ).defaultSourceSet.dependsOn(appleMain)
110113 target.compilations.getByName(" test" ).defaultSourceSet.dependsOn(nativeCommonTest)
@@ -118,23 +121,13 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile> {
118121 kotlinOptions.freeCompilerArgs + = " -Xexpect-actual-classes"
119122}
120123
121- if (! HostManager .hostIsLinux) {
122- tasks.findByName(" linuxX64Test" )?.enabled = false
123- tasks.findByName(" linuxArm64Test" )?.enabled = false
124- tasks.findByName(" linkDebugTestLinuxX64" )?.enabled = false
125- tasks.findByName(" linkDebugTestLinuxArm64" )?.enabled = false
126- tasks.findByName(" publishLinuxX64PublicationToMavenRepository" )?.enabled = false
127- tasks.findByName(" publishLinuxArm64PublicationToMavenRepository" )?.enabled = false
128- }
129-
130- if (! HostManager .hostIsMingw) {
131- tasks.findByName(" mingwX64Test" )?.enabled = false
132- tasks.findByName(" linkDebugTestMingwX64" )?.enabled = false
133- tasks.findByName(" publishMingwX64PublicationToMavenRepository" )?.enabled = false
134- }
124+ listOf (
125+ " linuxX64Test" ,
126+ " linuxArm64Test" ,
127+ " linkDebugTestLinuxX64" ,
128+ " linkDebugTestLinuxArm64" ,
129+ " mingwX64Test" ,
130+ " linkDebugTestMingwX64" ,
131+ ).forEach { tasks.findByName(it)?.enabled = false }
135132
136133apply (from = " ../gradle/gradle-mvn-mpp-push.gradle" )
137-
138- tasks.register(" publishMac" ){
139- setDependsOn(tasks.filter { t -> t.name.startsWith(" publish" ) && t.name.endsWith(" ToMavenRepository" ) && ! t.name.contains(" Linux" ) }.map { it.name })
140- }
0 commit comments