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

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

Issue 2845323002: Enabling 'gn check' on webrtc/test. (Closed)
Patch Set: enabling check in .gn after chromium trybots Created 3 years, 7 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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 ":audio_encoder_interface", 1130 ":audio_encoder_interface",
1131 ":neteq", 1131 ":neteq",
1132 "..:module_api", 1132 "..:module_api",
1133 "../..:webrtc_common", 1133 "../..:webrtc_common",
1134 "../../api/audio_codecs:builtin_audio_decoder_factory", 1134 "../../api/audio_codecs:builtin_audio_decoder_factory",
1135 "../../base:rtc_base_approved", 1135 "../../base:rtc_base_approved",
1136 "../rtp_rtcp", 1136 "../rtp_rtcp",
1137 ] 1137 ]
1138 } 1138 }
1139 1139
1140 config("neteq_tools_config") {
1141 include_dirs = [ "tools" ]
1142 }
1143
1144 rtc_source_set("neteq_tools") {
1145 sources = [
1146 "neteq/tools/fake_decode_from_file.cc",
1147 "neteq/tools/fake_decode_from_file.h",
1148 "neteq/tools/input_audio_file.cc",
1149 "neteq/tools/input_audio_file.h",
1150 "neteq/tools/neteq_replacement_input.cc",
1151 "neteq/tools/neteq_replacement_input.h",
1152 "neteq/tools/resample_input_audio_file.cc",
1153 "neteq/tools/resample_input_audio_file.h",
1154 ]
1155
1156 public_configs = [ ":neteq_tools_config" ]
1157
1158 if (!build_with_chromium && is_clang) {
1159 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1160 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1161 }
1162
1163 deps = [
1164 "../..:webrtc_common",
1165 "../../api/audio_codecs:audio_codecs_api",
1166 "../../base:rtc_base_approved",
1167 "../../common_audio",
1168 "../rtp_rtcp",
1169 ]
1170
1171 public_deps = [
1172 ":neteq_tools_minimal",
1173 ]
1174 }
1175
1176 rtc_source_set("neteq_test_tools") {
1177 testonly = true
1178 sources = [
1179 "neteq/tools/audio_checksum.h",
1180 "neteq/tools/audio_loop.cc",
1181 "neteq/tools/audio_loop.h",
1182 "neteq/tools/constant_pcm_packet_source.cc",
1183 "neteq/tools/constant_pcm_packet_source.h",
1184 "neteq/tools/output_audio_file.h",
1185 "neteq/tools/output_wav_file.h",
1186 "neteq/tools/rtp_file_source.cc",
1187 "neteq/tools/rtp_file_source.h",
1188 "neteq/tools/rtp_generator.cc",
1189 "neteq/tools/rtp_generator.h",
1190 ]
1191
1192 public_configs = [ ":neteq_tools_config" ]
1193
1194 if (!build_with_chromium && is_clang) {
1195 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1196 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1197 }
1198
1199 deps = [
1200 ":pcm16b",
1201 "..:module_api",
1202 "../..:webrtc_common",
1203 "../../base:rtc_base_approved",
1204 "../../base:rtc_base_tests_utils",
1205 "../../common_audio",
1206 "../../test:rtp_test_utils",
1207 "../rtp_rtcp",
1208 ]
1209
1210 public_deps = [
1211 ":neteq_tools",
1212 ":neteq_tools_minimal",
1213 ]
1214
1215 if (rtc_enable_protobuf) {
1216 sources += [
1217 "neteq/tools/neteq_packet_source_input.cc",
1218 "neteq/tools/neteq_packet_source_input.h",
1219 ]
1220 deps += [ ":rtc_event_log_source" ]
1221 }
1222 }
1223
1224 if (rtc_enable_protobuf) {
1225 rtc_static_library("rtc_event_log_source") {
1226 testonly = true
1227
1228 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1229 # Needs call.h to be moved to webrtc/api first.
1230 check_includes = false
1231
1232 sources = [
1233 "neteq/tools/rtc_event_log_source.cc",
1234 "neteq/tools/rtc_event_log_source.h",
1235 ]
1236
1237 if (!build_with_chromium && is_clang) {
1238 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1239 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1240 }
1241
1242 deps = [
1243 "../../base:rtc_base_approved",
1244 "../../logging:rtc_event_log_parser",
1245 ]
1246 public_deps = [
1247 "../../logging:rtc_event_log_proto",
1248 ]
1249 }
1250 }
1251
1140 if (rtc_include_tests) { 1252 if (rtc_include_tests) {
1141 group("audio_coding_tests") { 1253 group("audio_coding_tests") {
1142 testonly = true 1254 testonly = true
1143 public_deps = [ 1255 public_deps = [
1144 ":RTPchange", 1256 ":RTPchange",
1145 ":RTPencode", 1257 ":RTPencode",
1146 ":RTPjitter", 1258 ":RTPjitter",
1147 ":RTPtimeshift", 1259 ":RTPtimeshift",
1148 ":acm_receive_test", 1260 ":acm_receive_test",
1149 ":acm_send_test", 1261 ":acm_send_test",
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 } # audio_decoder_unittests 1515 } # audio_decoder_unittests
1404 1516
1405 if (rtc_enable_protobuf) { 1517 if (rtc_enable_protobuf) {
1406 proto_library("neteq_unittest_proto") { 1518 proto_library("neteq_unittest_proto") {
1407 sources = [ 1519 sources = [
1408 "neteq/neteq_unittest.proto", 1520 "neteq/neteq_unittest.proto",
1409 ] 1521 ]
1410 proto_out_dir = "webrtc/modules/audio_coding/neteq" 1522 proto_out_dir = "webrtc/modules/audio_coding/neteq"
1411 } 1523 }
1412 1524
1413 rtc_static_library("rtc_event_log_source") {
1414 testonly = true
1415
1416 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1417 # Needs call.h to be moved to webrtc/api first.
1418 check_includes = false
1419
1420 sources = [
1421 "neteq/tools/rtc_event_log_source.cc",
1422 "neteq/tools/rtc_event_log_source.h",
1423 ]
1424
1425 if (!build_with_chromium && is_clang) {
1426 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
1427 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1428 }
1429
1430 deps = [
1431 "../../base:rtc_base_approved",
1432 "../../logging:rtc_event_log_parser",
1433 ]
1434 public_deps = [
1435 "../../logging:rtc_event_log_proto",
1436 ]
1437 }
1438
1439 rtc_test("neteq_rtpplay") { 1525 rtc_test("neteq_rtpplay") {
1440 testonly = true 1526 testonly = true
1441 defines = [] 1527 defines = []
1442 deps = [ 1528 deps = [
1443 "..:module_api", 1529 "..:module_api",
1444 ] 1530 ]
1445 sources = [ 1531 sources = [
1446 "neteq/tools/neteq_rtpplay.cc", 1532 "neteq/tools/neteq_rtpplay.cc",
1447 ] 1533 ]
1448 1534
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 "..:module_api", 1636 "..:module_api",
1551 "../..:webrtc_common", 1637 "../..:webrtc_common",
1552 "../../api/audio_codecs:builtin_audio_decoder_factory", 1638 "../../api/audio_codecs:builtin_audio_decoder_factory",
1553 "../../base:rtc_base_approved", 1639 "../../base:rtc_base_approved",
1554 "../../test:test_support", 1640 "../../test:test_support",
1555 "//testing/gtest", 1641 "//testing/gtest",
1556 "//third_party/gflags", 1642 "//third_party/gflags",
1557 ] 1643 ]
1558 } 1644 }
1559 1645
1560 config("neteq_tools_config") {
1561 include_dirs = [ "tools" ]
1562 }
1563
1564 rtc_source_set("neteq_tools") {
1565 sources = [
1566 "neteq/tools/fake_decode_from_file.cc",
1567 "neteq/tools/fake_decode_from_file.h",
1568 "neteq/tools/input_audio_file.cc",
1569 "neteq/tools/input_audio_file.h",
1570 "neteq/tools/neteq_replacement_input.cc",
1571 "neteq/tools/neteq_replacement_input.h",
1572 "neteq/tools/resample_input_audio_file.cc",
1573 "neteq/tools/resample_input_audio_file.h",
1574 ]
1575
1576 public_configs = [ ":neteq_tools_config" ]
1577
1578 if (!build_with_chromium && is_clang) {
1579 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1580 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1581 }
1582
1583 deps = [
1584 "../..:webrtc_common",
1585 "../../api/audio_codecs:audio_codecs_api",
1586 "../../base:rtc_base_approved",
1587 "../../common_audio",
1588 "../rtp_rtcp",
1589 ]
1590
1591 public_deps = [
1592 ":neteq_tools_minimal",
1593 ]
1594 }
1595
1596 rtc_source_set("neteq_test_tools") {
1597 testonly = true
1598 sources = [
1599 "neteq/tools/audio_checksum.h",
1600 "neteq/tools/audio_loop.cc",
1601 "neteq/tools/audio_loop.h",
1602 "neteq/tools/constant_pcm_packet_source.cc",
1603 "neteq/tools/constant_pcm_packet_source.h",
1604 "neteq/tools/output_audio_file.h",
1605 "neteq/tools/output_wav_file.h",
1606 "neteq/tools/rtp_file_source.cc",
1607 "neteq/tools/rtp_file_source.h",
1608 "neteq/tools/rtp_generator.cc",
1609 "neteq/tools/rtp_generator.h",
1610 ]
1611
1612 public_configs = [ ":neteq_tools_config" ]
1613
1614 if (!build_with_chromium && is_clang) {
1615 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1616 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1617 }
1618
1619 deps = [
1620 ":pcm16b",
1621 "..:module_api",
1622 "../..:webrtc_common",
1623 "../../base:rtc_base_approved",
1624 "../../base:rtc_base_tests_utils",
1625 "../../common_audio",
1626 "../../test:rtp_test_utils",
1627 "../rtp_rtcp",
1628 ]
1629
1630 public_deps = [
1631 ":neteq_tools",
1632 ":neteq_tools_minimal",
1633 ]
1634
1635 if (rtc_enable_protobuf) {
1636 sources += [
1637 "neteq/tools/neteq_packet_source_input.cc",
1638 "neteq/tools/neteq_packet_source_input.h",
1639 ]
1640 deps += [ ":rtc_event_log_source" ]
1641 }
1642 }
1643
1644 rtc_source_set("neteq_test_tools_deprecated") { 1646 rtc_source_set("neteq_test_tools_deprecated") {
1645 testonly = true 1647 testonly = true
1646 sources = [ 1648 sources = [
1647 "neteq/test/NETEQTEST_DummyRTPpacket.cc", 1649 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1648 "neteq/test/NETEQTEST_DummyRTPpacket.h", 1650 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1649 "neteq/test/NETEQTEST_RTPpacket.cc", 1651 "neteq/test/NETEQTEST_RTPpacket.cc",
1650 "neteq/test/NETEQTEST_RTPpacket.h", 1652 "neteq/test/NETEQTEST_RTPpacket.h",
1651 ] 1653 ]
1652 1654
1653 deps = [ 1655 deps = [
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. 2227 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2226 # TODO(kwiberg): Remove this. 2228 # TODO(kwiberg): Remove this.
2227 rtc_source_set("builtin_audio_decoder_factory") { 2229 rtc_source_set("builtin_audio_decoder_factory") {
2228 sources = [ 2230 sources = [
2229 "codecs/builtin_audio_decoder_factory.h", 2231 "codecs/builtin_audio_decoder_factory.h",
2230 ] 2232 ]
2231 deps = [ 2233 deps = [
2232 "../../api/audio_codecs:builtin_audio_decoder_factory", 2234 "../../api/audio_codecs:builtin_audio_decoder_factory",
2233 ] 2235 ]
2234 } 2236 }
OLDNEW
« .gn ('K') | « .gn ('k') | webrtc/modules/audio_device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698