File tree Expand file tree Collapse file tree 5 files changed +12
-34
lines changed
plugin/src/main/java/pl/lemanski/plugin Expand file tree Collapse file tree 5 files changed +12
-34
lines changed Original file line number Diff line number Diff line change @@ -2,28 +2,10 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2
2
3
3
plugins {
4
4
alias(libs.plugins.kotlinMultiplatform)
5
- id(" maven-publish" )
6
5
}
7
6
8
- group = " pl.lemanski.pandamidi"
9
- version = " 0.0.1"
10
-
11
7
kotlin {
12
- mingwX64().apply {
13
- val main by compilations.getting
14
-
15
- main.compileTaskProvider.configure {
16
- compilerOptions {
17
- freeCompilerArgs.add(" -Xbinary=gc=noop" )
18
- }
19
- }
20
-
21
- main.cinterops.create(" libtsf" ) {
22
- definitionFile = File (rootDir, " native/libtsf.def" )
23
- includeDirs.headerFilterOnly(" $rootDir \\ native\\ include" )
24
- extraOpts(" -libraryPath" , " $rootDir \\ native\\ lib" )
25
- }
26
- }
8
+ mingwX64()
27
9
28
10
@OptIn(ExperimentalKotlinGradlePluginApi ::class )
29
11
compilerOptions {
@@ -41,10 +23,4 @@ kotlin {
41
23
implementation(libs.kotlin.test)
42
24
}
43
25
}
44
- }
45
-
46
- publishing {
47
- repositories {
48
- mavenLocal()
49
- }
50
26
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
package = tinySoundFont
2
2
headerFilter = "tsf/*"
3
3
headers = tsf/tsfCInterop.h
4
- staticLibraries.mingw_x64 = libtsf.a
4
+ staticLibraries.mingw_x64 = libtsf.a
5
+ staticLibraries.linux_x64 = libtsf.a
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ abstract class KonanPlugin : Plugin<Project> {
22
22
project.layout.projectDirectory
23
23
.dir(extension.sourceDir.get())
24
24
.asFileTree
25
- // .matching {
26
- // // TODO
27
- // }
28
25
)
29
26
30
27
includeDirs.from(project.layout.projectDirectory.dir(extension.headerDir))
Original file line number Diff line number Diff line change @@ -16,16 +16,20 @@ kotlin {
16
16
mingwX64().apply {
17
17
val main by compilations.getting
18
18
19
- main.compileTaskProvider.configure {
20
- compilerOptions {
21
- freeCompilerArgs.add( " -Xbinary=gc=noop " )
22
- }
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
23
}
24
+ }
25
+
26
+ linuxX64().apply {
27
+ val main by compilations.getting
24
28
25
29
main.cinterops.create(" libtsf" ) {
26
30
definitionFile = File (rootDir, " native/libtsf.def" )
27
31
includeDirs.headerFilterOnly(" $rootDir \\ native\\ include" )
28
- extraOpts(" -libraryPath" , " $rootDir \\ native\\ lib" )
32
+ extraOpts(" -libraryPath" , " $rootDir \\ native\\ lib\\ linux_x64 " )
29
33
}
30
34
}
31
35
You can’t perform that action at this time.
0 commit comments