Skip to content

Commit

Permalink
Building fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sh123 committed Oct 17, 2024
1 parent 656ff08 commit e339dc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions libcodec2-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ android {

// As per: https://github.com/googlesamples/android-ndk/blob/master/hello-libs/app/build.gradle
tasks.whenTaskAdded { task ->
if (task.name == 'externalNativeBuildRelease') {
if (task.name == 'externalNativeBuildRelease' || task.name == "externalNativeBuildDebug") {
task.dependsOn compileCodec2
} else if (task.name == 'externalNativeBuildDebug') {
} else if (task.name == 'buildCMakeDebug' || task.name == "buildCMakeRelease") {
task.dependsOn compileCodec2
}
}

task compileCodec2 {

doFirst {
project.file("build/codec2_build_linux").mkdirs()
for(String abi : rootProject.ext.ABI_FILTERS.split(";")) {
Expand Down
4 changes: 2 additions & 2 deletions libopus-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ android {

// As per: https://github.com/googlesamples/android-ndk/blob/master/hello-libs/app/build.gradle
tasks.whenTaskAdded { task ->
if (task.name == 'externalNativeBuildRelease') {
if (task.name == 'externalNativeBuildRelease' || task.name == "externalNativeBuildDebug") {
task.dependsOn compileOpus
} else if (task.name == 'externalNativeBuildDebug') {
} else if (task.name == 'buildCMakeDebug' || task.name == "buildCMakeRelease") {
task.dependsOn compileOpus
}
}
Expand Down

0 comments on commit e339dc8

Please sign in to comment.