Skip to content

Commit

Permalink
Remove plugin from build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajefento committed Nov 30, 2024
1 parent a529e33 commit bff9e7f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ android.useAndroidX=true

#Kotlin
kotlin.code.style=official
kotlin.mpp.enableCInteropCommonization=true
kotlin.native.enableKlibsCrossCompilation=true
46 changes: 23 additions & 23 deletions soundfont/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.konan.target.KonanTarget
import org.jetbrains.kotlin.konan.util.DependencyDirectories.localKonanDir
import pl.lemanski.plugin.KonanPluginExtension
// import pl.lemanski.plugin.KonanPluginExtension

plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.maven.publish)
id("pl.lemanski.plugin")
// id("pl.lemanski.plugin")
}

val s: String = File.separator
Expand Down Expand Up @@ -74,27 +74,27 @@ publishing {
}
}

configure<KonanPluginExtension> {
targets = buildList {
add(KonanTarget.LINUX_X64)
add(KonanTarget.MINGW_X64)
if (System.getProperty("os.name").lowercase().contains("mac")) {
add(KonanTarget.IOS_ARM64)
add(KonanTarget.IOS_SIMULATOR_ARM64)
add(KonanTarget.IOS_X64)
add(KonanTarget.MACOS_X64)
add(KonanTarget.MACOS_ARM64)
}
}
sourceDir = "${rootDir}/native/src"
headerDir = "${rootDir}/native/include"
outputDir = "${rootDir}/native/lib"
libName = "tsf"
konanPath = localKonanDir.listFiles()?.first {
print(it.name)
it.name.contains(libs.versions.kotlin.get())
}?.absolutePath
}
//configure<KonanPluginExtension> {
// targets = buildList {
// add(KonanTarget.LINUX_X64)
// add(KonanTarget.MINGW_X64)
// if (System.getProperty("os.name").lowercase().contains("mac")) {
// add(KonanTarget.IOS_ARM64)
// add(KonanTarget.IOS_SIMULATOR_ARM64)
// add(KonanTarget.IOS_X64)
// add(KonanTarget.MACOS_X64)
// add(KonanTarget.MACOS_ARM64)
// }
// }
// sourceDir = "${rootDir}/native/src"
// headerDir = "${rootDir}/native/include"
// outputDir = "${rootDir}/native/lib"
// libName = "tsf"
// konanPath = localKonanDir.listFiles()?.first {
// print(it.name)
// it.name.contains(libs.versions.kotlin.get())
// }?.absolutePath
//}

//

Expand Down

0 comments on commit bff9e7f

Please sign in to comment.