Skip to content

Commit 8e55282

Browse files
committed
fix workflow gradle
1 parent 40cabff commit 8e55282

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Gradle
22
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
33
org.gradle.caching=true
4-
org.gradle.configuration-cache=true
4+
org.gradle.configuration-cache=false
55
#Kotlin
66
kotlin.code.style=official
77
#MPP

library/build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ kotlin {
4545
}
4646
}
4747
macosArm64 {
48+
val root = project.rootDir
4849
compilations.getByName("main") {
4950
cinterops {
5051
val speex by creating {
51-
extraOpts("-libraryPath", "${rootDir}/speex/lib/macos")
52-
compilerOpts.add("-I${rootDir}/speex/include")
53-
compilerOpts.add("-I${rootDir}/speex/source/include")
52+
extraOpts("-libraryPath", "${root}/speex/lib/macos")
53+
compilerOpts.add("-I${root}/speex/include")
54+
compilerOpts.add("-I${root}/speex/source/include")
5455
}
5556
}
5657
}
@@ -60,12 +61,13 @@ kotlin {
6061
iosArm64(),
6162
iosSimulatorArm64()
6263
).forEach {
64+
val root = project.rootDir
6365
it.compilations.getByName("main") {
6466
cinterops {
6567
val speex by creating {
66-
extraOpts("-libraryPath", "${rootDir}/speex/lib/ios")
67-
compilerOpts.add("-I${rootDir}/speex/include")
68-
compilerOpts.add("-I${rootDir}/speex/source/include")
68+
extraOpts("-libraryPath", "${root}/speex/lib/ios")
69+
compilerOpts.add("-I${root}/speex/include")
70+
compilerOpts.add("-I${root}/speex/source/include")
6971
}
7072
}
7173
}

0 commit comments

Comments
 (0)