Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: webrtc/modules/BUILD.gn

Issue 2301053002: GN: Introduce templates. (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 import("audio_coding/audio_coding.gni") 10 import("audio_coding/audio_coding.gni")
11 import("//testing/test.gni")
12 11
13 declare_args() { 12 declare_args() {
14 # Desktop capturer is supported only on Windows, OSX and Linux. 13 # Desktop capturer is supported only on Windows, OSX and Linux.
15 rtc_desktop_capture_supported = is_win || is_mac || is_linux 14 rtc_desktop_capture_supported = is_win || is_mac || is_linux
16 } 15 }
17 16
18 group("modules") { 17 group("modules") {
19 deps = [ 18 deps = [
20 "audio_coding", 19 "audio_coding",
21 "audio_conference_mixer", 20 "audio_conference_mixer",
(...skipping 23 matching lines...) Expand all
45 if (is_ios) { 44 if (is_ios) {
46 bundle_data("modules_tests_bundle_data") { 45 bundle_data("modules_tests_bundle_data") {
47 testonly = true 46 testonly = true
48 sources = modules_tests_resources 47 sources = modules_tests_resources
49 outputs = [ 48 outputs = [
50 "{{bundle_resources_dir}}/{{source_file_part}}", 49 "{{bundle_resources_dir}}/{{source_file_part}}",
51 ] 50 ]
52 } 51 }
53 } 52 }
54 53
55 test("modules_tests") { 54 rtc_test("modules_tests") {
56 testonly = true 55 testonly = true
57 56
58 configs += [ "..:common_config" ] 57 configs += [ "..:common_config" ]
59 public_configs = [ "..:common_inherited_config" ] 58 public_configs = [ "..:common_inherited_config" ]
60 59
61 videoprocessor_defines = [] 60 videoprocessor_defines = []
62 if (rtc_use_h264) { 61 if (rtc_use_h264) {
63 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] 62 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
64 } 63 }
65 64
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 data = modules_tests_resources 105 data = modules_tests_resources
107 shard_timeout = 900 106 shard_timeout = 900
108 } 107 }
109 108
110 if (is_ios) { 109 if (is_ios) {
111 deps += [ ":modules_tests_bundle_data" ] 110 deps += [ ":modules_tests_bundle_data" ]
112 } 111 }
113 112
114 if (is_clang) { 113 if (is_clang) {
115 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 114 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
116 configs -= [ "//build/config/clang:find_bad_constructs" ] 115 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
117 } 116 }
118 if (is_win) { 117 if (is_win) {
119 cflags = [ 118 cflags = [
120 # TODO(phoglund): get rid of 4373 supression when 119 # TODO(phoglund): get rid of 4373 supression when
121 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. 120 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
122 # legacy warning for ignoring const / volatile in signatures. 121 # legacy warning for ignoring const / volatile in signatures.
123 "/wd4373", 122 "/wd4373",
124 ] 123 ]
125 } 124 }
126 } 125 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 if (is_ios) { 232 if (is_ios) {
234 bundle_data("modules_unittests_bundle_data") { 233 bundle_data("modules_unittests_bundle_data") {
235 testonly = true 234 testonly = true
236 sources = modules_unittests_resources 235 sources = modules_unittests_resources
237 outputs = [ 236 outputs = [
238 "{{bundle_resources_dir}}/{{source_file_part}}", 237 "{{bundle_resources_dir}}/{{source_file_part}}",
239 ] 238 ]
240 } 239 }
241 } 240 }
242 241
243 test("modules_unittests") { 242 rtc_test("modules_unittests") {
244 testonly = true 243 testonly = true
245 244
246 defines = audio_coding_defines 245 defines = audio_coding_defines
247 deps = [] 246 deps = []
248 sources = [ 247 sources = [
249 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", 248 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc",
250 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", 249 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc",
251 "audio_coding/acm2/call_statistics_unittest.cc", 250 "audio_coding/acm2/call_statistics_unittest.cc",
252 "audio_coding/acm2/codec_manager_unittest.cc", 251 "audio_coding/acm2/codec_manager_unittest.cc",
253 "audio_coding/acm2/initial_delay_manager_unittest.cc", 252 "audio_coding/acm2/initial_delay_manager_unittest.cc",
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 } 566 }
568 567
569 configs += [ "..:common_config" ] 568 configs += [ "..:common_config" ]
570 public_configs = [ "..:common_inherited_config" ] 569 public_configs = [ "..:common_inherited_config" ]
571 570
572 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. 571 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
573 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 572 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
574 573
575 if (is_clang) { 574 if (is_clang) {
576 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 575 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
577 configs -= [ "//build/config/clang:find_bad_constructs" ] 576 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
578 } 577 }
579 578
580 if (is_win) { 579 if (is_win) {
581 cflags = [ 580 cflags = [
582 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. 581 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
583 "/wd4373", # virtual function override. 582 "/wd4373", # virtual function override.
584 ] 583 ]
585 } 584 }
586 585
587 deps += [ 586 deps += [
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 sources += [ 659 sources += [
661 "audio_device/ios/audio_device_unittest_ios.cc", 660 "audio_device/ios/audio_device_unittest_ios.cc",
662 "audio_device/ios/objc/RTCAudioSessionTest.mm", 661 "audio_device/ios/objc/RTCAudioSessionTest.mm",
663 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", 662 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc",
664 ] 663 ]
665 664
666 ldflags = [ "-ObjC" ] 665 ldflags = [ "-ObjC" ]
667 } 666 }
668 } 667 }
669 } 668 }
OLDNEW
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698