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 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 "..:module_api", | 1413 "..:module_api", |
1414 "../../:webrtc_common", | 1414 "../../:webrtc_common", |
1415 "../../base:rtc_base_approved", | 1415 "../../base:rtc_base_approved", |
1416 "../../system_wrappers", | 1416 "../../system_wrappers", |
1417 "../../system_wrappers:system_wrappers_default", | 1417 "../../system_wrappers:system_wrappers_default", |
1418 "../../test:test_support", | 1418 "../../test:test_support", |
1419 "../rtp_rtcp", | 1419 "../rtp_rtcp", |
1420 "//testing/gtest", | 1420 "//testing/gtest", |
1421 "//third_party/gflags:gflags", | 1421 "//third_party/gflags:gflags", |
1422 ] | 1422 ] |
| 1423 if (is_ios) { |
| 1424 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1425 } |
1423 } # delay_test | 1426 } # delay_test |
1424 | 1427 |
1425 rtc_executable("insert_packet_with_timing") { | 1428 rtc_executable("insert_packet_with_timing") { |
1426 testonly = true | 1429 testonly = true |
1427 sources = [ | 1430 sources = [ |
1428 "test/Channel.cc", | 1431 "test/Channel.cc", |
1429 "test/Channel.h", | 1432 "test/Channel.h", |
1430 "test/PCMFile.cc", | 1433 "test/PCMFile.cc", |
1431 "test/PCMFile.h", | 1434 "test/PCMFile.h", |
1432 "test/insert_packet_with_timing.cc", | 1435 "test/insert_packet_with_timing.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
1443 "..:module_api", | 1446 "..:module_api", |
1444 "../../:webrtc_common", | 1447 "../../:webrtc_common", |
1445 "../../base:rtc_base_approved", | 1448 "../../base:rtc_base_approved", |
1446 "../../system_wrappers", | 1449 "../../system_wrappers", |
1447 "../../system_wrappers:system_wrappers_default", | 1450 "../../system_wrappers:system_wrappers_default", |
1448 "../../test:test_support", | 1451 "../../test:test_support", |
1449 "../rtp_rtcp", | 1452 "../rtp_rtcp", |
1450 "//testing/gtest", | 1453 "//testing/gtest", |
1451 "//third_party/gflags:gflags", | 1454 "//third_party/gflags:gflags", |
1452 ] | 1455 ] |
| 1456 if (is_ios) { |
| 1457 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1458 } |
1453 } # insert_packet_with_timing | 1459 } # insert_packet_with_timing |
1454 | 1460 |
1455 audio_decoder_unittests_resources = | 1461 audio_decoder_unittests_resources = |
1456 [ "../../../resources/audio_coding/testfile32kHz.pcm" ] | 1462 [ "../../../resources/audio_coding/testfile32kHz.pcm" ] |
1457 | 1463 |
1458 if (is_ios) { | 1464 if (is_ios) { |
1459 bundle_data("audio_decoder_unittests_bundle_data") { | 1465 bundle_data("audio_decoder_unittests_bundle_data") { |
1460 testonly = true | 1466 testonly = true |
1461 sources = audio_decoder_unittests_resources | 1467 sources = audio_decoder_unittests_resources |
1462 outputs = [ | 1468 outputs = [ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 "//testing/gtest", | 1501 "//testing/gtest", |
1496 ] | 1502 ] |
1497 | 1503 |
1498 data = audio_decoder_unittests_resources | 1504 data = audio_decoder_unittests_resources |
1499 | 1505 |
1500 if (is_android) { | 1506 if (is_android) { |
1501 deps += [ "//testing/android/native_test:native_test_native_code" ] | 1507 deps += [ "//testing/android/native_test:native_test_native_code" ] |
1502 shard_timeout = 900 | 1508 shard_timeout = 900 |
1503 } | 1509 } |
1504 if (is_ios) { | 1510 if (is_ios) { |
1505 deps += [ ":audio_decoder_unittests_bundle_data" ] | 1511 deps += [ |
| 1512 ":audio_decoder_unittests_bundle_data", |
| 1513 "../../rtc_base:rtc_base_apple", |
| 1514 ] |
1506 } | 1515 } |
1507 } # audio_decoder_unittests | 1516 } # audio_decoder_unittests |
1508 | 1517 |
1509 if (rtc_enable_protobuf) { | 1518 if (rtc_enable_protobuf) { |
1510 proto_library("neteq_unittest_proto") { | 1519 proto_library("neteq_unittest_proto") { |
1511 sources = [ | 1520 sources = [ |
1512 "neteq/neteq_unittest.proto", | 1521 "neteq/neteq_unittest.proto", |
1513 ] | 1522 ] |
1514 proto_out_dir = "webrtc/modules/audio_coding/neteq" | 1523 proto_out_dir = "webrtc/modules/audio_coding/neteq" |
1515 } | 1524 } |
(...skipping 22 matching lines...) Expand all Loading... |
1538 | 1547 |
1539 deps += [ | 1548 deps += [ |
1540 ":neteq", | 1549 ":neteq", |
1541 ":neteq_test_tools", | 1550 ":neteq_test_tools", |
1542 "../..:webrtc_common", | 1551 "../..:webrtc_common", |
1543 "../../base:rtc_base_approved", | 1552 "../../base:rtc_base_approved", |
1544 "../../system_wrappers:system_wrappers_default", | 1553 "../../system_wrappers:system_wrappers_default", |
1545 "../../test:test_support", | 1554 "../../test:test_support", |
1546 "//third_party/gflags", | 1555 "//third_party/gflags", |
1547 ] | 1556 ] |
| 1557 if (is_ios || is_mac) { |
| 1558 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1559 } |
1548 } | 1560 } |
1549 } | 1561 } |
1550 | 1562 |
1551 rtc_test("audio_codec_speed_tests") { | 1563 rtc_test("audio_codec_speed_tests") { |
1552 testonly = true | 1564 testonly = true |
1553 defines = [] | 1565 defines = [] |
1554 deps = [] | 1566 deps = [] |
1555 sources = [ | 1567 sources = [ |
1556 "codecs/isac/fix/test/isac_speed_test.cc", | 1568 "codecs/isac/fix/test/isac_speed_test.cc", |
1557 "codecs/opus/opus_speed_test.cc", | 1569 "codecs/opus/opus_speed_test.cc", |
(...skipping 14 matching lines...) Expand all Loading... |
1572 deps += [ | 1584 deps += [ |
1573 ":isac_fix", | 1585 ":isac_fix", |
1574 ":webrtc_opus", | 1586 ":webrtc_opus", |
1575 "../..:webrtc_common", | 1587 "../..:webrtc_common", |
1576 "../../base:rtc_base_approved", | 1588 "../../base:rtc_base_approved", |
1577 "../../system_wrappers:system_wrappers_default", | 1589 "../../system_wrappers:system_wrappers_default", |
1578 "../../test:test_main", | 1590 "../../test:test_main", |
1579 "../audio_processing", | 1591 "../audio_processing", |
1580 "//testing/gtest", | 1592 "//testing/gtest", |
1581 ] | 1593 ] |
| 1594 if (is_ios) { |
| 1595 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1596 } |
1582 } | 1597 } |
1583 | 1598 |
1584 rtc_source_set("neteq_test_support") { | 1599 rtc_source_set("neteq_test_support") { |
1585 testonly = true | 1600 testonly = true |
1586 sources = [ | 1601 sources = [ |
1587 "neteq/tools/neteq_external_decoder_test.cc", | 1602 "neteq/tools/neteq_external_decoder_test.cc", |
1588 "neteq/tools/neteq_external_decoder_test.h", | 1603 "neteq/tools/neteq_external_decoder_test.h", |
1589 "neteq/tools/neteq_performance_test.cc", | 1604 "neteq/tools/neteq_performance_test.cc", |
1590 "neteq/tools/neteq_performance_test.h", | 1605 "neteq/tools/neteq_performance_test.h", |
1591 ] | 1606 ] |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1761 | 1776 |
1762 sources = [ | 1777 sources = [ |
1763 "neteq/test/RTPtimeshift.cc", | 1778 "neteq/test/RTPtimeshift.cc", |
1764 ] | 1779 ] |
1765 | 1780 |
1766 deps = [ | 1781 deps = [ |
1767 ":neteq_test_tools_deprecated", | 1782 ":neteq_test_tools_deprecated", |
1768 "../../test:test_support", | 1783 "../../test:test_support", |
1769 "//testing/gtest", | 1784 "//testing/gtest", |
1770 ] | 1785 ] |
| 1786 if (is_ios) { |
| 1787 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1788 } |
1771 } | 1789 } |
1772 | 1790 |
1773 rtc_executable("RTPjitter") { | 1791 rtc_executable("RTPjitter") { |
1774 testonly = true | 1792 testonly = true |
1775 deps = [ | 1793 deps = [ |
1776 "../..:webrtc_common", | 1794 "../..:webrtc_common", |
1777 "../../base:rtc_base_approved", | 1795 "../../base:rtc_base_approved", |
1778 "../../test:test_support", | 1796 "../../test:test_support", |
1779 "//testing/gtest", | 1797 "//testing/gtest", |
1780 ] | 1798 ] |
1781 sources = [ | 1799 sources = [ |
1782 "neteq/test/RTPjitter.cc", | 1800 "neteq/test/RTPjitter.cc", |
1783 ] | 1801 ] |
| 1802 if (is_ios) { |
| 1803 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1804 } |
1784 } | 1805 } |
1785 | 1806 |
1786 rtc_executable("rtp_analyze") { | 1807 rtc_executable("rtp_analyze") { |
1787 testonly = true | 1808 testonly = true |
1788 | 1809 |
1789 sources = [ | 1810 sources = [ |
1790 "neteq/tools/rtp_analyze.cc", | 1811 "neteq/tools/rtp_analyze.cc", |
1791 ] | 1812 ] |
1792 | 1813 |
1793 deps = [ | 1814 deps = [ |
1794 ":neteq", | 1815 ":neteq", |
1795 ":neteq_test_tools", | 1816 ":neteq_test_tools", |
1796 ":pcm16b", | 1817 ":pcm16b", |
1797 "../../system_wrappers:system_wrappers_default", | 1818 "../../system_wrappers:system_wrappers_default", |
1798 "//testing/gtest", | 1819 "//testing/gtest", |
1799 "//third_party/gflags:gflags", | 1820 "//third_party/gflags:gflags", |
1800 ] | 1821 ] |
1801 | 1822 |
1802 if (!build_with_chromium && is_clang) { | 1823 if (!build_with_chromium && is_clang) { |
1803 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 1824 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
1804 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 1825 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
1805 } | 1826 } |
| 1827 if (is_ios || is_mac) { |
| 1828 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1829 } |
1806 } | 1830 } |
1807 | 1831 |
1808 rtc_executable("neteq_opus_quality_test") { | 1832 rtc_executable("neteq_opus_quality_test") { |
1809 testonly = true | 1833 testonly = true |
1810 | 1834 |
1811 sources = [ | 1835 sources = [ |
1812 "neteq/test/neteq_opus_quality_test.cc", | 1836 "neteq/test/neteq_opus_quality_test.cc", |
1813 ] | 1837 ] |
1814 | 1838 |
1815 deps = [ | 1839 deps = [ |
1816 ":neteq", | 1840 ":neteq", |
1817 ":neteq_quality_test_support", | 1841 ":neteq_quality_test_support", |
1818 ":neteq_tools", | 1842 ":neteq_tools", |
1819 ":webrtc_opus", | 1843 ":webrtc_opus", |
1820 "../../test:test_main", | 1844 "../../test:test_main", |
1821 "//testing/gtest", | 1845 "//testing/gtest", |
1822 "//third_party/gflags", | 1846 "//third_party/gflags", |
1823 ] | 1847 ] |
| 1848 if (is_ios || is_mac) { |
| 1849 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1850 } |
1824 } | 1851 } |
1825 | 1852 |
1826 rtc_executable("neteq_speed_test") { | 1853 rtc_executable("neteq_speed_test") { |
1827 testonly = true | 1854 testonly = true |
1828 | 1855 |
1829 sources = [ | 1856 sources = [ |
1830 "neteq/test/neteq_speed_test.cc", | 1857 "neteq/test/neteq_speed_test.cc", |
1831 ] | 1858 ] |
1832 | 1859 |
1833 deps = [ | 1860 deps = [ |
1834 ":neteq", | 1861 ":neteq", |
1835 ":neteq_test_support", | 1862 ":neteq_test_support", |
1836 "../..:webrtc_common", | 1863 "../..:webrtc_common", |
1837 "../../system_wrappers:system_wrappers_default", | 1864 "../../system_wrappers:system_wrappers_default", |
1838 "../../test:test_support", | 1865 "../../test:test_support", |
1839 "//third_party/gflags", | 1866 "//third_party/gflags", |
1840 ] | 1867 ] |
| 1868 if (is_ios || is_mac) { |
| 1869 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1870 } |
1841 } | 1871 } |
1842 | 1872 |
1843 rtc_executable("neteq_ilbc_quality_test") { | 1873 rtc_executable("neteq_ilbc_quality_test") { |
1844 testonly = true | 1874 testonly = true |
1845 | 1875 |
1846 sources = [ | 1876 sources = [ |
1847 "neteq/test/neteq_ilbc_quality_test.cc", | 1877 "neteq/test/neteq_ilbc_quality_test.cc", |
1848 ] | 1878 ] |
1849 | 1879 |
1850 deps = [ | 1880 deps = [ |
1851 ":ilbc", | 1881 ":ilbc", |
1852 ":neteq", | 1882 ":neteq", |
1853 ":neteq_quality_test_support", | 1883 ":neteq_quality_test_support", |
1854 ":neteq_tools", | 1884 ":neteq_tools", |
1855 "../..:webrtc_common", | 1885 "../..:webrtc_common", |
1856 "../../base:rtc_base_approved", | 1886 "../../base:rtc_base_approved", |
1857 "../../system_wrappers:system_wrappers_default", | 1887 "../../system_wrappers:system_wrappers_default", |
1858 "../../test:test_main", | 1888 "../../test:test_main", |
1859 "//testing/gtest", | 1889 "//testing/gtest", |
1860 "//third_party/gflags", | 1890 "//third_party/gflags", |
1861 ] | 1891 ] |
| 1892 if (is_ios || is_mac) { |
| 1893 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1894 } |
1862 } | 1895 } |
1863 | 1896 |
1864 rtc_executable("neteq_isac_quality_test") { | 1897 rtc_executable("neteq_isac_quality_test") { |
1865 testonly = true | 1898 testonly = true |
1866 | 1899 |
1867 sources = [ | 1900 sources = [ |
1868 "neteq/test/neteq_isac_quality_test.cc", | 1901 "neteq/test/neteq_isac_quality_test.cc", |
1869 ] | 1902 ] |
1870 | 1903 |
1871 deps = [ | 1904 deps = [ |
1872 ":isac_fix", | 1905 ":isac_fix", |
1873 ":neteq", | 1906 ":neteq", |
1874 ":neteq_quality_test_support", | 1907 ":neteq_quality_test_support", |
1875 "../../base:rtc_base_approved", | 1908 "../../base:rtc_base_approved", |
1876 "../../test:test_main", | 1909 "../../test:test_main", |
1877 "//testing/gtest", | 1910 "//testing/gtest", |
1878 "//third_party/gflags", | 1911 "//third_party/gflags", |
1879 ] | 1912 ] |
| 1913 |
| 1914 if (is_ios || is_mac) { |
| 1915 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1916 } |
1880 } | 1917 } |
1881 | 1918 |
1882 rtc_executable("neteq_pcmu_quality_test") { | 1919 rtc_executable("neteq_pcmu_quality_test") { |
1883 testonly = true | 1920 testonly = true |
1884 | 1921 |
1885 sources = [ | 1922 sources = [ |
1886 "neteq/test/neteq_pcmu_quality_test.cc", | 1923 "neteq/test/neteq_pcmu_quality_test.cc", |
1887 ] | 1924 ] |
1888 | 1925 |
1889 deps = [ | 1926 deps = [ |
1890 ":g711", | 1927 ":g711", |
1891 ":neteq", | 1928 ":neteq", |
1892 ":neteq_quality_test_support", | 1929 ":neteq_quality_test_support", |
1893 "../../base:rtc_base_approved", | 1930 "../../base:rtc_base_approved", |
1894 "../../test:test_main", | 1931 "../../test:test_main", |
1895 "//testing/gtest", | 1932 "//testing/gtest", |
1896 "//third_party/gflags", | 1933 "//third_party/gflags", |
1897 ] | 1934 ] |
| 1935 if (is_ios || is_mac) { |
| 1936 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1937 } |
1898 } | 1938 } |
1899 | 1939 |
1900 rtc_executable("isac_fix_test") { | 1940 rtc_executable("isac_fix_test") { |
1901 testonly = true | 1941 testonly = true |
1902 | 1942 |
1903 sources = [ | 1943 sources = [ |
1904 "codecs/isac/fix/test/kenny.cc", | 1944 "codecs/isac/fix/test/kenny.cc", |
1905 ] | 1945 ] |
1906 | 1946 |
1907 deps = [ | 1947 deps = [ |
1908 ":isac_fix", | 1948 ":isac_fix", |
1909 "../../test:test_support", | 1949 "../../test:test_support", |
1910 ] | 1950 ] |
1911 | 1951 |
1912 if (is_win) { | 1952 if (is_win) { |
1913 cflags = [ | 1953 cflags = [ |
1914 # Disable warnings to enable Win64 build, issue 1323. | 1954 # Disable warnings to enable Win64 build, issue 1323. |
1915 "/wd4267", # size_t to int truncation | 1955 "/wd4267", # size_t to int truncation |
1916 ] | 1956 ] |
1917 } | 1957 } |
| 1958 if (is_ios) { |
| 1959 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 1960 } |
1918 } | 1961 } |
1919 | 1962 |
1920 config("isac_test_warnings_config") { | 1963 config("isac_test_warnings_config") { |
1921 if (is_win && is_clang) { | 1964 if (is_win && is_clang) { |
1922 cflags = [ | 1965 cflags = [ |
1923 # Disable warnings failing when compiling with Clang on Windows. | 1966 # Disable warnings failing when compiling with Clang on Windows. |
1924 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 1967 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
1925 "-Wno-format", | 1968 "-Wno-format", |
1926 ] | 1969 ] |
1927 } | 1970 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 "../../base:rtc_base_approved", | 2088 "../../base:rtc_base_approved", |
2046 "../../common_audio", | 2089 "../../common_audio", |
2047 "../../test:test_main", | 2090 "../../test:test_main", |
2048 "//testing/gtest", | 2091 "//testing/gtest", |
2049 ] | 2092 ] |
2050 | 2093 |
2051 if (!build_with_chromium && is_clang) { | 2094 if (!build_with_chromium && is_clang) { |
2052 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 2095 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
2053 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 2096 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
2054 } | 2097 } |
| 2098 if (is_ios) { |
| 2099 deps += [ "../../rtc_base:rtc_base_apple" ] |
| 2100 } |
2055 } | 2101 } |
2056 | 2102 |
2057 rtc_source_set("audio_coding_unittests") { | 2103 rtc_source_set("audio_coding_unittests") { |
2058 testonly = true | 2104 testonly = true |
2059 | 2105 |
2060 # Skip restricting visibility on mobile platforms since the tests on those | 2106 # Skip restricting visibility on mobile platforms since the tests on those |
2061 # gets additional generated targets which would require many lines here to | 2107 # gets additional generated targets which would require many lines here to |
2062 # cover (which would be confusing to read and hard to maintain). | 2108 # cover (which would be confusing to read and hard to maintain). |
2063 if (!is_android && !is_ios) { | 2109 if (!is_android && !is_ios) { |
2064 visibility = [ "..:modules_unittests" ] | 2110 visibility = [ "..:modules_unittests" ] |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2240 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. | 2286 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. |
2241 # TODO(ossu): Remove this. | 2287 # TODO(ossu): Remove this. |
2242 rtc_source_set("builtin_audio_encoder_factory") { | 2288 rtc_source_set("builtin_audio_encoder_factory") { |
2243 sources = [ | 2289 sources = [ |
2244 "codecs/builtin_audio_encoder_factory.h", | 2290 "codecs/builtin_audio_encoder_factory.h", |
2245 ] | 2291 ] |
2246 deps = [ | 2292 deps = [ |
2247 "../../api/audio_codecs:builtin_audio_encoder_factory", | 2293 "../../api/audio_codecs:builtin_audio_encoder_factory", |
2248 ] | 2294 ] |
2249 } | 2295 } |
OLD | NEW |