Skip to content

Commit

Permalink
Faster build times for android generic flavor builds
Browse files Browse the repository at this point in the history
  • Loading branch information
korejan committed May 18, 2024
1 parent cdfd747 commit f4193e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ android {
Generic {
dimension 'headset'
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64', 'x86'
abiFilters = project.hasProperty('ABI') ? project.ABI.split(',') : ['arm64-v8a', 'armeabi-v7a', 'x86_64', 'x86']
}
externalNativeBuild.cmake.arguments += ["-DBUILD_LOADER=ON"]
}
Expand Down
4 changes: 4 additions & 0 deletions alvr/openxr-client/alxr-engine-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ fn main() {
"-PbuildDir={}",
gradle_output_dir.to_string_lossy()
))
.arg(format!(
"-PABI={}",
android_abi_name(&target_triple).unwrap()
))
.arg(gradle_task_from_profile(&profile, &product_flavor))
.current_dir(&android_dir)
.status()
Expand Down

0 comments on commit f4193e7

Please sign in to comment.