Skip to content

Commit a5d0977

Browse files
author
ssjia
committed
[ET][jni] Provide opt-out config for vulkan backend dependency
Pull Request resolved: #15682 ## Context IGVR can't use downloadable modules so an opt out path is required to avoid regressing APK size from including the vulkan backend. ghstack-source-id: 322121420 @exported-using-ghexport Differential Revision: [D86547777](https://our.internmc.facebook.com/intern/diff/D86547777/)
1 parent aba44fd commit a5d0977

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

extension/android/BUCK

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ non_fbcode_target(_kind = fb_android_library,
2222
language = "JAVA",
2323
deps = [
2424
"//fbandroid/java/com/facebook/jni:jni",
25-
"//xplat/executorch/backends/vulkan:vulkan_backend_lib_static",
2625
"//fbandroid/libraries/soloader/java/com/facebook/soloader/nativeloader:nativeloader",
27-
],
26+
] + ([
27+
"//xplat/executorch/backends/vulkan:vulkan_backend_lib_static",
28+
] if read_config("executorch", "minimal_jni", "false") == "false" else []),
2829
)
2930

3031
non_fbcode_target(_kind = fb_android_library,

extension/android/jni/BUCK

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ non_fbcode_target(_kind = fb_android_cxx_library,
6666
"//xplat/executorch/extension/runner_util:inputs_static",
6767
"//xplat/executorch/extension/tensor:tensor_static",
6868
"//xplat/executorch/kernels/quantized:generated_lib_static",
69+
] + ([
6970
"//xplat/executorch/backends/vulkan:vulkan_backend_lib_static",
70-
],
71+
] if read_config("executorch", "minimal_jni", "false") == "false" else []),
7172
)
7273

7374
non_fbcode_target(_kind = fb_android_cxx_library,

0 commit comments

Comments
 (0)