When "--define=MEDIAPIPE_NO_JNI=1" used in compilation, no implementation in libandroid.so is used.

PiperOrigin-RevId: 513580575
This commit is contained in:
MediaPipe Team 2023-03-02 10:44:19 -08:00 committed by Copybara-Service
parent 6796977a04
commit 02ee934b3e

View File

@ -23,8 +23,13 @@ cc_library(
],
}),
hdrs = ["asset_manager_util.h"],
defines = select({
"//mediapipe/framework:android_no_jni": ["MEDIAPIPE_NO_JNI"],
"//conditions:default": [],
}),
linkopts = select({
"//conditions:default": [],
"//mediapipe/framework:android_no_jni": [],
"//mediapipe:android": ["-landroid"],
}),
visibility = ["//visibility:public"],