File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments