Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'variables' : { | 5 'variables' : { |
| 6 'chromedriver_unittest_sources': [ | 6 'chromedriver_unittest_sources': [ |
| 7 'test/chromedriver/capabilities_unittest.cc', | 7 'test/chromedriver/capabilities_unittest.cc', |
| 8 'test/chromedriver/chrome/chrome_finder_unittest.cc', | 8 'test/chromedriver/chrome/chrome_finder_unittest.cc', |
| 9 'test/chromedriver/chrome/console_logger_unittest.cc', | 9 'test/chromedriver/chrome/console_logger_unittest.cc', |
| 10 'test/chromedriver/chrome/device_manager_unittest.cc', | 10 'test/chromedriver/chrome/device_manager_unittest.cc', |
| (...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2500 'test/data/resource.rc', | 2500 'test/data/resource.rc', |
| 2501 ], | 2501 ], |
| 2502 }], | 2502 }], |
| 2503 ['toolkit_views==1', { | 2503 ['toolkit_views==1', { |
| 2504 'dependencies': [ | 2504 'dependencies': [ |
| 2505 '../ui/views/views.gyp:views', | 2505 '../ui/views/views.gyp:views', |
| 2506 ], | 2506 ], |
| 2507 }], | 2507 }], |
| 2508 ], | 2508 ], |
| 2509 }, | 2509 }, |
| 2510 { | |
| 2511 # Documentation: http://dev.chromium.org/developers/testing/pyauto | |
| 2512 'target_name': 'pyautolib', | |
| 2513 'conditions': [ | |
| 2514 ['enable_automation==1 and (OS=="mac" or ((OS=="win" or os_posix==1) and target_arch==python_arch))', { | |
| 2515 'type': 'loadable_module', | |
| 2516 'product_prefix': '_', | |
| 2517 'dependencies': [ | |
| 2518 'chrome', | |
| 2519 'chrome_resources.gyp:chrome_resources', | |
| 2520 'chrome_resources.gyp:chrome_strings', | |
| 2521 'chrome_resources.gyp:theme_resources', | |
| 2522 'debugger', | |
| 2523 'test_support_common', | |
| 2524 '../skia/skia.gyp:skia', | |
| 2525 '../sync/sync.gyp:sync', | |
| 2526 '../testing/gtest.gyp:gtest', | |
| 2527 ], | |
| 2528 'export_dependent_settings': [ | |
| 2529 'test_support_common', | |
| 2530 ], | |
| 2531 'include_dirs': [ | |
| 2532 '..', | |
| 2533 ], | |
| 2534 'cflags': [ | |
| 2535 '-Wno-uninitialized', | |
| 2536 '-Wno-self-assign', # to keep clang happy for generated code. | |
| 2537 ], | |
| 2538 'sources': [ | |
| 2539 'test/automation/proxy_launcher.cc', | |
| 2540 'test/automation/proxy_launcher.h', | |
| 2541 'test/pyautolib/pyautolib.cc', | |
| 2542 'test/pyautolib/pyautolib.h', | |
| 2543 'test/ui/ui_test.cc', | |
| 2544 'test/ui/ui_test.h', | |
| 2545 'test/ui/ui_test_suite.cc', | |
| 2546 'test/ui/ui_test_suite.h', | |
| 2547 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2548 '<@(pyautolib_sources)', | |
| 2549 ], | |
| 2550 'xcode_settings': { | |
| 2551 # Link with python2.6. Using -L/usr/lib and -lpython2.6 does not | |
| 2552 # work with the -isysroot argument passed in. Even if it did, | |
| 2553 # the linker shouldn't use any other lib not in the 10.5 sdk. | |
| 2554 'OTHER_LDFLAGS': [ | |
| 2555 '/usr/lib/libpython2.6.dylib' | |
| 2556 ], | |
| 2557 }, | |
| 2558 'msvs_disabled_warnings': [4211], | |
| 2559 'conditions': [ | |
| 2560 # Disable the type profiler. _POSIX_C_SOURCE and _XOPEN_SOURCE | |
| 2561 # conflict between <Python.h> and <typeinfo>. | |
| 2562 ['OS=="linux" and clang_type_profiler==1', { | |
| 2563 'cflags_cc!': [ | |
| 2564 '-fintercept-allocation-functions', | |
| 2565 ], | |
| 2566 }], | |
| 2567 ['os_posix == 1 and OS!="mac"', { | |
| 2568 'include_dirs': [ | |
| 2569 '..', | |
| 2570 '<(sysroot)/usr/include/python<(python_ver)', | |
| 2571 ], | |
| 2572 'link_settings': { | |
| 2573 'libraries': [ | |
| 2574 '-lpython<(python_ver)', | |
| 2575 ], | |
| 2576 }, | |
| 2577 }], | |
| 2578 ['toolkit_uses_gtk == 1', { | |
| 2579 'dependencies': [ | |
| 2580 '../build/linux/system.gyp:gtk', | |
| 2581 ], | |
| 2582 }], | |
| 2583 ['OS=="mac"', { | |
| 2584 'include_dirs': [ | |
| 2585 '..', | |
| 2586 '/usr/include/python2.6', | |
| 2587 ], | |
| 2588 }], | |
| 2589 ['OS=="win"', { | |
| 2590 'product_extension': 'pyd', | |
| 2591 'include_dirs': [ | |
| 2592 '..', | |
| 2593 '../third_party/python_26/include', | |
| 2594 ], | |
| 2595 'msvs_settings': { | |
| 2596 'VCLinkerTool': { | |
| 2597 'AdditionalLibraryDirectories': [ | |
| 2598 '<(DEPTH)/third_party/python_26/libs', | |
| 2599 ], | |
| 2600 'AdditionalDependencies': [ | |
| 2601 'python26.lib', | |
| 2602 ], | |
| 2603 }, | |
| 2604 } | |
| 2605 }], | |
| 2606 ['clang == 1', { | |
| 2607 'xcode_settings': { | |
| 2608 'WARNING_CFLAGS': [ | |
| 2609 # swig creates code with self assignments. | |
| 2610 '-Wno-self-assign', | |
|
Nico
2013/10/18 15:21:07
Since you're here, optional additional change: You
Alexander Potapenko
2013/10/18 15:25:55
I wonder if there are bots that cover this path an
| |
| 2611 ], | |
| 2612 }, | |
| 2613 'cflags': [ | |
| 2614 '-Wno-self-assign', | |
| 2615 ], | |
| 2616 }], | |
| 2617 ['asan==1', { | |
| 2618 'cflags!': [ '-fsanitize=address' ], | |
| 2619 'xcode_settings': { 'OTHER_CFLAGS!': [ '-fsanitize=address' ] }, | |
| 2620 }], | |
| 2621 ], | |
| 2622 'actions': [ | |
| 2623 { | |
| 2624 'variables' : { | |
| 2625 'swig_args': [ '-I..', | |
| 2626 '-python', | |
| 2627 '-c++', | |
| 2628 '-threads', | |
| 2629 '-outdir', | |
| 2630 '<(PRODUCT_DIR)', | |
| 2631 '-o', | |
| 2632 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2633 ], | |
| 2634 'conditions': [ | |
| 2635 ['chromeos==1', { | |
| 2636 'swig_args': [ | |
| 2637 '-DOS_CHROMEOS', | |
| 2638 ] | |
| 2639 }], | |
| 2640 ], | |
| 2641 }, | |
| 2642 'action_name': 'pyautolib_swig', | |
| 2643 'inputs': [ | |
| 2644 'test/pyautolib/argc_argv.i', | |
| 2645 'test/pyautolib/pyautolib.i', | |
| 2646 '<@(pyautolib_sources)', | |
| 2647 ], | |
| 2648 'outputs': [ | |
| 2649 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2650 '<(PRODUCT_DIR)/pyautolib.py', | |
| 2651 ], | |
| 2652 'action': [ 'python', | |
| 2653 '../tools/swig/swig.py', | |
| 2654 '<@(swig_args)', | |
| 2655 'test/pyautolib/pyautolib.i', | |
| 2656 ], | |
| 2657 'message': 'Generating swig wrappers for pyautolib.', | |
| 2658 'msvs_cygwin_shell': 1, | |
| 2659 }, | |
| 2660 ], # actions | |
| 2661 }, { | |
| 2662 'type': 'none', | |
| 2663 }], | |
| 2664 ], # conditions | |
| 2665 }, # target 'pyautolib' | |
| 2666 { | |
| 2667 # Required for WebRTC PyAuto tests. | |
| 2668 'target_name': 'webrtc_test_tools', | |
| 2669 'type': 'none', | |
| 2670 'dependencies': [ | |
| 2671 'pyautolib', | |
| 2672 '../third_party/libjingle/libjingle.gyp:peerconnection_server', | |
| 2673 '../third_party/webrtc/tools/tools.gyp:frame_analyzer', | |
| 2674 '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', | |
| 2675 ], | |
| 2676 }, # target 'webrtc_test_tools' | |
| 2510 ], | 2677 ], |
| 2511 'conditions': [ | 2678 'conditions': [ |
| 2512 ['OS=="mac"', { | 2679 ['OS=="mac"', { |
| 2513 'targets': [ | 2680 'targets': [ |
| 2514 { | 2681 { |
| 2515 # This is the mac equivalent of the security_tests target below. It | 2682 # This is the mac equivalent of the security_tests target below. It |
| 2516 # generates a framework bundle which bundles tests to be run in a | 2683 # generates a framework bundle which bundles tests to be run in a |
| 2517 # renderer process. The test code is built as a framework so it can be | 2684 # renderer process. The test code is built as a framework so it can be |
| 2518 # run in the context of a renderer without shipping the code to end | 2685 # run in the context of a renderer without shipping the code to end |
| 2519 # users. | 2686 # users. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2657 'test/security_tests/ipc_security_tests.h', | 2824 'test/security_tests/ipc_security_tests.h', |
| 2658 'test/security_tests/security_tests.cc', | 2825 'test/security_tests/security_tests.cc', |
| 2659 '../sandbox/win/tests/validation_tests/commands.cc', | 2826 '../sandbox/win/tests/validation_tests/commands.cc', |
| 2660 '../sandbox/win/tests/validation_tests/commands.h', | 2827 '../sandbox/win/tests/validation_tests/commands.h', |
| 2661 ], | 2828 ], |
| 2662 }, | 2829 }, |
| 2663 ]}, # 'targets' | 2830 ]}, # 'targets' |
| 2664 ], # OS=="win" | 2831 ], # OS=="win" |
| 2665 # If you change this condition, make sure you also change it in all.gyp | 2832 # If you change this condition, make sure you also change it in all.gyp |
| 2666 # for the chromium_builder_qa target. | 2833 # for the chromium_builder_qa target. |
| 2667 ['enable_automation==1 and (OS=="mac" or ((OS=="win" or os_posix==1) and tar get_arch==python_arch))', { | |
| 2668 'targets': [ | |
| 2669 { | |
| 2670 # Documentation: http://dev.chromium.org/developers/testing/pyauto | |
| 2671 'target_name': 'pyautolib', | |
| 2672 'type': 'loadable_module', | |
| 2673 'product_prefix': '_', | |
| 2674 'dependencies': [ | |
| 2675 'chrome', | |
| 2676 'chrome_resources.gyp:chrome_resources', | |
| 2677 'chrome_resources.gyp:chrome_strings', | |
| 2678 'chrome_resources.gyp:theme_resources', | |
| 2679 'debugger', | |
| 2680 'test_support_common', | |
| 2681 '../skia/skia.gyp:skia', | |
| 2682 '../sync/sync.gyp:sync', | |
| 2683 '../testing/gtest.gyp:gtest', | |
| 2684 ], | |
| 2685 'export_dependent_settings': [ | |
| 2686 'test_support_common', | |
| 2687 ], | |
| 2688 'include_dirs': [ | |
| 2689 '..', | |
| 2690 ], | |
| 2691 'cflags': [ | |
| 2692 '-Wno-uninitialized', | |
| 2693 '-Wno-self-assign', # to keep clang happy for generated code. | |
| 2694 ], | |
| 2695 'sources': [ | |
| 2696 'test/automation/proxy_launcher.cc', | |
| 2697 'test/automation/proxy_launcher.h', | |
| 2698 'test/pyautolib/pyautolib.cc', | |
| 2699 'test/pyautolib/pyautolib.h', | |
| 2700 'test/ui/ui_test.cc', | |
| 2701 'test/ui/ui_test.h', | |
| 2702 'test/ui/ui_test_suite.cc', | |
| 2703 'test/ui/ui_test_suite.h', | |
| 2704 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2705 '<@(pyautolib_sources)', | |
| 2706 ], | |
| 2707 'xcode_settings': { | |
| 2708 # Link with python2.6. Using -L/usr/lib and -lpython2.6 does not | |
| 2709 # work with the -isysroot argument passed in. Even if it did, | |
| 2710 # the linker shouldn't use any other lib not in the 10.5 sdk. | |
| 2711 'OTHER_LDFLAGS': [ | |
| 2712 '/usr/lib/libpython2.6.dylib' | |
| 2713 ], | |
| 2714 }, | |
| 2715 'msvs_disabled_warnings': [4211], | |
| 2716 'conditions': [ | |
| 2717 # Disable the type profiler. _POSIX_C_SOURCE and _XOPEN_SOURCE | |
| 2718 # conflict between <Python.h> and <typeinfo>. | |
| 2719 ['OS=="linux" and clang_type_profiler==1', { | |
| 2720 'cflags_cc!': [ | |
| 2721 '-fintercept-allocation-functions', | |
| 2722 ], | |
| 2723 }], | |
| 2724 ['os_posix == 1 and OS!="mac"', { | |
| 2725 'include_dirs': [ | |
| 2726 '..', | |
| 2727 '<(sysroot)/usr/include/python<(python_ver)', | |
| 2728 ], | |
| 2729 'link_settings': { | |
| 2730 'libraries': [ | |
| 2731 '-lpython<(python_ver)', | |
| 2732 ], | |
| 2733 }, | |
| 2734 }], | |
| 2735 ['toolkit_uses_gtk == 1', { | |
| 2736 'dependencies': [ | |
| 2737 '../build/linux/system.gyp:gtk', | |
| 2738 ], | |
| 2739 }], | |
| 2740 ['OS=="mac"', { | |
| 2741 'include_dirs': [ | |
| 2742 '..', | |
| 2743 '/usr/include/python2.6', | |
| 2744 ], | |
| 2745 }], | |
| 2746 ['OS=="win"', { | |
| 2747 'product_extension': 'pyd', | |
| 2748 'include_dirs': [ | |
| 2749 '..', | |
| 2750 '../third_party/python_26/include', | |
| 2751 ], | |
| 2752 'msvs_settings': { | |
| 2753 'VCLinkerTool': { | |
| 2754 'AdditionalLibraryDirectories': [ | |
| 2755 '<(DEPTH)/third_party/python_26/libs', | |
| 2756 ], | |
| 2757 'AdditionalDependencies': [ | |
| 2758 'python26.lib', | |
| 2759 ], | |
| 2760 }, | |
| 2761 } | |
| 2762 }], | |
| 2763 ['clang == 1', { | |
| 2764 'xcode_settings': { | |
| 2765 'WARNING_CFLAGS': [ | |
| 2766 # swig creates code with self assignments. | |
| 2767 '-Wno-self-assign', | |
| 2768 ], | |
| 2769 }, | |
| 2770 'cflags': [ | |
| 2771 '-Wno-self-assign', | |
| 2772 ], | |
| 2773 }], | |
| 2774 ['asan==1', { | |
| 2775 'cflags!': [ '-fsanitize=address' ], | |
| 2776 'xcode_settings': { 'OTHER_CFLAGS!': [ '-fsanitize=address' ] }, | |
| 2777 }], | |
| 2778 ], | |
| 2779 'actions': [ | |
| 2780 { | |
| 2781 'variables' : { | |
| 2782 'swig_args': [ '-I..', | |
| 2783 '-python', | |
| 2784 '-c++', | |
| 2785 '-threads', | |
| 2786 '-outdir', | |
| 2787 '<(PRODUCT_DIR)', | |
| 2788 '-o', | |
| 2789 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2790 ], | |
| 2791 'conditions': [ | |
| 2792 ['chromeos==1', { | |
| 2793 'swig_args': [ | |
| 2794 '-DOS_CHROMEOS', | |
| 2795 ] | |
| 2796 }], | |
| 2797 ], | |
| 2798 }, | |
| 2799 'action_name': 'pyautolib_swig', | |
| 2800 'inputs': [ | |
| 2801 'test/pyautolib/argc_argv.i', | |
| 2802 'test/pyautolib/pyautolib.i', | |
| 2803 '<@(pyautolib_sources)', | |
| 2804 ], | |
| 2805 'outputs': [ | |
| 2806 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2807 '<(PRODUCT_DIR)/pyautolib.py', | |
| 2808 ], | |
| 2809 'action': [ 'python', | |
| 2810 '../tools/swig/swig.py', | |
| 2811 '<@(swig_args)', | |
| 2812 'test/pyautolib/pyautolib.i', | |
| 2813 ], | |
| 2814 'message': 'Generating swig wrappers for pyautolib.', | |
| 2815 'msvs_cygwin_shell': 1, | |
| 2816 }, | |
| 2817 ], # actions | |
| 2818 }, # target 'pyautolib' | |
| 2819 { | |
| 2820 # Required for WebRTC PyAuto tests. | |
| 2821 'target_name': 'webrtc_test_tools', | |
| 2822 'type': 'none', | |
| 2823 'dependencies': [ | |
| 2824 'pyautolib', | |
| 2825 '../third_party/libjingle/libjingle.gyp:peerconnection_server', | |
| 2826 '../third_party/webrtc/tools/tools.gyp:frame_analyzer', | |
| 2827 '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', | |
| 2828 ], | |
| 2829 }, # target 'webrtc_test_tools' | |
| 2830 ] # targets | |
| 2831 }], | |
| 2832 # To enable the coverage targets, do | 2834 # To enable the coverage targets, do |
| 2833 # GYP_DEFINES='coverage=1' gclient sync | 2835 # GYP_DEFINES='coverage=1' gclient sync |
| 2834 # To match the coverage buildbot more closely, do this: | 2836 # To match the coverage buildbot more closely, do this: |
| 2835 # GYP_DEFINES='coverage=1 enable_svg=0 fastbuild=1' gclient sync | 2837 # GYP_DEFINES='coverage=1 enable_svg=0 fastbuild=1' gclient sync |
| 2836 # (and, on MacOS, be sure to switch your SDK from "Base SDK" to "Mac OS X | 2838 # (and, on MacOS, be sure to switch your SDK from "Base SDK" to "Mac OS X |
| 2837 # 10.6") | 2839 # 10.6") |
| 2838 # (but on Windows, don't set the fastbuild=1 because it removes the PDB | 2840 # (but on Windows, don't set the fastbuild=1 because it removes the PDB |
| 2839 # generation which is necessary for code coverage.) | 2841 # generation which is necessary for code coverage.) |
| 2840 ['coverage!=0', | 2842 ['coverage!=0', |
| 2841 { 'targets': [ | 2843 { 'targets': [ |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2920 '../crypto/crypto.gyp:crypto_unittests', | 2922 '../crypto/crypto.gyp:crypto_unittests', |
| 2921 '../jingle/jingle.gyp:jingle_unittests', | 2923 '../jingle/jingle.gyp:jingle_unittests', |
| 2922 '../net/net.gyp:net_perftests', | 2924 '../net/net.gyp:net_perftests', |
| 2923 '../third_party/WebKit/public/all.gyp:all_blink', | 2925 '../third_party/WebKit/public/all.gyp:all_blink', |
| 2924 '../url/url.gyp:url_unittests', | 2926 '../url/url.gyp:url_unittests', |
| 2925 'browser_tests', | 2927 'browser_tests', |
| 2926 'chromedriver_unittests', | 2928 'chromedriver_unittests', |
| 2927 'performance_ui_tests', | 2929 'performance_ui_tests', |
| 2928 'pyautolib', | 2930 'pyautolib', |
| 2929 'sync_integration_tests', | 2931 'sync_integration_tests', |
| 2930 ]}], | 2932 ], |
| 2933 }], | |
| 2931 ['OS=="mac"', { | 2934 ['OS=="mac"', { |
| 2932 'dependencies': [ | 2935 'dependencies': [ |
| 2933 # Placeholder; empty for now. | 2936 # Placeholder; empty for now. |
| 2934 ]}], | 2937 ]}], |
| 2935 ], # 'conditions' | 2938 ], # 'conditions' |
| 2936 'actions': [ | 2939 'actions': [ |
| 2937 { | 2940 { |
| 2938 # 'message' for Linux/scons in particular. Scons | 2941 # 'message' for Linux/scons in particular. Scons |
| 2939 # requires the 'coverage' target be run from within | 2942 # requires the 'coverage' target be run from within |
| 2940 # src/chrome. | 2943 # src/chrome. |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3165 'utility', | 3168 'utility', |
| 3166 ], | 3169 ], |
| 3167 'sources': [ | 3170 'sources': [ |
| 3168 'tools/service_discovery_sniffer/service_discovery_sniffer.h', | 3171 'tools/service_discovery_sniffer/service_discovery_sniffer.h', |
| 3169 'tools/service_discovery_sniffer/service_discovery_sniffer.cc', | 3172 'tools/service_discovery_sniffer/service_discovery_sniffer.cc', |
| 3170 ], | 3173 ], |
| 3171 }] | 3174 }] |
| 3172 }], | 3175 }], |
| 3173 ], # 'conditions' | 3176 ], # 'conditions' |
| 3174 } | 3177 } |
| OLD | NEW |