| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//webrtc/webrtc.gni") | 9 import("//webrtc/webrtc.gni") |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 61 | 61 |
| 62 if (is_win) { | 62 if (is_win) { |
| 63 cflags += [ | 63 cflags += [ |
| 64 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. | 64 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. |
| 65 "/wd4389", # signed/unsigned mismatch. | 65 "/wd4389", # signed/unsigned mismatch. |
| 66 ] | 66 ] |
| 67 } | 67 } |
| 68 | 68 |
| 69 deps = [ | 69 deps = [ |
| 70 "../..:webrtc_common", |
| 71 "../../api:video_frame_api", |
| 72 "../../api/video_codecs:video_codecs_api", |
| 73 "../../base:rtc_base", |
| 74 "../../base:rtc_base_approved", |
| 75 "../../base:rtc_task_queue", |
| 76 "../../common_video:common_video", |
| 77 "../../media:rtc_media", |
| 78 "../../media:rtc_media_base", |
| 79 "../../modules/utility:utility", |
| 80 "../../modules/video_coding:video_coding_utility", |
| 81 "../../system_wrappers:field_trial_default", |
| 82 "../../system_wrappers:system_wrappers", |
| 83 "../../voice_engine:voice_engine", |
| 70 "//webrtc/pc:libjingle_peerconnection", | 84 "//webrtc/pc:libjingle_peerconnection", |
| 71 ] | 85 ] |
| 72 | 86 |
| 73 if (rtc_build_libyuv) { | 87 if (rtc_build_libyuv) { |
| 74 deps += [ "$rtc_libyuv_dir" ] | 88 deps += [ "$rtc_libyuv_dir" ] |
| 75 public_deps = [ | 89 public_deps = [ |
| 76 "$rtc_libyuv_dir", | 90 "$rtc_libyuv_dir", |
| 77 ] | 91 ] |
| 78 } else { | 92 } else { |
| 79 # Need to add a directory normally exported by libyuv. | 93 # Need to add a directory normally exported by libyuv. |
| 80 include_dirs = [ "$rtc_libyuv_dir/include" ] | 94 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 81 } | 95 } |
| 82 } | 96 } |
| 83 | 97 |
| 84 rtc_static_library("libjingle_peerconnection_metrics_default_jni") { | 98 rtc_static_library("libjingle_peerconnection_metrics_default_jni") { |
| 85 sources = [ | 99 sources = [ |
| 86 "src/jni/androidmetrics_jni.cc", | 100 "src/jni/androidmetrics_jni.cc", |
| 87 ] | 101 ] |
| 88 | 102 |
| 89 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] | 103 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] |
| 90 | 104 |
| 91 deps = [ | 105 deps = [ |
| 106 ":libjingle_peerconnection_jni", |
| 107 "../../system_wrappers", |
| 92 "//webrtc/pc:libjingle_peerconnection", | 108 "//webrtc/pc:libjingle_peerconnection", |
| 93 "//webrtc/system_wrappers:field_trial_default", | 109 "//webrtc/system_wrappers:field_trial_default", |
| 94 "//webrtc/system_wrappers:metrics_default", | 110 "//webrtc/system_wrappers:metrics_default", |
| 95 ] | 111 ] |
| 96 } | 112 } |
| 97 | 113 |
| 98 rtc_shared_library("libjingle_peerconnection_so") { | 114 rtc_shared_library("libjingle_peerconnection_so") { |
| 99 sources = [ | 115 sources = [ |
| 100 "src/jni/jni_onload.cc", | 116 "src/jni/jni_onload.cc", |
| 101 ] | 117 ] |
| 102 | 118 |
| 103 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] | 119 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
| 104 configs += [ "//build/config/android:hide_all_but_jni" ] | 120 configs += [ "//build/config/android:hide_all_but_jni" ] |
| 105 | 121 |
| 106 deps = [ | 122 deps = [ |
| 107 ":libjingle_peerconnection_jni", | 123 ":libjingle_peerconnection_jni", |
| 108 ":libjingle_peerconnection_metrics_default_jni", | 124 ":libjingle_peerconnection_metrics_default_jni", |
| 125 "../../base:rtc_base", |
| 109 "//webrtc/pc:libjingle_peerconnection", | 126 "//webrtc/pc:libjingle_peerconnection", |
| 110 ] | 127 ] |
| 111 output_extension = "so" | 128 output_extension = "so" |
| 112 } | 129 } |
| 113 | 130 |
| 114 dist_jar("libwebrtc") { | 131 dist_jar("libwebrtc") { |
| 115 _target_dir_name = get_label_info(":$target_name", "dir") | 132 _target_dir_name = get_label_info(":$target_name", "dir") |
| 116 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" | 133 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
| 117 direct_deps_only = true | 134 direct_deps_only = true |
| 118 use_interface_jars = false | 135 use_interface_jars = false |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 "//third_party/android_support_test_runner:runner_java", | 248 "//third_party/android_support_test_runner:runner_java", |
| 232 "//third_party/junit", | 249 "//third_party/junit", |
| 233 "//webrtc/base:base_java", | 250 "//webrtc/base:base_java", |
| 234 "//webrtc/sdk/android:libjingle_peerconnection_java", | 251 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 235 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", | 252 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", |
| 236 ] | 253 ] |
| 237 | 254 |
| 238 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] | 255 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] |
| 239 } | 256 } |
| 240 } | 257 } |
| OLD | NEW |