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

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

Issue 2609443003: Refactoring ./webrtc/modules/BUILD.gn for gn check (Closed)
Patch Set: Adding the "last" patch set with dependencies Created 3 years, 11 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 videoprocessor_defines = [] 59 videoprocessor_defines = []
60 if (rtc_use_h264) { 60 if (rtc_use_h264) {
61 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] 61 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
62 } 62 }
63 63
64 defines = audio_coding_defines + videoprocessor_defines 64 defines = audio_coding_defines + videoprocessor_defines
65 65
66 deps = [ 66 deps = [
67 "..:webrtc_common", 67 "..:webrtc_common",
68 "../base:rtc_base",
69 "../base:rtc_base_approved",
68 "../common_video", 70 "../common_video",
69 "../media:rtc_media_base", 71 "../media:rtc_media_base",
70 "../modules/audio_coding", 72 "../modules/audio_coding",
71 "../modules/audio_coding:audio_format_conversion", 73 "../modules/audio_coding:audio_format_conversion",
74 "../modules/audio_coding:g711",
72 "../modules/rtp_rtcp", 75 "../modules/rtp_rtcp",
73 "../modules/utility", 76 "../modules/utility",
74 "../modules/video_coding", 77 "../modules/video_coding",
75 "../modules/video_coding:video_codecs_test_framework", 78 "../modules/video_coding:video_codecs_test_framework",
79 "../modules/video_coding:webrtc_vp9",
76 "../system_wrappers", 80 "../system_wrappers",
77 "../test:test_main", 81 "../test:test_main",
82 "../test:video_test_common",
83 "audio_coding:builtin_audio_decoder_factory",
84 "audio_coding:pcm16b_c",
85 "desktop_capture:primitives",
86 "video_coding:webrtc_h264",
87 "video_coding:webrtc_vp8",
78 "//testing/gmock", 88 "//testing/gmock",
79 "//testing/gtest", 89 "//testing/gtest",
80 ] 90 ]
81 91
82 sources = [ 92 sources = [
83 "audio_coding/test/APITest.cc", 93 "audio_coding/test/APITest.cc",
84 "audio_coding/test/Channel.cc", 94 "audio_coding/test/Channel.cc",
85 "audio_coding/test/EncodeDecodeTest.cc", 95 "audio_coding/test/EncodeDecodeTest.cc",
86 "audio_coding/test/PCMFile.cc", 96 "audio_coding/test/PCMFile.cc",
87 "audio_coding/test/PacketLossTest.cc", 97 "audio_coding/test/PacketLossTest.cc",
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 "audio_coding/audio_network_adaptor/bitrate_controller_unittest.cc", 269 "audio_coding/audio_network_adaptor/bitrate_controller_unittest.cc",
260 "audio_coding/audio_network_adaptor/channel_controller_unittest.cc", 270 "audio_coding/audio_network_adaptor/channel_controller_unittest.cc",
261 "audio_coding/audio_network_adaptor/controller_manager_unittest.cc", 271 "audio_coding/audio_network_adaptor/controller_manager_unittest.cc",
262 "audio_coding/audio_network_adaptor/dtx_controller_unittest.cc", 272 "audio_coding/audio_network_adaptor/dtx_controller_unittest.cc",
263 "audio_coding/audio_network_adaptor/fec_controller_unittest.cc", 273 "audio_coding/audio_network_adaptor/fec_controller_unittest.cc",
264 "audio_coding/audio_network_adaptor/frame_length_controller_unittest.cc", 274 "audio_coding/audio_network_adaptor/frame_length_controller_unittest.cc",
265 "audio_coding/audio_network_adaptor/mock/mock_controller.h", 275 "audio_coding/audio_network_adaptor/mock/mock_controller.h",
266 "audio_coding/audio_network_adaptor/mock/mock_controller_manager.h", 276 "audio_coding/audio_network_adaptor/mock/mock_controller_manager.h",
267 ] 277 ]
268 deps = [ 278 deps = [
279 "../base:rtc_base_approved",
280 "../system_wrappers:system_wrappers",
281 "../test:field_trial",
282 "../test:test_support",
269 "audio_coding:audio_network_adaptor", 283 "audio_coding:audio_network_adaptor",
270 "//testing/gmock", 284 "//testing/gmock",
271 "//testing/gtest", 285 "//testing/gtest",
272 ] 286 ]
273 if (rtc_enable_protobuf) { 287 if (rtc_enable_protobuf) {
274 deps += [ "audio_coding:ana_config_proto" ] 288 deps += [ "audio_coding:ana_config_proto" ]
275 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ] 289 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
276 } 290 }
277 if (!build_with_chromium && is_clang) { 291 if (!build_with_chromium && is_clang) {
278 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 292 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
279 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 293 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
280 } 294 }
281 } 295 }
282 296
283 rtc_test("modules_unittests") { 297 rtc_test("modules_unittests") {
298 #TODO(mbonadei): Remove (bugs.webrtc.org/6828)
299 # Errors on a dependency to a protobuffer generated code
300 # this target is not in the visibility list of the generated
301 # target:
302 # //webrtc/modules/audio_processing:audioproc_debug_proto
303 check_includes = false
284 testonly = true 304 testonly = true
285 305
286 defines = audio_coding_defines 306 defines = audio_coding_defines
287 deps = [] 307 deps = [
308 "../base:gtest_prod",
309 "../base:rtc_task_queue",
310 "../system_wrappers:metrics_default",
311 "../test:field_trial",
312 "../test:test_support_unittests",
313 "audio_coding:audio_decoder_interface",
314 "audio_coding:audio_encoder_interface",
315 "audio_coding:audio_format_conversion",
316 "audio_coding:g711",
317 "audio_coding:ilbc",
318 "audio_coding:isac_c",
319 "audio_coding:rent_a_codec",
320 "congestion_controller:congestion_controller",
321 "desktop_capture:primitives",
322 "video_coding:video_coding_utility",
323 "video_coding:webrtc_h264",
324 ]
288 sources = [ 325 sources = [
289 "audio_coding/acm2/acm_receiver_unittest.cc", 326 "audio_coding/acm2/acm_receiver_unittest.cc",
290 "audio_coding/acm2/audio_coding_module_unittest.cc", 327 "audio_coding/acm2/audio_coding_module_unittest.cc",
291 "audio_coding/acm2/call_statistics_unittest.cc", 328 "audio_coding/acm2/call_statistics_unittest.cc",
292 "audio_coding/acm2/codec_manager_unittest.cc", 329 "audio_coding/acm2/codec_manager_unittest.cc",
293 "audio_coding/acm2/rent_a_codec_unittest.cc", 330 "audio_coding/acm2/rent_a_codec_unittest.cc",
294 "audio_coding/codecs/audio_decoder_factory_unittest.cc", 331 "audio_coding/codecs/audio_decoder_factory_unittest.cc",
295 "audio_coding/codecs/cng/audio_encoder_cng_unittest.cc", 332 "audio_coding/codecs/cng/audio_encoder_cng_unittest.cc",
296 "audio_coding/codecs/cng/cng_unittest.cc", 333 "audio_coding/codecs/cng/cng_unittest.cc",
297 "audio_coding/codecs/ilbc/ilbc_unittest.cc", 334 "audio_coding/codecs/ilbc/ilbc_unittest.cc",
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 if (rtc_desktop_capture_supported) { 598 if (rtc_desktop_capture_supported) {
562 deps += [ "desktop_capture:desktop_capture_mock" ] 599 deps += [ "desktop_capture:desktop_capture_mock" ]
563 sources += [ 600 sources += [
564 "desktop_capture/desktop_and_cursor_composer_unittest.cc", 601 "desktop_capture/desktop_and_cursor_composer_unittest.cc",
565 "desktop_capture/desktop_capturer_differ_wrapper_unittest.cc", 602 "desktop_capture/desktop_capturer_differ_wrapper_unittest.cc",
566 "desktop_capture/desktop_frame_rotation_unittest.cc", 603 "desktop_capture/desktop_frame_rotation_unittest.cc",
567 "desktop_capture/mouse_cursor_monitor_unittest.cc", 604 "desktop_capture/mouse_cursor_monitor_unittest.cc",
568 "desktop_capture/rgba_color_unittest.cc", 605 "desktop_capture/rgba_color_unittest.cc",
569 "desktop_capture/screen_capturer_helper_unittest.cc", 606 "desktop_capture/screen_capturer_helper_unittest.cc",
570 "desktop_capture/screen_capturer_mac_unittest.cc", 607 "desktop_capture/screen_capturer_mac_unittest.cc",
571 "desktop_capture/screen_capturer_mock_objects.h",
572 "desktop_capture/screen_capturer_unittest.cc", 608 "desktop_capture/screen_capturer_unittest.cc",
573 "desktop_capture/test_utils.cc", 609 "desktop_capture/test_utils.cc",
574 "desktop_capture/test_utils.h", 610 "desktop_capture/test_utils.h",
575 "desktop_capture/test_utils_unittest.cc", 611 "desktop_capture/test_utils_unittest.cc",
576 "desktop_capture/win/cursor_unittest.cc", 612 "desktop_capture/win/cursor_unittest.cc",
577 "desktop_capture/win/cursor_unittest_resources.h", 613 "desktop_capture/win/cursor_unittest_resources.h",
578 "desktop_capture/win/cursor_unittest_resources.rc", 614 "desktop_capture/win/cursor_unittest_resources.rc",
579 "desktop_capture/window_capturer_unittest.cc", 615 "desktop_capture/window_capturer_unittest.cc",
580 ] 616 ]
581 } 617 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 "video_processing", 721 "video_processing",
686 "//testing/gmock", 722 "//testing/gmock",
687 "//testing/gtest", 723 "//testing/gtest",
688 "//third_party/gflags", 724 "//third_party/gflags",
689 ] 725 ]
690 726
691 data = modules_unittests_resources 727 data = modules_unittests_resources
692 728
693 if (is_android) { 729 if (is_android) {
694 deps += [ 730 deps += [
695 "//testing/android/native_test:native_test_support", 731 "//testing/android/native_test:native_test_support",
kjellander_webrtc 2016/12/30 13:22:44 Can you try with native_test_native_code instead?
mbonadei 2016/12/30 13:36:10 Acknowledged.
696 "//webrtc/sdk/android:libjingle_peerconnection_java", 732 "//webrtc/sdk/android:libjingle_peerconnection_java",
697 ] 733 ]
698 734
699 # Need to disable error due to the line in 735 # Need to disable error due to the line in
700 # base/android/jni_android.h triggering it: 736 # base/android/jni_android.h triggering it:
701 # const BASE_EXPORT jobject GetApplicationContext() 737 # const BASE_EXPORT jobject GetApplicationContext()
702 # error: type qualifiers ignored on function return type 738 # error: type qualifiers ignored on function return type
703 cflags = [ "-Wno-ignored-qualifiers" ] 739 cflags = [ "-Wno-ignored-qualifiers" ]
704 sources += [ 740 sources += [
705 "audio_device/android/audio_device_unittest.cc", 741 "audio_device/android/audio_device_unittest.cc",
(...skipping 17 matching lines...) Expand all
723 sources += [ "audio_device/ios/audio_device_unittest_ios.cc" ] 759 sources += [ "audio_device/ios/audio_device_unittest_ios.cc" ]
724 } 760 }
725 761
726 ldflags = [ "-ObjC" ] 762 ldflags = [ "-ObjC" ]
727 } 763 }
728 } 764 }
729 765
730 rtc_test("bwe_simulator") { 766 rtc_test("bwe_simulator") {
731 testonly = true 767 testonly = true
732 768
733 deps = [] 769 deps = [
770 "remote_bitrate_estimator:remote_bitrate_estimator",
771 ]
734 sources = [ 772 sources = [
735 "remote_bitrate_estimator/bwe_simulations.cc", 773 "remote_bitrate_estimator/bwe_simulations.cc",
736 ] 774 ]
737 775
738 if (!build_with_chromium && is_clang) { 776 if (!build_with_chromium && is_clang) {
739 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 777 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
740 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 778 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
741 } 779 }
742 780
743 if (is_win) { 781 if (is_win) {
744 cflags = [ 782 cflags = [
745 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. 783 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
746 "/wd4373", # virtual function override. 784 "/wd4373", # virtual function override.
747 ] 785 ]
748 } 786 }
749 787
750 deps += [ 788 deps += [
751 "..:webrtc_common", 789 "..:webrtc_common",
752 "../base:rtc_base_approved", 790 "../base:rtc_base_approved",
753 "../test:test_common", 791 "../test:test_common",
754 "../test:test_main", 792 "../test:test_main",
755 "remote_bitrate_estimator:bwe_simulator_lib", 793 "remote_bitrate_estimator:bwe_simulator_lib",
756 "video_capture", 794 "video_capture",
757 "//testing/gmock", 795 "//testing/gmock",
758 "//testing/gtest", 796 "//testing/gtest",
759 "//third_party/gflags", 797 "//third_party/gflags",
760 ] 798 ]
761 } 799 }
762 } 800 }
OLDNEW
« no previous file with comments | « .gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | webrtc/modules/audio_coding/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698