OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 ], | 656 ], |
657 'includes': ['../build/nocompile.gypi'], | 657 'includes': ['../build/nocompile.gypi'], |
658 'variables': { | 658 'variables': { |
659 # TODO(ajwong): Is there a way to autodetect this? | 659 # TODO(ajwong): Is there a way to autodetect this? |
660 'module_dir': 'base' | 660 'module_dir': 'base' |
661 }, | 661 }, |
662 'conditions': [ | 662 'conditions': [ |
663 ['OS == "android"', { | 663 ['OS == "android"', { |
664 'dependencies': [ | 664 'dependencies': [ |
665 'android/jni_generator/jni_generator.gyp:jni_generator_tests', | 665 'android/jni_generator/jni_generator.gyp:jni_generator_tests', |
666 ], | 666 '../testing/android/native_test.gyp:native_test_native_code', |
667 'conditions': [ | |
668 ['gtest_target_type == "shared_library"', { | |
669 'dependencies': [ | |
670 '../testing/android/native_test.gyp:native_test_native_code', | |
671 ], | |
672 }], | |
673 ], | 667 ], |
674 }], | 668 }], |
675 ['OS == "ios" and _toolset != "host"', { | 669 ['OS == "ios" and _toolset != "host"', { |
676 'sources/': [ | 670 'sources/': [ |
677 # Only test the iOS-meaningful portion of process_utils. | 671 # Only test the iOS-meaningful portion of process_utils. |
678 ['exclude', '^process/memory_unittest'], | 672 ['exclude', '^process/memory_unittest'], |
679 ['exclude', '^process/process_util_unittest\\.cc$'], | 673 ['exclude', '^process/process_util_unittest\\.cc$'], |
680 ['include', '^process/process_util_unittest_ios\\.cc$'], | 674 ['include', '^process/process_util_unittest_ios\\.cc$'], |
681 # Requires spawning processes. | 675 # Requires spawning processes. |
682 ['exclude', '^metrics/stats_table_unittest\\.cc$'], | 676 ['exclude', '^metrics/stats_table_unittest\\.cc$'], |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 'base', | 792 'base', |
799 'test_support_base', | 793 'test_support_base', |
800 '../testing/gtest.gyp:gtest', | 794 '../testing/gtest.gyp:gtest', |
801 ], | 795 ], |
802 'sources': [ | 796 'sources': [ |
803 'threading/thread_perftest.cc', | 797 'threading/thread_perftest.cc', |
804 'test/run_all_unittests.cc', | 798 'test/run_all_unittests.cc', |
805 '../testing/perf/perf_test.cc' | 799 '../testing/perf/perf_test.cc' |
806 ], | 800 ], |
807 'conditions': [ | 801 'conditions': [ |
808 ['OS == "android" and gtest_target_type == "shared_library"', { | 802 ['OS == "android"', { |
809 'dependencies': [ | 803 'dependencies': [ |
810 '../testing/android/native_test.gyp:native_test_native_code', | 804 '../testing/android/native_test.gyp:native_test_native_code', |
811 ], | 805 ], |
812 }], | 806 }], |
813 ], | 807 ], |
814 }, | 808 }, |
815 { | 809 { |
816 'target_name': 'base_i18n_perftests', | 810 'target_name': 'base_i18n_perftests', |
817 'type': '<(gtest_target_type)', | 811 'type': '<(gtest_target_type)', |
818 'dependencies': [ | 812 'dependencies': [ |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1425 ], | 1419 ], |
1426 'dependencies': [ | 1420 'dependencies': [ |
1427 '<(android_ndk_root)/crazy_linker.gyp:crazy_linker', | 1421 '<(android_ndk_root)/crazy_linker.gyp:crazy_linker', |
1428 ], | 1422 ], |
1429 }], | 1423 }], |
1430 ], | 1424 ], |
1431 }, | 1425 }, |
1432 | 1426 |
1433 ], | 1427 ], |
1434 }], | 1428 }], |
1435 ['OS == "android" and gtest_target_type == "shared_library"', { | 1429 ['OS == "android"', { |
1436 'targets': [ | 1430 'targets': [ |
1437 { | 1431 { |
1438 'target_name': 'base_perftests_apk', | 1432 'target_name': 'base_perftests_apk', |
1439 'type': 'none', | 1433 'type': 'none', |
1440 'dependencies': [ | 1434 'dependencies': [ |
1441 'base_perftests', | 1435 'base_perftests', |
1442 ], | 1436 ], |
1443 'variables': { | 1437 'variables': { |
1444 'test_suite_name': 'base_perftests', | 1438 'test_suite_name': 'base_perftests', |
1445 }, | 1439 }, |
(...skipping 10 matching lines...) Expand all Loading... |
1456 'debug_message.cc', | 1450 'debug_message.cc', |
1457 ], | 1451 ], |
1458 'msvs_settings': { | 1452 'msvs_settings': { |
1459 'VCLinkerTool': { | 1453 'VCLinkerTool': { |
1460 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | 1454 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
1461 }, | 1455 }, |
1462 }, | 1456 }, |
1463 }, | 1457 }, |
1464 ], | 1458 ], |
1465 }], | 1459 }], |
1466 # Special target to wrap a gtest_target_type == shared_library | 1460 ['OS == "android"', { |
1467 # base_unittests into an android apk for execution. | |
1468 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath() | |
1469 # in the gyp make generator. What is the correct way to extract | |
1470 # this path from gyp and into 'raw' for input to antfiles? | |
1471 # Hard-coding in the gypfile seems a poor choice. | |
1472 ['OS == "android" and gtest_target_type == "shared_library"', { | |
1473 'targets': [ | 1461 'targets': [ |
1474 { | 1462 { |
1475 'target_name': 'base_unittests_apk', | 1463 'target_name': 'base_unittests_apk', |
1476 'type': 'none', | 1464 'type': 'none', |
1477 'dependencies': [ | 1465 'dependencies': [ |
1478 'base_java', | 1466 'base_java', |
1479 'base_unittests', | 1467 'base_unittests', |
1480 ], | 1468 ], |
1481 'variables': { | 1469 'variables': { |
1482 'test_suite_name': 'base_unittests', | 1470 'test_suite_name': 'base_unittests', |
(...skipping 15 matching lines...) Expand all Loading... |
1498 'base_unittests.isolate', | 1486 'base_unittests.isolate', |
1499 ], | 1487 ], |
1500 'sources': [ | 1488 'sources': [ |
1501 'base_unittests.isolate', | 1489 'base_unittests.isolate', |
1502 ], | 1490 ], |
1503 }, | 1491 }, |
1504 ], | 1492 ], |
1505 }], | 1493 }], |
1506 ], | 1494 ], |
1507 } | 1495 } |
OLD | NEW |