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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 "src/jni/jni_helpers.cc", | 42 "src/jni/jni_helpers.cc", |
43 "src/jni/jni_helpers.h", | 43 "src/jni/jni_helpers.h", |
44 "src/jni/media_jni.h", | 44 "src/jni/media_jni.h", |
45 "src/jni/ownedfactoryandthreads.cc", | 45 "src/jni/ownedfactoryandthreads.cc", |
46 "src/jni/ownedfactoryandthreads.h", | 46 "src/jni/ownedfactoryandthreads.h", |
47 "src/jni/video_jni.h", | 47 "src/jni/video_jni.h", |
48 ] | 48 ] |
49 | 49 |
50 deps = [ | 50 deps = [ |
51 "//webrtc/api:libjingle_peerconnection_api", | 51 "//webrtc/api:libjingle_peerconnection_api", |
52 "//webrtc/base:rtc_base", | 52 "//webrtc/rtc_base:rtc_base", |
53 "//webrtc/base:rtc_base_approved", | 53 "//webrtc/rtc_base:rtc_base_approved", |
54 "//webrtc/system_wrappers:metrics_api", | 54 "//webrtc/system_wrappers:metrics_api", |
55 ] | 55 ] |
56 | 56 |
57 if (is_clang) { | 57 if (is_clang) { |
58 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 58 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
59 suppressed_configs += [ | 59 suppressed_configs += [ |
60 "//build/config/clang:extra_warnings", | 60 "//build/config/clang:extra_warnings", |
61 "//build/config/clang:find_bad_constructs", | 61 "//build/config/clang:find_bad_constructs", |
62 ] | 62 ] |
63 } | 63 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 "/wd4389", # signed/unsigned mismatch. | 132 "/wd4389", # signed/unsigned mismatch. |
133 ] | 133 ] |
134 } | 134 } |
135 | 135 |
136 deps = [ | 136 deps = [ |
137 ":base_jni", | 137 ":base_jni", |
138 "//webrtc:webrtc_common", | 138 "//webrtc:webrtc_common", |
139 "//webrtc/api:libjingle_peerconnection_api", | 139 "//webrtc/api:libjingle_peerconnection_api", |
140 "//webrtc/api:video_frame_api", | 140 "//webrtc/api:video_frame_api", |
141 "//webrtc/api/video_codecs:video_codecs_api", | 141 "//webrtc/api/video_codecs:video_codecs_api", |
142 "//webrtc/base:rtc_base", | |
143 "//webrtc/base:rtc_base_approved", | |
144 "//webrtc/base:rtc_task_queue", | |
145 "//webrtc/base:sequenced_task_checker", | |
146 "//webrtc/base:weak_ptr", | |
147 "//webrtc/common_video:common_video", | 142 "//webrtc/common_video:common_video", |
148 "//webrtc/media:rtc_audio_video", | 143 "//webrtc/media:rtc_audio_video", |
149 "//webrtc/media:rtc_media_base", | 144 "//webrtc/media:rtc_media_base", |
150 "//webrtc/modules/utility:utility", | 145 "//webrtc/modules/utility:utility", |
151 "//webrtc/modules/video_coding:video_coding_utility", | 146 "//webrtc/modules/video_coding:video_coding_utility", |
| 147 "//webrtc/rtc_base:rtc_base", |
| 148 "//webrtc/rtc_base:rtc_base_approved", |
| 149 "//webrtc/rtc_base:rtc_task_queue", |
| 150 "//webrtc/rtc_base:sequenced_task_checker", |
| 151 "//webrtc/rtc_base:weak_ptr", |
152 "//webrtc/system_wrappers:system_wrappers", | 152 "//webrtc/system_wrappers:system_wrappers", |
153 ] | 153 ] |
154 | 154 |
155 if (rtc_build_libyuv) { | 155 if (rtc_build_libyuv) { |
156 deps += [ "$rtc_libyuv_dir" ] | 156 deps += [ "$rtc_libyuv_dir" ] |
157 public_deps = [ | 157 public_deps = [ |
158 "$rtc_libyuv_dir", | 158 "$rtc_libyuv_dir", |
159 ] | 159 ] |
160 } else { | 160 } else { |
161 # Need to add a directory normally exported by libyuv. | 161 # Need to add a directory normally exported by libyuv. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 if (is_win) { | 230 if (is_win) { |
231 cflags += [ | 231 cflags += [ |
232 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. | 232 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. |
233 "/wd4389", # signed/unsigned mismatch. | 233 "/wd4389", # signed/unsigned mismatch. |
234 ] | 234 ] |
235 } | 235 } |
236 | 236 |
237 deps = [ | 237 deps = [ |
238 ":base_jni", | 238 ":base_jni", |
239 "../..:webrtc_common", | 239 "../..:webrtc_common", |
240 "//webrtc/base:rtc_base", | |
241 "//webrtc/base:rtc_base_approved", | |
242 "//webrtc/base:rtc_task_queue", | |
243 "//webrtc/media:rtc_data", | 240 "//webrtc/media:rtc_data", |
244 "//webrtc/media:rtc_media_base", | 241 "//webrtc/media:rtc_media_base", |
245 "//webrtc/modules/utility:utility", | 242 "//webrtc/modules/utility:utility", |
246 "//webrtc/pc:peerconnection", | 243 "//webrtc/pc:peerconnection", |
| 244 "//webrtc/rtc_base:rtc_base", |
| 245 "//webrtc/rtc_base:rtc_base_approved", |
| 246 "//webrtc/rtc_base:rtc_task_queue", |
247 "//webrtc/system_wrappers:system_wrappers", | 247 "//webrtc/system_wrappers:system_wrappers", |
248 ] | 248 ] |
249 } | 249 } |
250 | 250 |
251 rtc_static_library("libjingle_peerconnection_jni") { | 251 rtc_static_library("libjingle_peerconnection_jni") { |
252 public_deps = [ | 252 public_deps = [ |
253 ":audio_jni", | 253 ":audio_jni", |
254 ":base_jni", | 254 ":base_jni", |
255 ":media_jni", | 255 ":media_jni", |
256 ":peerconnection_jni", | 256 ":peerconnection_jni", |
(...skipping 30 matching lines...) Expand all Loading... |
287 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] | 287 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
288 configs += [ "//build/config/android:hide_all_but_jni" ] | 288 configs += [ "//build/config/android:hide_all_but_jni" ] |
289 | 289 |
290 deps = [ | 290 deps = [ |
291 ":base_jni", | 291 ":base_jni", |
292 ":libjingle_peerconnection_metrics_default_jni", | 292 ":libjingle_peerconnection_metrics_default_jni", |
293 ":null_audio_jni", | 293 ":null_audio_jni", |
294 ":null_media_jni", | 294 ":null_media_jni", |
295 ":null_video_jni", | 295 ":null_video_jni", |
296 ":peerconnection_jni", | 296 ":peerconnection_jni", |
297 "//webrtc/base:rtc_base", | |
298 "//webrtc/base:rtc_base_approved", | |
299 "//webrtc/pc:peerconnection", | 297 "//webrtc/pc:peerconnection", |
| 298 "//webrtc/rtc_base:rtc_base", |
| 299 "//webrtc/rtc_base:rtc_base_approved", |
300 ] | 300 ] |
301 output_extension = "so" | 301 output_extension = "so" |
302 } | 302 } |
303 | 303 |
304 rtc_shared_library("libjingle_peerconnection_so") { | 304 rtc_shared_library("libjingle_peerconnection_so") { |
305 sources = [ | 305 sources = [ |
306 "src/jni/jni_onload.cc", | 306 "src/jni/jni_onload.cc", |
307 ] | 307 ] |
308 | 308 |
309 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] | 309 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
310 configs += [ "//build/config/android:hide_all_but_jni" ] | 310 configs += [ "//build/config/android:hide_all_but_jni" ] |
311 | 311 |
312 deps = [ | 312 deps = [ |
313 ":libjingle_peerconnection_jni", | 313 ":libjingle_peerconnection_jni", |
314 ":libjingle_peerconnection_metrics_default_jni", | 314 ":libjingle_peerconnection_metrics_default_jni", |
315 "//webrtc/base:rtc_base", | |
316 "//webrtc/pc:libjingle_peerconnection", | 315 "//webrtc/pc:libjingle_peerconnection", |
| 316 "//webrtc/rtc_base:rtc_base", |
317 ] | 317 ] |
318 output_extension = "so" | 318 output_extension = "so" |
319 } | 319 } |
320 | 320 |
321 dist_jar("libwebrtc") { | 321 dist_jar("libwebrtc") { |
322 _target_dir_name = get_label_info(":$target_name", "dir") | 322 _target_dir_name = get_label_info(":$target_name", "dir") |
323 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" | 323 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
324 direct_deps_only = true | 324 direct_deps_only = true |
325 use_interface_jars = false | 325 use_interface_jars = false |
326 deps = [ | 326 deps = [ |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 "//third_party/android_support_test_runner:runner_java", | 464 "//third_party/android_support_test_runner:runner_java", |
465 "//third_party/junit", | 465 "//third_party/junit", |
466 "//webrtc/rtc_base:base_java", | 466 "//webrtc/rtc_base:base_java", |
467 "//webrtc/sdk/android:libjingle_peerconnection_java", | 467 "//webrtc/sdk/android:libjingle_peerconnection_java", |
468 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", | 468 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", |
469 ] | 469 ] |
470 | 470 |
471 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] | 471 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] |
472 } | 472 } |
473 } | 473 } |
OLD | NEW |