Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8dff6b8

Browse files
Use the stripped Vulkan validation library in Android engine builds by default (#51628)
The unstripped build will be used if GN is configured with the --no-stripped flag
1 parent 74d93dc commit 8dff6b8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

shell/platform/android/BUILD.gn

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,19 @@ action("android_jar") {
524524
apilevel26_toolchain = "//build/toolchain/android:clang_arm64_apilevel26"
525525
validation_layer_target =
526526
"//third_party/vulkan_validation_layers($apilevel26_toolchain)"
527-
validation_layer_out_dir =
528-
get_label_info(validation_layer_target, "root_out_dir")
529527
deps += [ validation_layer_target ]
528+
if (stripped_symbols) {
529+
validation_library = "lib.stripped/libVkLayer_khronos_validation.so"
530+
} else {
531+
validation_layer_out_dir =
532+
get_label_info(validation_layer_target, "root_out_dir")
533+
validation_library = rebase_path(
534+
"$validation_layer_out_dir/libVkLayer_khronos_validation.so")
535+
}
536+
530537
args += [
531538
"--native_lib",
532-
rebase_path("$validation_layer_out_dir/libVkLayer_khronos_validation.so"),
539+
validation_library,
533540
]
534541
if (current_cpu != "arm64") {
535542
# This may not be necessarily required anymore. It was kept to maintain

0 commit comments

Comments
 (0)