From ef3eda94a25fb7cacc5d8be573311f2b30ad852d Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Fri, 19 Jul 2019 14:51:12 +0200 Subject: [PATCH] Allow using more jni targets on Linux Bug: None Change-Id: Ied19f9eb399ef89d4f95028857efe77d3ee54693 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/146214 Reviewed-by: Mirko Bonadei Commit-Queue: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#28618} --- sdk/android/BUILD.gn | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sdk/android/BUILD.gn b/sdk/android/BUILD.gn index 4adb00d289..1436bb3348 100644 --- a/sdk/android/BUILD.gn +++ b/sdk/android/BUILD.gn @@ -520,7 +520,9 @@ if (is_android) { "//third_party/android_deps:com_android_support_support_annotations_java", ] } +} +if (current_os == "linux" || is_android) { ################################ # JNI targets for Java modules # ################################ @@ -840,9 +842,7 @@ if (is_android) { ":libvpx_vp9_jni", ] } -} -if (current_os == "linux" || is_android) { ###################### # Native API targets # ###################### @@ -879,9 +879,7 @@ if (current_os == "linux" || is_android) { "//third_party/abseil-cpp/absl/types:optional", ] } -} -if (is_android) { rtc_static_library("native_api_base") { visibility = [ "*" ] sources = [ @@ -1015,9 +1013,7 @@ if (is_android) { "//rtc_base:base_java", ] } -} -if (current_os == "linux" || is_android) { # Internal code that is needed by native_api_jni. The code cannot be placed in # base_jni because native_api_jni depends on the code (and base_jni depends on # native_api_jni). @@ -1031,9 +1027,7 @@ if (current_os == "linux" || is_android) { "../../rtc_base:checks", ] } -} -if (is_android) { rtc_static_library("videoframe_jni") { sources = [ "src/jni/video_frame.cc", @@ -1171,9 +1165,7 @@ if (is_android) { "//third_party/abseil-cpp/absl/types:optional", ] } -} -if (current_os == "linux" || is_android) { ######################### # Generated JNI targets # #########################