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

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

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Disable Win compile warning Created 3 years, 8 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) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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("../../webrtc.gni") 9 import("../../webrtc.gni")
10 import("audio_coding.gni") 10 import("audio_coding.gni")
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 ":rtpcat", 1161 ":rtpcat",
1162 ":webrtc_opus_fec_test", 1162 ":webrtc_opus_fec_test",
1163 ] 1163 ]
1164 if (rtc_enable_protobuf) { 1164 if (rtc_enable_protobuf) {
1165 public_deps += [ ":neteq_rtpplay" ] 1165 public_deps += [ ":neteq_rtpplay" ]
1166 } 1166 }
1167 } 1167 }
1168 1168
1169 rtc_source_set("audio_coding_modules_tests") { 1169 rtc_source_set("audio_coding_modules_tests") {
1170 testonly = true 1170 testonly = true
1171 if (!is_android && !is_ios) { # Generated targets makes this check break.
1172 if (!is_android && !is_ios) { # Generated targets makes this check break.
1173 visibility = [ "//webrtc/modules:modules_tests" ]
1174 }
1175 }
1171 sources = [ 1176 sources = [
1172 "test/APITest.cc", 1177 "test/APITest.cc",
1173 "test/Channel.cc", 1178 "test/Channel.cc",
1174 "test/EncodeDecodeTest.cc", 1179 "test/EncodeDecodeTest.cc",
1175 "test/PCMFile.cc", 1180 "test/PCMFile.cc",
1176 "test/PacketLossTest.cc", 1181 "test/PacketLossTest.cc",
1177 "test/RTPFile.cc", 1182 "test/RTPFile.cc",
1178 "test/TestAllCodecs.cc", 1183 "test/TestAllCodecs.cc",
1179 "test/TestRedFec.cc", 1184 "test/TestRedFec.cc",
1180 "test/TestStereo.cc", 1185 "test/TestStereo.cc",
(...skipping 24 matching lines...) Expand all
1205 ] 1210 ]
1206 } 1211 }
1207 if (!build_with_chromium && is_clang) { 1212 if (!build_with_chromium && is_clang) {
1208 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 1213 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1209 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 1214 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1210 } 1215 }
1211 } 1216 }
1212 1217
1213 rtc_source_set("audio_coding_perf_tests") { 1218 rtc_source_set("audio_coding_perf_tests") {
1214 testonly = true 1219 testonly = true
1220 if (!is_android && !is_ios) { # Generated targets makes this check break.
1221 visibility = [ "//webrtc:webrtc_perf_tests" ]
1222 }
1215 sources = [ 1223 sources = [
1216 "codecs/opus/opus_complexity_unittest.cc", 1224 "codecs/opus/opus_complexity_unittest.cc",
1217 "neteq/test/neteq_performance_unittest.cc", 1225 "neteq/test/neteq_performance_unittest.cc",
1218 ] 1226 ]
1219 deps = [ 1227 deps = [
1220 ":neteq_test_support", 1228 ":neteq_test_support",
1221 ":neteq_unittest_tools", 1229 ":neteq_unittest_tools",
1222 ":webrtc_opus", 1230 ":webrtc_opus",
1223 "../..:webrtc_common", 1231 "../..:webrtc_common",
1224 "../../base:protobuf_utils", 1232 "../../base:protobuf_utils",
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 ] 2015 ]
2008 2016
2009 if (!build_with_chromium && is_clang) { 2017 if (!build_with_chromium && is_clang) {
2010 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 2018 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2011 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 2019 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2012 } 2020 }
2013 } 2021 }
2014 2022
2015 rtc_source_set("audio_coding_unittests") { 2023 rtc_source_set("audio_coding_unittests") {
2016 testonly = true 2024 testonly = true
2017 2025 if (!is_android && !is_ios) { # Generated targets makes this check break.
stefan-webrtc 2017/04/21 12:28:28 Why twice? :)
kjellander_webrtc 2017/04/21 12:48:21 Search-replace error. Fixed :)
2026 if (!is_android && !is_ios) { # Generated targets makes this check break.
2027 visibility = [ "//webrtc/modules:modules_unittests" ]
2028 }
2029 }
2018 sources = [ 2030 sources = [
2019 "acm2/acm_receiver_unittest.cc", 2031 "acm2/acm_receiver_unittest.cc",
2020 "acm2/audio_coding_module_unittest.cc", 2032 "acm2/audio_coding_module_unittest.cc",
2021 "acm2/call_statistics_unittest.cc", 2033 "acm2/call_statistics_unittest.cc",
2022 "acm2/codec_manager_unittest.cc", 2034 "acm2/codec_manager_unittest.cc",
2023 "acm2/rent_a_codec_unittest.cc", 2035 "acm2/rent_a_codec_unittest.cc",
2024 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc", 2036 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2025 "audio_network_adaptor/bitrate_controller_unittest.cc", 2037 "audio_network_adaptor/bitrate_controller_unittest.cc",
2026 "audio_network_adaptor/channel_controller_unittest.cc", 2038 "audio_network_adaptor/channel_controller_unittest.cc",
2027 "audio_network_adaptor/controller_manager_unittest.cc", 2039 "audio_network_adaptor/controller_manager_unittest.cc",
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. 2183 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2172 # TODO(kwiberg): Remove this. 2184 # TODO(kwiberg): Remove this.
2173 rtc_source_set("builtin_audio_decoder_factory") { 2185 rtc_source_set("builtin_audio_decoder_factory") {
2174 sources = [ 2186 sources = [
2175 "codecs/builtin_audio_decoder_factory.h", 2187 "codecs/builtin_audio_decoder_factory.h",
2176 ] 2188 ]
2177 deps = [ 2189 deps = [
2178 "../../api/audio_codecs:builtin_audio_decoder_factory", 2190 "../../api/audio_codecs:builtin_audio_decoder_factory",
2179 ] 2191 ]
2180 } 2192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698