Skip to content

Commit 271dcef

Browse files
committed
fix workflow gradle
1 parent 40cabff commit 271dcef

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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)