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

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

Issue 2292853002: GN: Fix resource files for iOS test target (Closed)
Patch Set: Moved declaration to before first use for Android 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
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")
(...skipping 15 matching lines...) Expand all
26 "desktop_capture", 26 "desktop_capture",
27 "media_file", 27 "media_file",
28 "rtp_rtcp", 28 "rtp_rtcp",
29 "utility", 29 "utility",
30 "video_coding", 30 "video_coding",
31 "video_processing", 31 "video_processing",
32 ] 32 ]
33 } 33 }
34 34
35 if (rtc_include_tests) { 35 if (rtc_include_tests) {
36 if (is_android || is_ios) {
37 modules_tests_resources = [
38 "//resources/audio_coding/testfile32kHz.pcm",
39 "//resources/audio_coding/teststereo32kHz.pcm",
40 "//resources/foreman_cif.yuv",
41 "//resources/paris_qcif.yuv",
42 ]
43 }
44
45 if (is_ios) {
46 bundle_data("modules_tests_bundle_data") {
47 testonly = true
48 sources = modules_tests_resources
49 outputs = [
50 "{{bundle_resources_dir}}/{{source_file_part}}",
51 ]
52 }
53 }
54
36 test("modules_tests") { 55 test("modules_tests") {
37 testonly = true 56 testonly = true
38 57
39 configs += [ "..:common_config" ] 58 configs += [ "..:common_config" ]
40 public_configs = [ "..:common_inherited_config" ] 59 public_configs = [ "..:common_inherited_config" ]
41 60
42 videoprocessor_defines = [] 61 videoprocessor_defines = []
43 if (rtc_use_h264) { 62 if (rtc_use_h264) {
44 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] 63 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
45 } 64 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 "audio_coding/test/opus_test.cc", 96 "audio_coding/test/opus_test.cc",
78 "audio_coding/test/target_delay_unittest.cc", 97 "audio_coding/test/target_delay_unittest.cc",
79 "audio_coding/test/utility.cc", 98 "audio_coding/test/utility.cc",
80 "rtp_rtcp/test/testFec/test_fec.cc", 99 "rtp_rtcp/test/testFec/test_fec.cc",
81 "video_coding/codecs/test/videoprocessor_integrationtest.cc", 100 "video_coding/codecs/test/videoprocessor_integrationtest.cc",
82 "video_coding/codecs/vp8/test/vp8_impl_unittest.cc", 101 "video_coding/codecs/vp8/test/vp8_impl_unittest.cc",
83 ] 102 ]
84 103
85 if (is_android) { 104 if (is_android) {
86 deps += [ "//testing/android/native_test:native_test_native_code" ] 105 deps += [ "//testing/android/native_test:native_test_native_code" ]
106 data = modules_tests_resources
87 shard_timeout = 900 107 shard_timeout = 900
88 } 108 }
89 if (is_android || is_ios) { 109
90 data = [ 110 if (is_ios) {
91 "//resources/audio_coding/testfile32kHz.pcm", 111 deps += [ ":modules_tests_bundle_data" ]
92 "//resources/audio_coding/teststereo32kHz.pcm",
93 "//resources/foreman_cif.yuv",
94 "//resources/paris_qcif.yuv",
95 ]
96 } 112 }
97 113
98 if (is_clang) { 114 if (is_clang) {
99 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 115 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
100 configs -= [ "//build/config/clang:find_bad_constructs" ] 116 configs -= [ "//build/config/clang:find_bad_constructs" ]
101 } 117 }
102 if (is_win) { 118 if (is_win) {
103 cflags = [ 119 cflags = [
104 # TODO(phoglund): get rid of 4373 supression when 120 # TODO(phoglund): get rid of 4373 supression when
105 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. 121 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
106 # legacy warning for ignoring const / volatile in signatures. 122 # legacy warning for ignoring const / volatile in signatures.
107 "/wd4373", 123 "/wd4373",
108 ] 124 ]
109 } 125 }
110 } 126 }
111 127
128 if (is_android || is_ios) {
129 modules_unittests_resources = [
130 "//data/audio_processing/output_data_fixed.pb",
131 "//data/audio_processing/output_data_float.pb",
132 "//data/audio_processing/output_data_mac.pb",
133 "//data/voice_engine/audio_tiny48.wav",
134 "//resources/att-downlink.rx",
135 "//resources/att-uplink.rx",
136 "//resources/audio_coding/neteq_opus.rtp",
137 "//resources/audio_coding/neteq_universal_new.rtp",
138 "//resources/audio_coding/speech_mono_16kHz.pcm",
139 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
140 "//resources/audio_coding/testfile32kHz.pcm",
141 "//resources/audio_coding/teststereo32kHz.pcm",
142 "//resources/audio_device/audio_short16.pcm",
143 "//resources/audio_device/audio_short44.pcm",
144 "//resources/audio_device/audio_short48.pcm",
145 "//resources/audio_processing/agc/agc_audio.pcm",
146 "//resources/audio_processing/agc/agc_no_circular_buffer.dat",
147 "//resources/audio_processing/agc/agc_pitch_gain.dat",
148 "//resources/audio_processing/agc/agc_pitch_lag.dat",
149 "//resources/audio_processing/agc/agc_spectral_peak.dat",
150 "//resources/audio_processing/agc/agc_vad.dat",
151 "//resources/audio_processing/agc/agc_voicing_prob.dat",
152 "//resources/audio_processing/agc/agc_with_circular_buffer.dat",
153 "//resources/audio_processing/transient/ajm-macbook-1-spke16m.pcm",
154 "//resources/audio_processing/transient/audio16kHz.pcm",
155 "//resources/audio_processing/transient/audio32kHz.pcm",
156 "//resources/audio_processing/transient/audio48kHz.pcm",
157 "//resources/audio_processing/transient/audio8kHz.pcm",
158 "//resources/audio_processing/transient/detect16kHz.dat",
159 "//resources/audio_processing/transient/detect32kHz.dat",
160 "//resources/audio_processing/transient/detect48kHz.dat",
161 "//resources/audio_processing/transient/detect8kHz.dat",
162 "//resources/audio_processing/transient/double-utils.dat",
163 "//resources/audio_processing/transient/float-utils.dat",
164 "//resources/audio_processing/transient/suppressed16kHz.pcm",
165 "//resources/audio_processing/transient/suppressed32kHz.pcm",
166 "//resources/audio_processing/transient/suppressed8kHz.pcm",
167 "//resources/audio_processing/transient/wpd0.dat",
168 "//resources/audio_processing/transient/wpd1.dat",
169 "//resources/audio_processing/transient/wpd2.dat",
170 "//resources/audio_processing/transient/wpd3.dat",
171 "//resources/audio_processing/transient/wpd4.dat",
172 "//resources/audio_processing/transient/wpd5.dat",
173 "//resources/audio_processing/transient/wpd6.dat",
174 "//resources/audio_processing/transient/wpd7.dat",
175 "//resources/deflicker_before_cif_short.yuv",
176 "//resources/far16_stereo.pcm",
177 "//resources/far32_stereo.pcm",
178 "//resources/far44_stereo.pcm",
179 "//resources/far48_stereo.pcm",
180 "//resources/far8_stereo.pcm",
181 "//resources/foremanColorEnhanced_cif_short.yuv",
182 "//resources/foreman_cif.yuv",
183 "//resources/foreman_cif_short.yuv",
184 "//resources/near16_stereo.pcm",
185 "//resources/near32_stereo.pcm",
186 "//resources/near44_stereo.pcm",
187 "//resources/near48_stereo.pcm",
188 "//resources/near8_stereo.pcm",
189 "//resources/ref03.aecdump",
190 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke1_0_AST.bin",
191 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke1_0_TOF.bin",
192 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke1_1_AST.bin",
193 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke1_1_TOF.bin",
194 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke2_0_AST.bin",
195 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke2_0_TOF.bin",
196 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke2_1_AST.bin",
197 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingC hoke2_1_TOF.bin",
198 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingD elay1_0_AST.bin",
199 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingD elay1_0_TOF.bin",
200 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingL oss1_0_AST.bin",
201 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingL oss1_0_TOF.bin",
202 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_AS T.bin",
203 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_TO F.bin",
204 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke _0_AST.bin",
205 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke _0_TOF.bin",
206 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke _1_AST.bin",
207 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke _1_TOF.bin",
208 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDelay _0_AST.bin",
209 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDelay _0_TOF.bin",
210 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLoss_ 0_AST.bin",
211 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLoss_ 0_TOF.bin",
212 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSp eed_0_AST.bin",
213 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSp eed_0_TOF.bin",
214 "//resources/short_mixed_mono_48.dat",
215 "//resources/short_mixed_mono_48_arm.dat",
216 "//resources/short_mixed_mono_48.pcm",
217 "//resources/short_mixed_stereo_48.dat",
218 "//resources/short_mixed_stereo_48.pcm",
219 "//resources/sprint-downlink.rx",
220 "//resources/sprint-uplink.rx",
221 "//resources/synthetic-trace.rx",
222 "//resources/tmobile-downlink.rx",
223 "//resources/tmobile-uplink.rx",
224 "//resources/utility/encapsulated_pcm16b_8khz.wav",
225 "//resources/utility/encapsulated_pcmu_8khz.wav",
226 "//resources/verizon3g-downlink.rx",
227 "//resources/verizon3g-uplink.rx",
228 "//resources/verizon4g-downlink.rx",
229 "//resources/verizon4g-uplink.rx",
230 ]
231 }
232
233 if (is_ios) {
234 bundle_data("modules_unittests_bundle_data") {
235 testonly = true
236 sources = modules_unittests_resources
237 outputs = [
238 "{{bundle_resources_dir}}/{{source_file_part}}",
239 ]
240 }
241 }
242
112 test("modules_unittests") { 243 test("modules_unittests") {
113 testonly = true 244 testonly = true
114 245
115 defines = audio_coding_defines 246 defines = audio_coding_defines
116 deps = [] 247 deps = []
117 sources = [ 248 sources = [
118 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", 249 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc",
119 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", 250 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc",
120 "audio_coding/acm2/call_statistics_unittest.cc", 251 "audio_coding/acm2/call_statistics_unittest.cc",
121 "audio_coding/acm2/codec_manager_unittest.cc", 252 "audio_coding/acm2/codec_manager_unittest.cc",
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 # base/android/jni_android.h triggering it: 638 # base/android/jni_android.h triggering it:
508 # const BASE_EXPORT jobject GetApplicationContext() 639 # const BASE_EXPORT jobject GetApplicationContext()
509 # error: type qualifiers ignored on function return type 640 # error: type qualifiers ignored on function return type
510 cflags = [ "-Wno-ignored-qualifiers" ] 641 cflags = [ "-Wno-ignored-qualifiers" ]
511 sources += [ 642 sources += [
512 "audio_device/android/audio_device_unittest.cc", 643 "audio_device/android/audio_device_unittest.cc",
513 "audio_device/android/audio_manager_unittest.cc", 644 "audio_device/android/audio_manager_unittest.cc",
514 "audio_device/android/ensure_initialized.cc", 645 "audio_device/android/ensure_initialized.cc",
515 "audio_device/android/ensure_initialized.h", 646 "audio_device/android/ensure_initialized.h",
516 ] 647 ]
648 data = modules_unittests_resources
517 shard_timeout = 900 649 shard_timeout = 900
518 } 650 }
519
520 if (is_android || is_ios) {
521 data = [
522 "//data/audio_processing/output_data_fixed.pb",
523 "//data/audio_processing/output_data_float.pb",
524 "//data/audio_processing/output_data_mac.pb",
525 "//data/voice_engine/audio_tiny48.wav",
526 "//resources/att-downlink.rx",
527 "//resources/att-uplink.rx",
528 "//resources/audio_coding/neteq_opus.rtp",
529 "//resources/audio_coding/neteq_universal_new.rtp",
530 "//resources/audio_coding/speech_mono_16kHz.pcm",
531 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
532 "//resources/audio_coding/testfile32kHz.pcm",
533 "//resources/audio_coding/teststereo32kHz.pcm",
534 "//resources/audio_device/audio_short16.pcm",
535 "//resources/audio_device/audio_short44.pcm",
536 "//resources/audio_device/audio_short48.pcm",
537 "//resources/audio_processing/agc/agc_audio.pcm",
538 "//resources/audio_processing/agc/agc_no_circular_buffer.dat",
539 "//resources/audio_processing/agc/agc_pitch_gain.dat",
540 "//resources/audio_processing/agc/agc_pitch_lag.dat",
541 "//resources/audio_processing/agc/agc_spectral_peak.dat",
542 "//resources/audio_processing/agc/agc_vad.dat",
543 "//resources/audio_processing/agc/agc_voicing_prob.dat",
544 "//resources/audio_processing/agc/agc_with_circular_buffer.dat",
545 "//resources/audio_processing/transient/ajm-macbook-1-spke16m.pcm",
546 "//resources/audio_processing/transient/audio16kHz.pcm",
547 "//resources/audio_processing/transient/audio32kHz.pcm",
548 "//resources/audio_processing/transient/audio48kHz.pcm",
549 "//resources/audio_processing/transient/audio8kHz.pcm",
550 "//resources/audio_processing/transient/detect16kHz.dat",
551 "//resources/audio_processing/transient/detect32kHz.dat",
552 "//resources/audio_processing/transient/detect48kHz.dat",
553 "//resources/audio_processing/transient/detect8kHz.dat",
554 "//resources/audio_processing/transient/double-utils.dat",
555 "//resources/audio_processing/transient/float-utils.dat",
556 "//resources/audio_processing/transient/suppressed16kHz.pcm",
557 "//resources/audio_processing/transient/suppressed32kHz.pcm",
558 "//resources/audio_processing/transient/suppressed8kHz.pcm",
559 "//resources/audio_processing/transient/wpd0.dat",
560 "//resources/audio_processing/transient/wpd1.dat",
561 "//resources/audio_processing/transient/wpd2.dat",
562 "//resources/audio_processing/transient/wpd3.dat",
563 "//resources/audio_processing/transient/wpd4.dat",
564 "//resources/audio_processing/transient/wpd5.dat",
565 "//resources/audio_processing/transient/wpd6.dat",
566 "//resources/audio_processing/transient/wpd7.dat",
567 "//resources/deflicker_before_cif_short.yuv",
568 "//resources/far16_stereo.pcm",
569 "//resources/far32_stereo.pcm",
570 "//resources/far44_stereo.pcm",
571 "//resources/far48_stereo.pcm",
572 "//resources/far8_stereo.pcm",
573 "//resources/foremanColorEnhanced_cif_short.yuv",
574 "//resources/foreman_cif.yuv",
575 "//resources/foreman_cif_short.yuv",
576 "//resources/near16_stereo.pcm",
577 "//resources/near32_stereo.pcm",
578 "//resources/near44_stereo.pcm",
579 "//resources/near48_stereo.pcm",
580 "//resources/near8_stereo.pcm",
581 "//resources/ref03.aecdump",
582 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke1_0_AST.bin",
583 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke1_0_TOF.bin",
584 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke1_1_AST.bin",
585 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke1_1_TOF.bin",
586 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke2_0_AST.bin",
587 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke2_0_TOF.bin",
588 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke2_1_AST.bin",
589 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gChoke2_1_TOF.bin",
590 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gDelay1_0_AST.bin",
591 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gDelay1_0_TOF.bin",
592 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gLoss1_0_AST.bin",
593 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Increasin gLoss1_0_TOF.bin",
594 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_ AST.bin",
595 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_ TOF.bin",
596 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyCho ke_0_AST.bin",
597 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyCho ke_0_TOF.bin",
598 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyCho ke_1_AST.bin",
599 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyCho ke_1_TOF.bin",
600 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDel ay_0_AST.bin",
601 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDel ay_0_TOF.bin",
602 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLos s_0_AST.bin",
603 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLos s_0_TOF.bin",
604 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Unlimited Speed_0_AST.bin",
605 "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Unlimited Speed_0_TOF.bin",
606 "//resources/short_mixed_mono_48.dat",
607 "//resources/short_mixed_mono_48_arm.dat",
608 "//resources/short_mixed_mono_48.pcm",
609 "//resources/short_mixed_stereo_48.dat",
610 "//resources/short_mixed_stereo_48.pcm",
611 "//resources/sprint-downlink.rx",
612 "//resources/sprint-uplink.rx",
613 "//resources/synthetic-trace.rx",
614 "//resources/tmobile-downlink.rx",
615 "//resources/tmobile-uplink.rx",
616 "//resources/utility/encapsulated_pcm16b_8khz.wav",
617 "//resources/utility/encapsulated_pcmu_8khz.wav",
618 "//resources/verizon3g-downlink.rx",
619 "//resources/verizon3g-uplink.rx",
620 "//resources/verizon4g-downlink.rx",
621 "//resources/verizon4g-uplink.rx",
622 ]
623 }
624
625 if (is_ios) { 651 if (is_ios) {
652 deps += [ ":modules_unittests_bundle_data" ]
626 configs += [ 653 configs += [
627 "..:common_objc", 654 "..:common_objc",
628 "//build/config/compiler:enable_arc", 655 "//build/config/compiler:enable_arc",
629 ] 656 ]
630 657
631 sources += [ 658 sources += [
632 "audio_device/ios/audio_device_unittest_ios.cc", 659 "audio_device/ios/audio_device_unittest_ios.cc",
633 "audio_device/ios/objc/RTCAudioSessionTest.mm", 660 "audio_device/ios/objc/RTCAudioSessionTest.mm",
634 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", 661 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc",
635 ] 662 ]
636 663
637 ldflags = [ "-ObjC" ] 664 ldflags = [ "-ObjC" ]
638
639 # TODO(kjellander): Mac bundle files.
640 } 665 }
641 } 666 }
642 } 667 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698