File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -13,23 +13,18 @@ group = "pl.lemanski.tinySoundFont"
13
13
version = " 0.0.1"
14
14
15
15
kotlin {
16
- mingwX64().apply {
17
- val main by compilations.getting
18
-
19
- main.cinterops.create(" libtsf" ) {
20
- definitionFile = File (rootDir, " native/libtsf.def" )
21
- includeDirs.headerFilterOnly(" $rootDir \\ native\\ include" )
22
- extraOpts(" -libraryPath" , " $rootDir \\ native\\ lib\\ mingw_x64" )
23
- }
24
- }
25
-
26
- linuxX64().apply {
27
- val main by compilations.getting
28
-
29
- main.cinterops.create(" libtsf" ) {
30
- definitionFile = File (rootDir, " native/libtsf.def" )
31
- includeDirs.headerFilterOnly(" $rootDir \\ native\\ include" )
32
- extraOpts(" -libraryPath" , " $rootDir \\ native\\ lib\\ linux_x64" )
16
+ listOf (
17
+ mingwX64(),
18
+ linuxX64()
19
+ ).forEach { target ->
20
+ target.apply {
21
+ val main by compilations.getting
22
+
23
+ main.cinterops.create(" libtsf" ) {
24
+ definitionFile = File (rootDir, " native/libtsf.def" )
25
+ includeDirs.headerFilterOnly(" $rootDir \\ native\\ include" )
26
+ extraOpts(" -libraryPath" , " $rootDir \\ native\\ lib\\ ${target.name} " )
27
+ }
33
28
}
34
29
}
35
30
@@ -39,7 +34,6 @@ kotlin {
39
34
}
40
35
41
36
sourceSets {
42
-
43
37
commonMain.dependencies {
44
38
implementation(libs.coroutines.core)
45
39
}
You can’t perform that action at this time.
0 commit comments