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

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

Issue 2308553002: GN Templates: Add //build/config/sanitizers:deps to rtc_executable. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/modules/audio_device/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("../../build/webrtc.gni") 9 import("../../build/webrtc.gni")
10 import("audio_coding.gni") 10 import("audio_coding.gni")
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 configs += [ "../..:common_config" ] 937 configs += [ "../..:common_config" ]
938 public_configs = [ "../..:common_inherited_config" ] 938 public_configs = [ "../..:common_inherited_config" ]
939 939
940 deps = [ 940 deps = [
941 ":audio_coding", 941 ":audio_coding",
942 "../../:webrtc_common", 942 "../../:webrtc_common",
943 "../../system_wrappers", 943 "../../system_wrappers",
944 "../../system_wrappers:system_wrappers_default", 944 "../../system_wrappers:system_wrappers_default",
945 "../../test:test_support", 945 "../../test:test_support",
946 "../rtp_rtcp", 946 "../rtp_rtcp",
947 "//build/config/sanitizers:deps",
948 "//testing/gtest", 947 "//testing/gtest",
949 "//third_party/gflags:gflags", 948 "//third_party/gflags:gflags",
950 ] 949 ]
951 } # delay_test 950 } # delay_test
952 951
953 rtc_executable("insert_packet_with_timing") { 952 rtc_executable("insert_packet_with_timing") {
954 testonly = true 953 testonly = true
955 sources = [ 954 sources = [
956 "test/Channel.cc", 955 "test/Channel.cc",
957 "test/PCMFile.cc", 956 "test/PCMFile.cc",
958 "test/insert_packet_with_timing.cc", 957 "test/insert_packet_with_timing.cc",
959 ] 958 ]
960 959
961 configs += [ "../..:common_config" ] 960 configs += [ "../..:common_config" ]
962 public_configs = [ "../..:common_inherited_config" ] 961 public_configs = [ "../..:common_inherited_config" ]
963 962
964 if (is_clang) { 963 if (is_clang) {
965 # Suppress warnings from Chrome's Clang plugins. 964 # Suppress warnings from Chrome's Clang plugins.
966 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 965 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
967 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 966 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
968 } 967 }
969 968
970 deps = [ 969 deps = [
971 ":audio_coding", 970 ":audio_coding",
972 "../../:webrtc_common", 971 "../../:webrtc_common",
973 "../../system_wrappers", 972 "../../system_wrappers",
974 "../../system_wrappers:system_wrappers_default", 973 "../../system_wrappers:system_wrappers_default",
975 "../../test:test_support", 974 "../../test:test_support",
976 "../rtp_rtcp", 975 "../rtp_rtcp",
977 "//build/config/sanitizers:deps",
978 "//testing/gtest", 976 "//testing/gtest",
979 "//third_party/gflags:gflags", 977 "//third_party/gflags:gflags",
980 ] 978 ]
981 } # insert_packet_with_timing 979 } # insert_packet_with_timing
982 980
983 if (is_android || is_ios) { 981 if (is_android || is_ios) {
984 audio_decoder_unittests_resources = 982 audio_decoder_unittests_resources =
985 [ "//resources/audio_coding/testfile32kHz.pcm" ] 983 [ "//resources/audio_coding/testfile32kHz.pcm" ]
986 } 984 }
987 985
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 # TODO(hlundin): Make RTPencode use ACM to encode files. 1301 # TODO(hlundin): Make RTPencode use ACM to encode files.
1304 ":cng", 1302 ":cng",
1305 ":g711", 1303 ":g711",
1306 ":g722", 1304 ":g722",
1307 ":ilbc", 1305 ":ilbc",
1308 ":isac", 1306 ":isac",
1309 ":neteq_test_tools", 1307 ":neteq_test_tools",
1310 ":pcm16b", 1308 ":pcm16b",
1311 ":webrtc_opus", 1309 ":webrtc_opus",
1312 "../../common_audio", 1310 "../../common_audio",
1313 "//build/config/sanitizers:deps",
1314 ] 1311 ]
1315 1312
1316 configs += [ ":RTPencode_config" ] 1313 configs += [ ":RTPencode_config" ]
1317 1314
1318 sources = [ 1315 sources = [
1319 "neteq/test/RTPencode.cc", 1316 "neteq/test/RTPencode.cc",
1320 ] 1317 ]
1321 1318
1322 include_dirs = [ 1319 include_dirs = [
1323 "neteq/include", 1320 "neteq/include",
(...skipping 10 matching lines...) Expand all
1334 1331
1335 rtc_executable("RTPchange") { 1332 rtc_executable("RTPchange") {
1336 testonly = true 1333 testonly = true
1337 1334
1338 sources = [ 1335 sources = [
1339 "neteq/test/RTPchange.cc", 1336 "neteq/test/RTPchange.cc",
1340 ] 1337 ]
1341 1338
1342 deps = [ 1339 deps = [
1343 ":neteq_test_tools", 1340 ":neteq_test_tools",
1344 "//build/config/sanitizers:deps",
1345 ] 1341 ]
1346 } 1342 }
1347 1343
1348 rtc_executable("rtpcat") { 1344 rtc_executable("rtpcat") {
1349 testonly = true 1345 testonly = true
1350 1346
1351 sources = [ 1347 sources = [
1352 "neteq/tools/rtpcat.cc", 1348 "neteq/tools/rtpcat.cc",
1353 ] 1349 ]
1354 1350
1355 deps = [ 1351 deps = [
1356 "../../system_wrappers:system_wrappers_default", 1352 "../../system_wrappers:system_wrappers_default",
1357 "../../test:rtp_test_utils", 1353 "../../test:rtp_test_utils",
1358 "//build/config/sanitizers:deps",
1359 "//testing/gtest", 1354 "//testing/gtest",
1360 ] 1355 ]
1361 } 1356 }
1362 1357
1363 rtc_executable("RTPtimeshift") { 1358 rtc_executable("RTPtimeshift") {
1364 testonly = true 1359 testonly = true
1365 1360
1366 sources = [ 1361 sources = [
1367 "neteq/test/RTPtimeshift.cc", 1362 "neteq/test/RTPtimeshift.cc",
1368 ] 1363 ]
1369 1364
1370 deps = [ 1365 deps = [
1371 ":neteq_test_tools", 1366 ":neteq_test_tools",
1372 "//build/config/sanitizers:deps",
1373 "//testing/gtest", 1367 "//testing/gtest",
1374 ] 1368 ]
1375 } 1369 }
1376 1370
1377 rtc_executable("RTPjitter") { 1371 rtc_executable("RTPjitter") {
1378 testonly = true 1372 testonly = true
1379 deps = [ 1373 deps = [
1380 "../..:webrtc_common", 1374 "../..:webrtc_common",
1381 "//build/config/sanitizers:deps",
1382 "//testing/gtest", 1375 "//testing/gtest",
1383 ] 1376 ]
1384 sources = [ 1377 sources = [
1385 "neteq/test/RTPjitter.cc", 1378 "neteq/test/RTPjitter.cc",
1386 ] 1379 ]
1387 } 1380 }
1388 1381
1389 rtc_executable("rtp_analyze") { 1382 rtc_executable("rtp_analyze") {
1390 testonly = true 1383 testonly = true
1391 1384
1392 sources = [ 1385 sources = [
1393 "neteq/tools/rtp_analyze.cc", 1386 "neteq/tools/rtp_analyze.cc",
1394 ] 1387 ]
1395 1388
1396 deps = [ 1389 deps = [
1397 ":neteq", 1390 ":neteq",
1398 ":neteq_unittest_tools", 1391 ":neteq_unittest_tools",
1399 ":pcm16b", 1392 ":pcm16b",
1400 "../../system_wrappers:system_wrappers_default", 1393 "../../system_wrappers:system_wrappers_default",
1401 "//build/config/sanitizers:deps",
1402 "//testing/gtest", 1394 "//testing/gtest",
1403 "//third_party/gflags:gflags", 1395 "//third_party/gflags:gflags",
1404 ] 1396 ]
1405 1397
1406 if (is_clang) { 1398 if (is_clang) {
1407 # Suppress warnings from Chrome's Clang plugins. 1399 # Suppress warnings from Chrome's Clang plugins.
1408 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 1400 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
1409 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 1401 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1410 } 1402 }
1411 } 1403 }
1412 1404
1413 rtc_executable("neteq_opus_quality_test") { 1405 rtc_executable("neteq_opus_quality_test") {
1414 testonly = true 1406 testonly = true
1415 1407
1416 sources = [ 1408 sources = [
1417 "neteq/test/neteq_opus_quality_test.cc", 1409 "neteq/test/neteq_opus_quality_test.cc",
1418 ] 1410 ]
1419 1411
1420 deps = [ 1412 deps = [
1421 ":neteq", 1413 ":neteq",
1422 ":neteq_quality_test_support", 1414 ":neteq_quality_test_support",
1423 ":neteq_unittest_tools", 1415 ":neteq_unittest_tools",
1424 ":webrtc_opus", 1416 ":webrtc_opus",
1425 "../../test:test_support_main", 1417 "../../test:test_support_main",
1426 "//build/config/sanitizers:deps",
1427 "//testing/gtest", 1418 "//testing/gtest",
1428 "//third_party/gflags", 1419 "//third_party/gflags",
1429 ] 1420 ]
1430 } 1421 }
1431 1422
1432 rtc_executable("neteq_speed_test") { 1423 rtc_executable("neteq_speed_test") {
1433 testonly = true 1424 testonly = true
1434 1425
1435 sources = [ 1426 sources = [
1436 "neteq/test/neteq_speed_test.cc", 1427 "neteq/test/neteq_speed_test.cc",
1437 ] 1428 ]
1438 1429
1439 deps = [ 1430 deps = [
1440 ":neteq", 1431 ":neteq",
1441 ":neteq_test_support", 1432 ":neteq_test_support",
1442 "../../system_wrappers:system_wrappers_default", 1433 "../../system_wrappers:system_wrappers_default",
1443 "../../test:test_support", 1434 "../../test:test_support",
1444 "//build/config/sanitizers:deps",
1445 "//third_party/gflags", 1435 "//third_party/gflags",
1446 ] 1436 ]
1447 } 1437 }
1448 1438
1449 rtc_executable("audio_classifier_test") { 1439 rtc_executable("audio_classifier_test") {
1450 testonly = true 1440 testonly = true
1451 sources = [ 1441 sources = [
1452 "neteq/test/audio_classifier_test.cc", 1442 "neteq/test/audio_classifier_test.cc",
1453 ] 1443 ]
1454 deps = [ 1444 deps = [
1455 ":neteq", 1445 ":neteq",
1456 ":webrtc_opus", 1446 ":webrtc_opus",
1457 "../../system_wrappers:system_wrappers_default", 1447 "../../system_wrappers:system_wrappers_default",
1458 "//build/config/sanitizers:deps",
1459 ] 1448 ]
1460 } 1449 }
1461 1450
1462 rtc_executable("neteq_ilbc_quality_test") { 1451 rtc_executable("neteq_ilbc_quality_test") {
1463 testonly = true 1452 testonly = true
1464 1453
1465 sources = [ 1454 sources = [
1466 "neteq/test/neteq_ilbc_quality_test.cc", 1455 "neteq/test/neteq_ilbc_quality_test.cc",
1467 ] 1456 ]
1468 1457
1469 deps = [ 1458 deps = [
1470 ":ilbc", 1459 ":ilbc",
1471 ":neteq", 1460 ":neteq",
1472 ":neteq_quality_test_support", 1461 ":neteq_quality_test_support",
1473 ":neteq_unittest_tools", 1462 ":neteq_unittest_tools",
1474 "../../system_wrappers:system_wrappers_default", 1463 "../../system_wrappers:system_wrappers_default",
1475 "../../test:test_support_main", 1464 "../../test:test_support_main",
1476 "//build/config/sanitizers:deps",
1477 "//testing/gtest", 1465 "//testing/gtest",
1478 "//third_party/gflags", 1466 "//third_party/gflags",
1479 ] 1467 ]
1480 } 1468 }
1481 1469
1482 rtc_executable("neteq_isac_quality_test") { 1470 rtc_executable("neteq_isac_quality_test") {
1483 testonly = true 1471 testonly = true
1484 1472
1485 sources = [ 1473 sources = [
1486 "neteq/test/neteq_isac_quality_test.cc", 1474 "neteq/test/neteq_isac_quality_test.cc",
1487 ] 1475 ]
1488 1476
1489 deps = [ 1477 deps = [
1490 ":isac_fix", 1478 ":isac_fix",
1491 ":neteq", 1479 ":neteq",
1492 ":neteq_quality_test_support", 1480 ":neteq_quality_test_support",
1493 "../../test:test_support_main", 1481 "../../test:test_support_main",
1494 "//build/config/sanitizers:deps",
1495 "//testing/gtest", 1482 "//testing/gtest",
1496 "//third_party/gflags", 1483 "//third_party/gflags",
1497 ] 1484 ]
1498 } 1485 }
1499 1486
1500 rtc_executable("neteq_pcmu_quality_test") { 1487 rtc_executable("neteq_pcmu_quality_test") {
1501 testonly = true 1488 testonly = true
1502 1489
1503 sources = [ 1490 sources = [
1504 "neteq/test/neteq_pcmu_quality_test.cc", 1491 "neteq/test/neteq_pcmu_quality_test.cc",
1505 ] 1492 ]
1506 1493
1507 deps = [ 1494 deps = [
1508 ":g711", 1495 ":g711",
1509 ":neteq", 1496 ":neteq",
1510 ":neteq_quality_test_support", 1497 ":neteq_quality_test_support",
1511 "../../test:test_support_main", 1498 "../../test:test_support_main",
1512 "//build/config/sanitizers:deps",
1513 "//testing/gtest", 1499 "//testing/gtest",
1514 "//third_party/gflags", 1500 "//third_party/gflags",
1515 ] 1501 ]
1516 } 1502 }
1517 1503
1518 rtc_executable("isac_fix_test") { 1504 rtc_executable("isac_fix_test") {
1519 testonly = true 1505 testonly = true
1520 1506
1521 sources = [ 1507 sources = [
1522 "codecs/isac/fix/test/kenny.cc", 1508 "codecs/isac/fix/test/kenny.cc",
1523 ] 1509 ]
1524 1510
1525 deps = [ 1511 deps = [
1526 ":isac_fix", 1512 ":isac_fix",
1527 "../../test:test_support", 1513 "../../test:test_support",
1528 "//build/config/sanitizers:deps",
1529 ] 1514 ]
1530 1515
1531 if (is_win) { 1516 if (is_win) {
1532 cflags = [ 1517 cflags = [
1533 # Disable warnings to enable Win64 build, issue 1323. 1518 # Disable warnings to enable Win64 build, issue 1323.
1534 "/wd4267", # size_t to int truncation 1519 "/wd4267", # size_t to int truncation
1535 ] 1520 ]
1536 } 1521 }
1537 } 1522 }
1538 1523
(...skipping 17 matching lines...) Expand all
1556 1541
1557 include_dirs = [ 1542 include_dirs = [
1558 "codecs/isac/main/include", 1543 "codecs/isac/main/include",
1559 "codecs/isac/main/test", 1544 "codecs/isac/main/test",
1560 "codecs/isac/main/util", 1545 "codecs/isac/main/util",
1561 ] 1546 ]
1562 1547
1563 deps = [ 1548 deps = [
1564 ":isac", 1549 ":isac",
1565 "../../base:rtc_base_approved", 1550 "../../base:rtc_base_approved",
1566 "//build/config/sanitizers:deps",
1567 ] 1551 ]
1568 1552
1569 configs += [ ":isac_test_warnings_config" ] 1553 configs += [ ":isac_test_warnings_config" ]
1570 } 1554 }
1571 1555
1572 rtc_executable("g711_test") { 1556 rtc_executable("g711_test") {
1573 testonly = true 1557 testonly = true
1574 1558
1575 sources = [ 1559 sources = [
1576 "codecs/g711/test/testG711.cc", 1560 "codecs/g711/test/testG711.cc",
1577 ] 1561 ]
1578 1562
1579 configs += [ "../..:common_config" ] 1563 configs += [ "../..:common_config" ]
1580 public_configs = [ "../..:common_inherited_config" ] 1564 public_configs = [ "../..:common_inherited_config" ]
1581 1565
1582 deps = [ 1566 deps = [
1583 ":g711", 1567 ":g711",
1584 "//build/config/sanitizers:deps",
1585 ] 1568 ]
1586 } 1569 }
1587 1570
1588 rtc_executable("g722_test") { 1571 rtc_executable("g722_test") {
1589 testonly = true 1572 testonly = true
1590 1573
1591 sources = [ 1574 sources = [
1592 "codecs/g722/test/testG722.cc", 1575 "codecs/g722/test/testG722.cc",
1593 ] 1576 ]
1594 1577
1595 configs += [ "../..:common_config" ] 1578 configs += [ "../..:common_config" ]
1596 public_configs = [ "../..:common_inherited_config" ] 1579 public_configs = [ "../..:common_inherited_config" ]
1597 1580
1598 deps = [ 1581 deps = [
1599 ":g722", 1582 ":g722",
1600 "../..:webrtc_common", 1583 "../..:webrtc_common",
1601 "//build/config/sanitizers:deps",
1602 ] 1584 ]
1603 } 1585 }
1604 1586
1605 rtc_executable("isac_api_test") { 1587 rtc_executable("isac_api_test") {
1606 testonly = true 1588 testonly = true
1607 1589
1608 sources = [ 1590 sources = [
1609 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc", 1591 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
1610 "codecs/isac/main/util/utility.c", 1592 "codecs/isac/main/util/utility.c",
1611 ] 1593 ]
1612 1594
1613 configs += [ "../..:common_config" ] 1595 configs += [ "../..:common_config" ]
1614 public_configs = [ "../..:common_inherited_config" ] 1596 public_configs = [ "../..:common_inherited_config" ]
1615 1597
1616 deps = [ 1598 deps = [
1617 ":isac", 1599 ":isac",
1618 "../../base:rtc_base_approved", 1600 "../../base:rtc_base_approved",
1619 "//build/config/sanitizers:deps",
1620 ] 1601 ]
1621 1602
1622 include_dirs = [ 1603 include_dirs = [
1623 "codecs/isac/main/include", 1604 "codecs/isac/main/include",
1624 "codecs/isac/main/test", 1605 "codecs/isac/main/test",
1625 "codecs/isac/main/util", 1606 "codecs/isac/main/util",
1626 ] 1607 ]
1627 } 1608 }
1628 1609
1629 rtc_executable("isac_switch_samprate_test") { 1610 rtc_executable("isac_switch_samprate_test") {
1630 testonly = true 1611 testonly = true
1631 1612
1632 sources = [ 1613 sources = [
1633 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc", 1614 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
1634 "codecs/isac/main/util/utility.c", 1615 "codecs/isac/main/util/utility.c",
1635 ] 1616 ]
1636 1617
1637 configs += [ "../..:common_config" ] 1618 configs += [ "../..:common_config" ]
1638 public_configs = [ "../..:common_inherited_config" ] 1619 public_configs = [ "../..:common_inherited_config" ]
1639 1620
1640 deps = [ 1621 deps = [
1641 ":isac", 1622 ":isac",
1642 "//build/config/sanitizers:deps",
1643 ] 1623 ]
1644 1624
1645 include_dirs = [ 1625 include_dirs = [
1646 "codecs/isac/main/include", 1626 "codecs/isac/main/include",
1647 "codecs/isac/main/test", 1627 "codecs/isac/main/test",
1648 "codecs/isac/main/util", 1628 "codecs/isac/main/util",
1649 "../../common_audio/signal_processing/include", 1629 "../../common_audio/signal_processing/include",
1650 ] 1630 ]
1651 } 1631 }
1652 1632
1653 rtc_executable("ilbc_test") { 1633 rtc_executable("ilbc_test") {
1654 testonly = true 1634 testonly = true
1655 1635
1656 sources = [ 1636 sources = [
1657 "codecs/ilbc/test/iLBC_test.c", 1637 "codecs/ilbc/test/iLBC_test.c",
1658 ] 1638 ]
1659 1639
1660 configs += [ "../..:common_config" ] 1640 configs += [ "../..:common_config" ]
1661 public_configs = [ "../..:common_inherited_config" ] 1641 public_configs = [ "../..:common_inherited_config" ]
1662 1642
1663 deps = [ 1643 deps = [
1664 ":ilbc", 1644 ":ilbc",
1665 "//build/config/sanitizers:deps",
1666 ] 1645 ]
1667 } 1646 }
1668 1647
1669 rtc_executable("webrtc_opus_fec_test") { 1648 rtc_executable("webrtc_opus_fec_test") {
1670 testonly = true 1649 testonly = true
1671 1650
1672 sources = [ 1651 sources = [
1673 "codecs/opus/opus_fec_test.cc", 1652 "codecs/opus/opus_fec_test.cc",
1674 ] 1653 ]
1675 1654
1676 deps = [ 1655 deps = [
1677 ":webrtc_opus", 1656 ":webrtc_opus",
1678 "../../base:rtc_base_approved", 1657 "../../base:rtc_base_approved",
1679 "../../common_audio", 1658 "../../common_audio",
1680 "../../test:test_support", 1659 "../../test:test_support",
1681 "../../test:test_support_main", 1660 "../../test:test_support_main",
1682 "//build/config/sanitizers:deps",
1683 "//testing/gtest", 1661 "//testing/gtest",
1684 ] 1662 ]
1685 1663
1686 if (is_clang) { 1664 if (is_clang) {
1687 # Suppress warnings from Chrome's Clang plugins. 1665 # Suppress warnings from Chrome's Clang plugins.
1688 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 1666 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
1689 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 1667 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1690 } 1668 }
1691 } 1669 }
1692 } 1670 }
OLDNEW
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/modules/audio_device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698