OLD | NEW |
---|---|
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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1099 defines += [ "WEBRTC_CODEC_G722" ] | 1099 defines += [ "WEBRTC_CODEC_G722" ] |
1100 deps += [ ":g722" ] | 1100 deps += [ ":g722" ] |
1101 } | 1101 } |
1102 } | 1102 } |
1103 | 1103 |
1104 # Although providing only test support, this target must be outside of the | 1104 # Although providing only test support, this target must be outside of the |
1105 # rtc_include_tests conditional. The reason is that it supports fuzzer tests | 1105 # rtc_include_tests conditional. The reason is that it supports fuzzer tests |
1106 # that ultimately are built and run as a part of the Chromium ecosystem, which | 1106 # that ultimately are built and run as a part of the Chromium ecosystem, which |
1107 # does not set the rtc_include_tests flag. | 1107 # does not set the rtc_include_tests flag. |
1108 rtc_source_set("neteq_test_minimal") { | 1108 rtc_source_set("neteq_test_minimal") { |
1109 testonly = true | |
1110 | |
1111 # TODO(kjellander): Remove (bugs.webrtc.org/6828) | |
1112 # Has cyclic dependency with :neteq_unittest_tools | |
1113 check_includes = false | |
1114 | |
1115 sources = [ | 1109 sources = [ |
1110 "neteq/tools/audio_sink.cc", | |
1111 "neteq/tools/audio_sink.h", | |
1116 "neteq/tools/encode_neteq_input.cc", | 1112 "neteq/tools/encode_neteq_input.cc", |
1117 "neteq/tools/encode_neteq_input.h", | 1113 "neteq/tools/encode_neteq_input.h", |
1114 "neteq/tools/neteq_input.h", | |
1118 "neteq/tools/neteq_test.cc", | 1115 "neteq/tools/neteq_test.cc", |
1119 "neteq/tools/neteq_test.h", | 1116 "neteq/tools/neteq_test.h", |
1117 "neteq/tools/packet.cc", | |
1118 "neteq/tools/packet.h", | |
1119 "neteq/tools/packet_source.cc", | |
1120 "neteq/tools/packet_source.h", | |
1120 ] | 1121 ] |
1121 | 1122 |
1122 if (!build_with_chromium && is_clang) { | 1123 if (!build_with_chromium && is_clang) { |
1123 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1124 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
1124 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 1125 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
1125 } | 1126 } |
1126 | 1127 |
1127 deps = [ | 1128 deps = [ |
1128 ":audio_encoder_interface", | 1129 ":audio_encoder_interface", |
1129 ":neteq", | 1130 ":neteq", |
1131 "..:module_api", | |
1130 "../..:webrtc_common", | 1132 "../..:webrtc_common", |
1131 "../../api/audio_codecs:builtin_audio_decoder_factory", | 1133 "../../api/audio_codecs:builtin_audio_decoder_factory", |
1132 "../../base:rtc_base_approved", | 1134 "../../base:rtc_base_approved", |
1135 "../rtp_rtcp", | |
1133 ] | 1136 ] |
1134 } | 1137 } |
1135 | 1138 |
1136 if (rtc_include_tests) { | 1139 if (rtc_include_tests) { |
1137 group("audio_coding_tests") { | 1140 group("audio_coding_tests") { |
1138 testonly = true | 1141 testonly = true |
1139 public_deps = [ | 1142 public_deps = [ |
1140 ":RTPchange", | 1143 ":RTPchange", |
1141 ":RTPencode", | 1144 ":RTPencode", |
1142 ":RTPjitter", | 1145 ":RTPjitter", |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1229 # cover (which would be confusing to read and hard to maintain). | 1232 # cover (which would be confusing to read and hard to maintain). |
1230 if (!is_android && !is_ios) { | 1233 if (!is_android && !is_ios) { |
1231 visibility = [ "//webrtc:webrtc_perf_tests" ] | 1234 visibility = [ "//webrtc:webrtc_perf_tests" ] |
1232 } | 1235 } |
1233 sources = [ | 1236 sources = [ |
1234 "codecs/opus/opus_complexity_unittest.cc", | 1237 "codecs/opus/opus_complexity_unittest.cc", |
1235 "neteq/test/neteq_performance_unittest.cc", | 1238 "neteq/test/neteq_performance_unittest.cc", |
1236 ] | 1239 ] |
1237 deps = [ | 1240 deps = [ |
1238 ":neteq_test_support", | 1241 ":neteq_test_support", |
1239 ":neteq_unittest_tools", | 1242 ":neteq_unittest_tools_extended", |
1240 ":webrtc_opus", | 1243 ":webrtc_opus", |
1241 "../..:webrtc_common", | 1244 "../..:webrtc_common", |
1242 "../../base:protobuf_utils", | 1245 "../../base:protobuf_utils", |
1243 "../../base:rtc_base_approved", | 1246 "../../base:rtc_base_approved", |
1244 "../../system_wrappers:system_wrappers", | 1247 "../../system_wrappers:system_wrappers", |
1245 "../../test:test_support", | 1248 "../../test:test_support", |
1246 ] | 1249 ] |
1247 | 1250 |
1248 if (!build_with_chromium && is_clang) { | 1251 if (!build_with_chromium && is_clang) { |
1249 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1252 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1449 | 1452 |
1450 if (is_win) { | 1453 if (is_win) { |
1451 cflags = [ | 1454 cflags = [ |
1452 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 1455 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
1453 "/wd4373", # virtual function override. | 1456 "/wd4373", # virtual function override. |
1454 ] | 1457 ] |
1455 } | 1458 } |
1456 | 1459 |
1457 deps += [ | 1460 deps += [ |
1458 ":neteq", | 1461 ":neteq", |
1459 ":neteq_unittest_tools", | 1462 ":neteq_unittest_tools_extended", |
1460 "../..:webrtc_common", | 1463 "../..:webrtc_common", |
1461 "../../base:rtc_base_approved", | 1464 "../../base:rtc_base_approved", |
1462 "../../system_wrappers:system_wrappers_default", | 1465 "../../system_wrappers:system_wrappers_default", |
1463 "../../test:test_support", | 1466 "../../test:test_support", |
1464 "//third_party/gflags", | 1467 "//third_party/gflags", |
1465 ] | 1468 ] |
1466 } | 1469 } |
1467 } | 1470 } |
1468 | 1471 |
1469 rtc_test("audio_codec_speed_tests") { | 1472 rtc_test("audio_codec_speed_tests") { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1508 "neteq/tools/neteq_performance_test.h", | 1511 "neteq/tools/neteq_performance_test.h", |
1509 ] | 1512 ] |
1510 | 1513 |
1511 if (!build_with_chromium && is_clang) { | 1514 if (!build_with_chromium && is_clang) { |
1512 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1515 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
1513 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 1516 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
1514 } | 1517 } |
1515 | 1518 |
1516 deps = [ | 1519 deps = [ |
1517 ":neteq", | 1520 ":neteq", |
1518 ":neteq_unittest_tools", | 1521 ":neteq_unittest_tools_extended", |
1519 ":pcm16b", | 1522 ":pcm16b", |
1520 "..:module_api", | 1523 "..:module_api", |
1521 "../..:webrtc_common", | 1524 "../..:webrtc_common", |
1522 "../../api/audio_codecs:audio_codecs_api", | 1525 "../../api/audio_codecs:audio_codecs_api", |
1523 "../../api/audio_codecs:builtin_audio_decoder_factory", | 1526 "../../api/audio_codecs:builtin_audio_decoder_factory", |
1524 "../../base:rtc_base_approved", | 1527 "../../base:rtc_base_approved", |
1525 "../../system_wrappers", | 1528 "../../system_wrappers", |
1526 "../../test:test_support", | 1529 "../../test:test_support", |
1527 "//testing/gtest", | 1530 "//testing/gtest", |
1528 ] | 1531 ] |
1529 } | 1532 } |
1530 | 1533 |
1531 rtc_source_set("neteq_quality_test_support") { | 1534 rtc_source_set("neteq_quality_test_support") { |
1532 testonly = true | 1535 testonly = true |
1533 sources = [ | 1536 sources = [ |
1534 "neteq/tools/neteq_quality_test.cc", | 1537 "neteq/tools/neteq_quality_test.cc", |
1535 "neteq/tools/neteq_quality_test.h", | 1538 "neteq/tools/neteq_quality_test.h", |
1536 ] | 1539 ] |
1537 | 1540 |
1538 if (!build_with_chromium && is_clang) { | 1541 if (!build_with_chromium && is_clang) { |
1539 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1542 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
1540 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 1543 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
1541 } | 1544 } |
1542 | 1545 |
1543 deps = [ | 1546 deps = [ |
1544 ":neteq", | 1547 ":neteq", |
1545 ":neteq_unittest_tools", | 1548 ":neteq_unittest_tools_extended", |
1546 "..:module_api", | 1549 "..:module_api", |
1547 "../..:webrtc_common", | 1550 "../..:webrtc_common", |
1548 "../../api/audio_codecs:builtin_audio_decoder_factory", | 1551 "../../api/audio_codecs:builtin_audio_decoder_factory", |
1549 "../../base:rtc_base_approved", | 1552 "../../base:rtc_base_approved", |
1550 "../../test:test_support", | 1553 "../../test:test_support", |
1551 "//testing/gtest", | 1554 "//testing/gtest", |
1552 "//third_party/gflags", | 1555 "//third_party/gflags", |
1553 ] | 1556 ] |
1554 } | 1557 } |
1555 | 1558 |
1556 config("neteq_unittest_tools_config") { | 1559 config("neteq_unittest_tools_config") { |
1557 include_dirs = [ "tools" ] | 1560 include_dirs = [ "tools" ] |
1558 } | 1561 } |
1559 | 1562 |
1560 rtc_source_set("neteq_unittest_tools") { | 1563 rtc_source_set("neteq_unittest_tools") { |
kjellander_webrtc
2017/04/27 10:34:52
I'd like to avoid having a target with "unittest"
hlundin-webrtc
2017/04/27 11:49:42
It is not the only target that contains "input" th
| |
1564 sources = [ | |
1565 "neteq/tools/fake_decode_from_file.cc", | |
1566 "neteq/tools/fake_decode_from_file.h", | |
1567 "neteq/tools/input_audio_file.cc", | |
1568 "neteq/tools/input_audio_file.h", | |
1569 "neteq/tools/neteq_replacement_input.cc", | |
1570 "neteq/tools/neteq_replacement_input.h", | |
1571 "neteq/tools/resample_input_audio_file.cc", | |
1572 "neteq/tools/resample_input_audio_file.h", | |
1573 ] | |
1574 | |
1575 public_configs = [ ":neteq_unittest_tools_config" ] | |
1576 | |
1577 if (!build_with_chromium && is_clang) { | |
1578 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
1579 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
1580 } | |
1581 | |
1582 deps = [ | |
1583 "../..:webrtc_common", | |
1584 "../../api/audio_codecs:audio_codecs_api", | |
1585 "../../base:rtc_base_approved", | |
1586 "../../common_audio", | |
1587 "../rtp_rtcp", | |
1588 ] | |
1589 | |
1590 public_deps = [ | |
1591 ":neteq_test_minimal", | |
1592 ] | |
1593 } | |
1594 | |
1595 rtc_source_set("neteq_unittest_tools_extended") { | |
kjellander_webrtc
2017/04/27 10:34:52
This name doesn't say much about what's left in he
hlundin-webrtc
2017/04/27 11:49:42
I went for neteq_test_tools. Only problem is that
| |
1561 testonly = true | 1596 testonly = true |
1562 sources = [ | 1597 sources = [ |
1563 "neteq/tools/audio_checksum.h", | 1598 "neteq/tools/audio_checksum.h", |
1564 "neteq/tools/audio_loop.cc", | 1599 "neteq/tools/audio_loop.cc", |
1565 "neteq/tools/audio_loop.h", | 1600 "neteq/tools/audio_loop.h", |
1566 "neteq/tools/audio_sink.cc", | |
1567 "neteq/tools/audio_sink.h", | |
1568 "neteq/tools/constant_pcm_packet_source.cc", | 1601 "neteq/tools/constant_pcm_packet_source.cc", |
1569 "neteq/tools/constant_pcm_packet_source.h", | 1602 "neteq/tools/constant_pcm_packet_source.h", |
1570 "neteq/tools/fake_decode_from_file.cc", | |
1571 "neteq/tools/fake_decode_from_file.h", | |
1572 "neteq/tools/input_audio_file.cc", | |
1573 "neteq/tools/input_audio_file.h", | |
1574 "neteq/tools/neteq_input.h", | |
1575 "neteq/tools/neteq_replacement_input.cc", | |
1576 "neteq/tools/neteq_replacement_input.h", | |
1577 "neteq/tools/output_audio_file.h", | 1603 "neteq/tools/output_audio_file.h", |
1578 "neteq/tools/output_wav_file.h", | 1604 "neteq/tools/output_wav_file.h", |
1579 "neteq/tools/packet.cc", | |
1580 "neteq/tools/packet.h", | |
1581 "neteq/tools/packet_source.cc", | |
1582 "neteq/tools/packet_source.h", | |
1583 "neteq/tools/resample_input_audio_file.cc", | |
1584 "neteq/tools/resample_input_audio_file.h", | |
1585 "neteq/tools/rtp_file_source.cc", | 1605 "neteq/tools/rtp_file_source.cc", |
1586 "neteq/tools/rtp_file_source.h", | 1606 "neteq/tools/rtp_file_source.h", |
1587 "neteq/tools/rtp_generator.cc", | 1607 "neteq/tools/rtp_generator.cc", |
1588 "neteq/tools/rtp_generator.h", | 1608 "neteq/tools/rtp_generator.h", |
1589 ] | 1609 ] |
1590 | 1610 |
1591 public_configs = [ ":neteq_unittest_tools_config" ] | 1611 public_configs = [ ":neteq_unittest_tools_config" ] |
1592 | 1612 |
1593 if (!build_with_chromium && is_clang) { | 1613 if (!build_with_chromium && is_clang) { |
1594 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1614 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
1595 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 1615 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
1596 } | 1616 } |
1597 | 1617 |
1598 deps = [ | 1618 deps = [ |
1599 ":audio_encoder_interface", | |
1600 ":pcm16b", | 1619 ":pcm16b", |
1601 "..:module_api", | 1620 "..:module_api", |
1602 "../..:webrtc_common", | 1621 "../..:webrtc_common", |
1603 "../../api/audio_codecs:audio_codecs_api", | |
1604 "../../base:rtc_base_approved", | 1622 "../../base:rtc_base_approved", |
1605 "../../common_audio", | 1623 "../../common_audio", |
1606 "../../test:rtp_test_utils", | 1624 "../../test:rtp_test_utils", |
1607 "../rtp_rtcp", | 1625 "../rtp_rtcp", |
1608 ] | 1626 ] |
1609 | 1627 |
1610 public_deps = [ | 1628 public_deps = [ |
1611 ":neteq_test_minimal", | 1629 ":neteq_test_minimal", |
1630 ":neteq_unittest_tools", | |
1612 ] | 1631 ] |
1613 | 1632 |
1614 if (rtc_enable_protobuf) { | 1633 if (rtc_enable_protobuf) { |
1615 sources += [ | 1634 sources += [ |
1616 "neteq/tools/neteq_packet_source_input.cc", | 1635 "neteq/tools/neteq_packet_source_input.cc", |
1617 "neteq/tools/neteq_packet_source_input.h", | 1636 "neteq/tools/neteq_packet_source_input.h", |
1618 ] | 1637 ] |
1619 deps += [ ":rtc_event_log_source" ] | 1638 deps += [ ":rtc_event_log_source" ] |
1620 } | 1639 } |
1621 } | 1640 } |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1769 | 1788 |
1770 rtc_executable("rtp_analyze") { | 1789 rtc_executable("rtp_analyze") { |
1771 testonly = true | 1790 testonly = true |
1772 | 1791 |
1773 sources = [ | 1792 sources = [ |
1774 "neteq/tools/rtp_analyze.cc", | 1793 "neteq/tools/rtp_analyze.cc", |
1775 ] | 1794 ] |
1776 | 1795 |
1777 deps = [ | 1796 deps = [ |
1778 ":neteq", | 1797 ":neteq", |
1779 ":neteq_unittest_tools", | 1798 ":neteq_unittest_tools_extended", |
1780 ":pcm16b", | 1799 ":pcm16b", |
1781 "../../system_wrappers:system_wrappers_default", | 1800 "../../system_wrappers:system_wrappers_default", |
1782 "//testing/gtest", | 1801 "//testing/gtest", |
1783 "//third_party/gflags:gflags", | 1802 "//third_party/gflags:gflags", |
1784 ] | 1803 ] |
1785 | 1804 |
1786 if (!build_with_chromium && is_clang) { | 1805 if (!build_with_chromium && is_clang) { |
1787 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1806 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
1788 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 1807 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
1789 } | 1808 } |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2136 ":builtin_audio_encoder_factory", | 2155 ":builtin_audio_encoder_factory", |
2137 ":cng", | 2156 ":cng", |
2138 ":g711", | 2157 ":g711", |
2139 ":ilbc", | 2158 ":ilbc", |
2140 ":isac", | 2159 ":isac", |
2141 ":isac_c", | 2160 ":isac_c", |
2142 ":isac_fix", | 2161 ":isac_fix", |
2143 ":legacy_encoded_audio_frame", | 2162 ":legacy_encoded_audio_frame", |
2144 ":neteq", | 2163 ":neteq", |
2145 ":neteq_test_support", | 2164 ":neteq_test_support", |
2146 ":neteq_unittest_tools", | 2165 ":neteq_unittest_tools_extended", |
2147 ":pcm16b", | 2166 ":pcm16b", |
2148 ":red", | 2167 ":red", |
2149 ":rent_a_codec", | 2168 ":rent_a_codec", |
2150 ":webrtc_opus", | 2169 ":webrtc_opus", |
2151 "..:module_api", | 2170 "..:module_api", |
2152 "../..:webrtc_common", | 2171 "../..:webrtc_common", |
2153 "../../api/audio_codecs:audio_codecs_api", | 2172 "../../api/audio_codecs:audio_codecs_api", |
2154 "../../api/audio_codecs:builtin_audio_decoder_factory", | 2173 "../../api/audio_codecs:builtin_audio_decoder_factory", |
2155 "../../base:protobuf_utils", | 2174 "../../base:protobuf_utils", |
2156 "../../base:rtc_base", | 2175 "../../base:rtc_base", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2204 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. | 2223 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. |
2205 # TODO(kwiberg): Remove this. | 2224 # TODO(kwiberg): Remove this. |
2206 rtc_source_set("builtin_audio_decoder_factory") { | 2225 rtc_source_set("builtin_audio_decoder_factory") { |
2207 sources = [ | 2226 sources = [ |
2208 "codecs/builtin_audio_decoder_factory.h", | 2227 "codecs/builtin_audio_decoder_factory.h", |
2209 ] | 2228 ] |
2210 deps = [ | 2229 deps = [ |
2211 "../../api/audio_codecs:builtin_audio_decoder_factory", | 2230 "../../api/audio_codecs:builtin_audio_decoder_factory", |
2212 ] | 2231 ] |
2213 } | 2232 } |
OLD | NEW |