Internal change
PiperOrigin-RevId: 507540898
This commit is contained in:
parent
daf0a76c87
commit
f4b0cf1cff
|
@ -13,3 +13,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
exports_files([
|
||||
"version_script.lds",
|
||||
])
|
||||
|
|
|
@ -34,12 +34,17 @@ android_library(
|
|||
# The native library of all MediaPipe audio tasks.
|
||||
cc_binary(
|
||||
name = "libmediapipe_tasks_audio_jni.so",
|
||||
linkopts = [
|
||||
"-Wl,--no-undefined",
|
||||
"-Wl,--version-script,$(location //mediapipe/tasks/java:version_script.lds)",
|
||||
],
|
||||
linkshared = 1,
|
||||
linkstatic = 1,
|
||||
deps = [
|
||||
"//mediapipe/java/com/google/mediapipe/framework/jni:mediapipe_framework_jni",
|
||||
"//mediapipe/tasks/cc/audio/audio_classifier:audio_classifier_graph",
|
||||
"//mediapipe/tasks/cc/audio/audio_embedder:audio_embedder_graph",
|
||||
"//mediapipe/tasks/java:version_script.lds",
|
||||
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni:model_resources_cache_jni",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -19,12 +19,17 @@ package(default_visibility = ["//visibility:public"])
|
|||
# The native library of all MediaPipe text tasks.
|
||||
cc_binary(
|
||||
name = "libmediapipe_tasks_text_jni.so",
|
||||
linkopts = [
|
||||
"-Wl,--no-undefined",
|
||||
"-Wl,--version-script,$(location //mediapipe/tasks/java:version_script.lds)",
|
||||
],
|
||||
linkshared = 1,
|
||||
linkstatic = 1,
|
||||
deps = [
|
||||
"//mediapipe/java/com/google/mediapipe/framework/jni:mediapipe_framework_jni",
|
||||
"//mediapipe/tasks/cc/text/text_classifier:text_classifier_graph",
|
||||
"//mediapipe/tasks/cc/text/text_embedder:text_embedder_graph",
|
||||
"//mediapipe/tasks/java:version_script.lds",
|
||||
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni:model_resources_cache_jni",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -36,6 +36,10 @@ android_library(
|
|||
# The native library of all MediaPipe vision tasks.
|
||||
cc_binary(
|
||||
name = "libmediapipe_tasks_vision_jni.so",
|
||||
linkopts = [
|
||||
"-Wl,--no-undefined",
|
||||
"-Wl,--version-script,$(location //mediapipe/tasks/java:version_script.lds)",
|
||||
],
|
||||
linkshared = 1,
|
||||
linkstatic = 1,
|
||||
deps = [
|
||||
|
@ -46,6 +50,7 @@ cc_binary(
|
|||
"//mediapipe/tasks/cc/vision/image_embedder:image_embedder_graph",
|
||||
"//mediapipe/tasks/cc/vision/image_segmenter:image_segmenter_graph",
|
||||
"//mediapipe/tasks/cc/vision/object_detector:object_detector_graph",
|
||||
"//mediapipe/tasks/java:version_script.lds",
|
||||
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni:model_resources_cache_jni",
|
||||
],
|
||||
)
|
||||
|
|
24
mediapipe/tasks/java/version_script.lds
Normal file
24
mediapipe/tasks/java/version_script.lds
Normal file
|
@ -0,0 +1,24 @@
|
|||
VERS_1.0 {
|
||||
# Export JNI and native C symbols.
|
||||
global:
|
||||
Java_com_google_mediapipe_framework_AndroidAssetUtil*;
|
||||
Java_com_google_mediapipe_framework_AndroidPacketCreator*;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeAddMultiStreamCallback;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeAddPacketToInputStream;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeCloseAllPacketSources;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeCreateGraph;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeLoadBinaryGraph*;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeMovePacketToInputStream;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeReleaseGraph;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeStartRunningGraph;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeWaitUntilGraphDone;
|
||||
Java_com_google_mediapipe_framework_Graph_nativeWaitUntilGraphIdle;
|
||||
Java_com_google_mediapipe_framework_PacketCreator*;
|
||||
Java_com_google_mediapipe_framework_PacketGetter*;
|
||||
Java_com_google_mediapipe_framework_Packet*;
|
||||
Java_com_google_mediapipe_tasks_core_ModelResourcesCache*;
|
||||
|
||||
# Hide everything else.
|
||||
local:
|
||||
*;
|
||||
};
|
Loading…
Reference in New Issue
Block a user