OLD | NEW |
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 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("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 if (is_android) { | 10 if (is_android) { |
11 import("//build/config/android/config.gni") | 11 import("//build/config/android/config.gni") |
12 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
13 } | 13 } |
14 | 14 |
15 group("api") { | 15 group("api") { |
16 deps = [ | 16 deps = [ |
17 ":libjingle_peerconnection", | 17 ":libjingle_peerconnection", |
18 ] | 18 ] |
19 } | 19 } |
20 | 20 |
21 rtc_source_set("call_api") { | 21 rtc_source_set("call_api") { |
22 sources = [ | 22 sources = [ |
23 "call/audio_receive_stream.h", | 23 "call/audio_receive_stream.h", |
24 "call/audio_send_stream.h", | 24 "call/audio_send_stream.h", |
25 "call/audio_sink.h", | 25 "call/audio_sink.h", |
26 "call/audio_state.h", | 26 "call/audio_state.h", |
27 ] | 27 ] |
28 | 28 |
29 public_configs = [ "..:common_inherited_config" ] | |
30 | |
31 deps = [ | 29 deps = [ |
32 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done. | 30 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done. |
33 "..:webrtc_common", | 31 "..:webrtc_common", |
34 "../base:rtc_base_approved", | 32 "../base:rtc_base_approved", |
35 "../modules/audio_coding:audio_encoder_interface", | 33 "../modules/audio_coding:audio_encoder_interface", |
36 ] | 34 ] |
37 } | 35 } |
38 | 36 |
39 config("libjingle_peerconnection_warnings_config") { | 37 config("libjingle_peerconnection_warnings_config") { |
40 # GN orders flags on a target before flags from configs. The default config | 38 # GN orders flags on a target before flags from configs. The default config |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 "videotracksource.h", | 110 "videotracksource.h", |
113 "webrtcsdp.cc", | 111 "webrtcsdp.cc", |
114 "webrtcsdp.h", | 112 "webrtcsdp.h", |
115 "webrtcsession.cc", | 113 "webrtcsession.cc", |
116 "webrtcsession.h", | 114 "webrtcsession.h", |
117 "webrtcsessiondescriptionfactory.cc", | 115 "webrtcsessiondescriptionfactory.cc", |
118 "webrtcsessiondescriptionfactory.h", | 116 "webrtcsessiondescriptionfactory.h", |
119 ] | 117 ] |
120 | 118 |
121 configs += [ ":libjingle_peerconnection_warnings_config" ] | 119 configs += [ ":libjingle_peerconnection_warnings_config" ] |
122 public_configs = [ "..:common_inherited_config" ] | |
123 | 120 |
124 if (is_clang) { | 121 if (is_clang) { |
125 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 122 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
126 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 123 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
127 } | 124 } |
128 | 125 |
129 deps = [ | 126 deps = [ |
130 ":call_api", | 127 ":call_api", |
131 "../call", | 128 "../call", |
132 "../media", | 129 "../media", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 "android/jni/native_handle_impl.cc", | 177 "android/jni/native_handle_impl.cc", |
181 "android/jni/native_handle_impl.h", | 178 "android/jni/native_handle_impl.h", |
182 "android/jni/peerconnection_jni.cc", | 179 "android/jni/peerconnection_jni.cc", |
183 "android/jni/surfacetexturehelper_jni.cc", | 180 "android/jni/surfacetexturehelper_jni.cc", |
184 "android/jni/surfacetexturehelper_jni.h", | 181 "android/jni/surfacetexturehelper_jni.h", |
185 "androidvideotracksource.cc", | 182 "androidvideotracksource.cc", |
186 "androidvideotracksource.h", | 183 "androidvideotracksource.h", |
187 ] | 184 ] |
188 | 185 |
189 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] | 186 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] |
190 public_configs = [ "..:common_inherited_config" ] | |
191 | 187 |
192 if (is_clang) { | 188 if (is_clang) { |
193 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 189 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
194 suppressed_configs += [ | 190 suppressed_configs += [ |
195 "//build/config/clang:extra_warnings", | 191 "//build/config/clang:extra_warnings", |
196 "//build/config/clang:find_bad_constructs", | 192 "//build/config/clang:find_bad_constructs", |
197 ] | 193 ] |
198 } | 194 } |
199 | 195 |
200 # TODO(jschuh): Bug 1348: fix this warning. | 196 # TODO(jschuh): Bug 1348: fix this warning. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 "test/testsdpstrings.h", | 355 "test/testsdpstrings.h", |
360 "videocapturertracksource_unittest.cc", | 356 "videocapturertracksource_unittest.cc", |
361 "videotrack_unittest.cc", | 357 "videotrack_unittest.cc", |
362 "webrtcsdp_unittest.cc", | 358 "webrtcsdp_unittest.cc", |
363 "webrtcsession_unittest.cc", | 359 "webrtcsession_unittest.cc", |
364 ] | 360 ] |
365 | 361 |
366 defines = [ "HAVE_SCTP" ] | 362 defines = [ "HAVE_SCTP" ] |
367 | 363 |
368 configs += [ ":peerconnection_unittests_config" ] | 364 configs += [ ":peerconnection_unittests_config" ] |
369 public_configs = [ "..:common_inherited_config" ] | |
370 | 365 |
371 if (is_clang) { | 366 if (is_clang) { |
372 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 367 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
373 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 368 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
374 } | 369 } |
375 | 370 |
376 # TODO(jschuh): Bug 1348: fix this warning. | 371 # TODO(jschuh): Bug 1348: fix this warning. |
377 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 372 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
378 | 373 |
379 if (is_win) { | 374 if (is_win) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 446 |
452 shared_libraries = [ ":libjingle_peerconnection_so" ] | 447 shared_libraries = [ ":libjingle_peerconnection_so" ] |
453 } | 448 } |
454 | 449 |
455 android_resources("libjingle_peerconnection_android_unittest_resources") { | 450 android_resources("libjingle_peerconnection_android_unittest_resources") { |
456 resource_dirs = [ "androidtests/res" ] | 451 resource_dirs = [ "androidtests/res" ] |
457 custom_package = "org.webrtc" | 452 custom_package = "org.webrtc" |
458 } | 453 } |
459 } | 454 } |
460 } | 455 } |
OLD | NEW |