BUILD.gn (3491B)
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 # 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 5 # tree. An additional intellectual property rights grant can be found 6 # in the file PATENTS. All contributing project authors may 7 # be found in the AUTHORS file in the root of the source tree. 8 9 import("../webrtc.gni") 10 import("audio_coding/audio_coding.gni") 11 12 group("modules") { 13 deps = [ 14 "audio_coding", 15 "audio_device", 16 "audio_mixer", 17 "audio_processing", 18 "congestion_controller", 19 "pacing", 20 "remote_bitrate_estimator", 21 "rtp_rtcp", 22 "utility", 23 "video_coding", 24 ] 25 26 if (rtc_desktop_capture_supported) { 27 deps += [ "desktop_capture" ] 28 } 29 } 30 31 rtc_source_set("module_api_public") { 32 sources = [ "include/module_common_types_public.h" ] 33 } 34 35 rtc_source_set("module_api") { 36 visibility = [ "*" ] 37 sources = [ "include/module_common_types.h" ] 38 } 39 40 rtc_source_set("module_fec_api") { 41 visibility = [ "*" ] 42 sources = [ "include/module_fec_types.h" ] 43 } 44 45 if (rtc_include_tests && !build_with_chromium) { 46 rtc_test("modules_tests") { 47 testonly = true 48 49 deps = [ 50 "../test:test_main", 51 "../test:video_test_common", 52 "audio_coding:audio_coding_modules_tests", 53 "rtp_rtcp:rtp_rtcp_modules_tests", 54 "video_coding:video_coding_modules_tests", 55 "//testing/gtest", 56 ] 57 58 if (rtc_desktop_capture_supported) { 59 deps += [ "desktop_capture:desktop_capture_modules_tests" ] 60 } 61 62 data_deps = [ "../resources:modules_tests_data" ] 63 64 if (is_android) { 65 use_default_launcher = false 66 deps += [ 67 # NOTE(brandtr): Including Java classes seems only to be possible from 68 # rtc_test targets. Therefore we include this target here, instead of 69 # in video_coding_modules_tests, where it is actually used. 70 "../sdk/android:libjingle_peerconnection_java", 71 ] 72 shard_timeout = 900 73 } 74 75 if (is_ios) { 76 deps += [ "../resources:modules_tests_bundle_data" ] 77 } 78 } 79 rtc_test("modules_unittests") { 80 testonly = true 81 defines = [] 82 sources = [ "module_common_types_public_unittest.cc" ] 83 84 deps = [ 85 ":module_api", 86 ":module_api_public", 87 "../test:test_main", 88 "../test:test_support", 89 "audio_coding:audio_coding_unittests", 90 "audio_device:audio_device_unittests", 91 "audio_mixer:audio_mixer_unittests", 92 "audio_processing:audio_processing_unittests", 93 "audio_processing/aec3:aec3_unittests", 94 "audio_processing/ns:ns_unittests", 95 "congestion_controller:congestion_controller_unittests", 96 "pacing:pacing_unittests", 97 "remote_bitrate_estimator:remote_bitrate_estimator_unittests", 98 "rtp_rtcp:rtp_rtcp_unittests", 99 "video_coding:video_coding_unittests", 100 "video_coding/deprecated:deprecated_unittests", 101 "video_coding/timing:timing_unittests", 102 ] 103 104 if (rtc_desktop_capture_supported) { 105 deps += [ "desktop_capture:desktop_capture_unittests" ] 106 } 107 108 data_deps = [ "../resources:modules_unittests_data" ] 109 110 if (is_android) { 111 use_default_launcher = false 112 deps += [ "../sdk/android:libjingle_peerconnection_java" ] 113 shard_timeout = 900 114 } 115 if (is_ios) { 116 info_plist = "../test/ios/Info.plist" 117 deps += [ "../resources:modules_unittests_bundle_data" ] 118 configs += [ "..:common_objc" ] 119 ldflags = [ "-ObjC" ] 120 } 121 } 122 }