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

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

Issue 2840453004: Reland of Enable GN check for webrtc/base (Closed)
Patch Set: Rebasing again 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 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 1123
1124 deps = [ 1124 deps = [
1125 ":audio_encoder_interface", 1125 ":audio_encoder_interface",
1126 ":neteq", 1126 ":neteq",
1127 "../..:webrtc_common", 1127 "../..:webrtc_common",
1128 "../../api/audio_codecs:builtin_audio_decoder_factory", 1128 "../../api/audio_codecs:builtin_audio_decoder_factory",
1129 "../../base:rtc_base_approved", 1129 "../../base:rtc_base_approved",
1130 ] 1130 ]
1131 } 1131 }
1132 1132
1133 config("neteq_unittest_tools_config") {
1134 include_dirs = [ "tools" ]
1135 }
1136
1137 rtc_source_set("neteq_unittest_tools") {
1138 testonly = true
1139 sources = [
1140 "neteq/tools/audio_checksum.h",
1141 "neteq/tools/audio_loop.cc",
1142 "neteq/tools/audio_loop.h",
1143 "neteq/tools/audio_sink.cc",
1144 "neteq/tools/audio_sink.h",
1145 "neteq/tools/constant_pcm_packet_source.cc",
1146 "neteq/tools/constant_pcm_packet_source.h",
1147 "neteq/tools/fake_decode_from_file.cc",
1148 "neteq/tools/fake_decode_from_file.h",
1149 "neteq/tools/input_audio_file.cc",
1150 "neteq/tools/input_audio_file.h",
1151 "neteq/tools/neteq_input.h",
1152 "neteq/tools/neteq_replacement_input.cc",
1153 "neteq/tools/neteq_replacement_input.h",
1154 "neteq/tools/output_audio_file.h",
1155 "neteq/tools/output_wav_file.h",
1156 "neteq/tools/packet.cc",
1157 "neteq/tools/packet.h",
1158 "neteq/tools/packet_source.cc",
1159 "neteq/tools/packet_source.h",
1160 "neteq/tools/resample_input_audio_file.cc",
1161 "neteq/tools/resample_input_audio_file.h",
1162 "neteq/tools/rtp_file_source.cc",
1163 "neteq/tools/rtp_file_source.h",
1164 "neteq/tools/rtp_generator.cc",
1165 "neteq/tools/rtp_generator.h",
1166 ]
1167
1168 public_configs = [ ":neteq_unittest_tools_config" ]
1169
1170 if (!build_with_chromium && is_clang) {
1171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1173 }
1174
1175 deps = [
1176 ":audio_encoder_interface",
1177 ":pcm16b",
1178 "../..:webrtc_common",
1179 "../../api/audio_codecs:audio_codecs_api",
1180 "../../base:rtc_base_approved",
1181 "../../base:rtc_base_tests_utils",
1182 "../../common_audio",
1183 "../../test:rtp_test_utils",
1184 "../rtp_rtcp",
1185 ]
1186
1187 public_deps = [
1188 ":neteq_test_minimal",
1189 ]
1190
1191 if (rtc_enable_protobuf) {
1192 sources += [
1193 "neteq/tools/neteq_packet_source_input.cc",
1194 "neteq/tools/neteq_packet_source_input.h",
1195 ]
1196 deps += [ ":rtc_event_log_source" ]
1197 }
1198 }
1199
1200 if (rtc_enable_protobuf) {
1201 rtc_static_library("rtc_event_log_source") {
1202 testonly = true
1203
1204 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1205 # Needs call.h to be moved to webrtc/api first.
1206 check_includes = false
1207
1208 sources = [
1209 "neteq/tools/rtc_event_log_source.cc",
1210 "neteq/tools/rtc_event_log_source.h",
1211 ]
1212
1213 if (!build_with_chromium && is_clang) {
1214 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1215 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1216 }
1217
1218 deps = [
1219 "../../base:rtc_base_approved",
1220 "../../logging:rtc_event_log_parser",
1221 ]
1222 public_deps = [
1223 "../../logging:rtc_event_log_proto",
1224 ]
1225 }
1226 }
1227
1133 if (rtc_include_tests) { 1228 if (rtc_include_tests) {
1134 group("audio_coding_tests") { 1229 group("audio_coding_tests") {
1135 testonly = true 1230 testonly = true
1136 public_deps = [ 1231 public_deps = [
1137 ":RTPchange", 1232 ":RTPchange",
1138 ":RTPencode", 1233 ":RTPencode",
1139 ":RTPjitter", 1234 ":RTPjitter",
1140 ":RTPtimeshift", 1235 ":RTPtimeshift",
1141 ":acm_receive_test", 1236 ":acm_receive_test",
1142 ":acm_send_test", 1237 ":acm_send_test",
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 } # audio_decoder_unittests 1488 } # audio_decoder_unittests
1394 1489
1395 if (rtc_enable_protobuf) { 1490 if (rtc_enable_protobuf) {
1396 proto_library("neteq_unittest_proto") { 1491 proto_library("neteq_unittest_proto") {
1397 sources = [ 1492 sources = [
1398 "neteq/neteq_unittest.proto", 1493 "neteq/neteq_unittest.proto",
1399 ] 1494 ]
1400 proto_out_dir = "webrtc/modules/audio_coding/neteq" 1495 proto_out_dir = "webrtc/modules/audio_coding/neteq"
1401 } 1496 }
1402 1497
1403 rtc_static_library("rtc_event_log_source") {
1404 testonly = true
1405
1406 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1407 # Needs call.h to be moved to webrtc/api first.
1408 check_includes = false
1409
1410 sources = [
1411 "neteq/tools/rtc_event_log_source.cc",
1412 "neteq/tools/rtc_event_log_source.h",
1413 ]
1414
1415 if (!build_with_chromium && is_clang) {
1416 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
1417 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1418 }
1419
1420 deps = [
1421 "../../base:rtc_base_approved",
1422 "../../logging:rtc_event_log_parser",
1423 ]
1424 public_deps = [
1425 "../../logging:rtc_event_log_proto",
1426 ]
1427 }
1428
1429 rtc_test("neteq_rtpplay") { 1498 rtc_test("neteq_rtpplay") {
1430 testonly = true 1499 testonly = true
1431 defines = [] 1500 defines = []
1432 deps = [] 1501 deps = []
1433 sources = [ 1502 sources = [
1434 "neteq/tools/neteq_rtpplay.cc", 1503 "neteq/tools/neteq_rtpplay.cc",
1435 ] 1504 ]
1436 1505
1437 if (!build_with_chromium && is_clang) { 1506 if (!build_with_chromium && is_clang) {
1438 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 1507 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 ":neteq_unittest_tools", 1605 ":neteq_unittest_tools",
1537 "../..:webrtc_common", 1606 "../..:webrtc_common",
1538 "../../api/audio_codecs:builtin_audio_decoder_factory", 1607 "../../api/audio_codecs:builtin_audio_decoder_factory",
1539 "../../base:rtc_base_approved", 1608 "../../base:rtc_base_approved",
1540 "../../test:test_support", 1609 "../../test:test_support",
1541 "//testing/gtest", 1610 "//testing/gtest",
1542 "//third_party/gflags", 1611 "//third_party/gflags",
1543 ] 1612 ]
1544 } 1613 }
1545 1614
1546 config("neteq_unittest_tools_config") {
1547 include_dirs = [ "tools" ]
1548 }
1549
1550 rtc_source_set("neteq_unittest_tools") {
1551 testonly = true
1552 sources = [
1553 "neteq/tools/audio_checksum.h",
1554 "neteq/tools/audio_loop.cc",
1555 "neteq/tools/audio_loop.h",
1556 "neteq/tools/audio_sink.cc",
1557 "neteq/tools/audio_sink.h",
1558 "neteq/tools/constant_pcm_packet_source.cc",
1559 "neteq/tools/constant_pcm_packet_source.h",
1560 "neteq/tools/fake_decode_from_file.cc",
1561 "neteq/tools/fake_decode_from_file.h",
1562 "neteq/tools/input_audio_file.cc",
1563 "neteq/tools/input_audio_file.h",
1564 "neteq/tools/neteq_input.h",
1565 "neteq/tools/neteq_replacement_input.cc",
1566 "neteq/tools/neteq_replacement_input.h",
1567 "neteq/tools/output_audio_file.h",
1568 "neteq/tools/output_wav_file.h",
1569 "neteq/tools/packet.cc",
1570 "neteq/tools/packet.h",
1571 "neteq/tools/packet_source.cc",
1572 "neteq/tools/packet_source.h",
1573 "neteq/tools/resample_input_audio_file.cc",
1574 "neteq/tools/resample_input_audio_file.h",
1575 "neteq/tools/rtp_file_source.cc",
1576 "neteq/tools/rtp_file_source.h",
1577 "neteq/tools/rtp_generator.cc",
1578 "neteq/tools/rtp_generator.h",
1579 ]
1580
1581 public_configs = [ ":neteq_unittest_tools_config" ]
1582
1583 if (!build_with_chromium && is_clang) {
1584 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1585 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1586 }
1587
1588 deps = [
1589 ":audio_encoder_interface",
1590 ":pcm16b",
1591 "../..:webrtc_common",
1592 "../../api/audio_codecs:audio_codecs_api",
1593 "../../base:rtc_base_approved",
1594 "../../common_audio",
1595 "../../test:rtp_test_utils",
1596 "../rtp_rtcp",
1597 ]
1598
1599 public_deps = [
1600 ":neteq_test_minimal",
1601 ]
1602
1603 if (rtc_enable_protobuf) {
1604 sources += [
1605 "neteq/tools/neteq_packet_source_input.cc",
1606 "neteq/tools/neteq_packet_source_input.h",
1607 ]
1608 deps += [ ":rtc_event_log_source" ]
1609 }
1610 }
1611
1612 rtc_source_set("neteq_test_tools") { 1615 rtc_source_set("neteq_test_tools") {
1613 testonly = true 1616 testonly = true
1614 sources = [ 1617 sources = [
1615 "neteq/test/NETEQTEST_DummyRTPpacket.cc", 1618 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1616 "neteq/test/NETEQTEST_DummyRTPpacket.h", 1619 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1617 "neteq/test/NETEQTEST_RTPpacket.cc", 1620 "neteq/test/NETEQTEST_RTPpacket.cc",
1618 "neteq/test/NETEQTEST_RTPpacket.h", 1621 "neteq/test/NETEQTEST_RTPpacket.h",
1619 ] 1622 ]
1620 1623
1621 deps = [ 1624 deps = [
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. 2194 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2192 # TODO(kwiberg): Remove this. 2195 # TODO(kwiberg): Remove this.
2193 rtc_source_set("builtin_audio_decoder_factory") { 2196 rtc_source_set("builtin_audio_decoder_factory") {
2194 sources = [ 2197 sources = [
2195 "codecs/builtin_audio_decoder_factory.h", 2198 "codecs/builtin_audio_decoder_factory.h",
2196 ] 2199 ]
2197 deps = [ 2200 deps = [
2198 "../../api/audio_codecs:builtin_audio_decoder_factory", 2201 "../../api/audio_codecs:builtin_audio_decoder_factory",
2199 ] 2202 ]
2200 } 2203 }
OLDNEW
« no previous file with comments | « webrtc/common_audio/resampler/sinc_resampler_unittest.cc ('k') | webrtc/system_wrappers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698