| 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' : { | |
| 6 'pyautolib_sources': [ | |
| 7 'app/chrome_command_ids.h', | |
| 8 'app/chrome_dll_resource.h', | |
| 9 'common/automation_constants.h', | |
| 10 'common/pref_names.cc', | |
| 11 'common/pref_names.h', | |
| 12 'test/automation/browser_proxy.cc', | |
| 13 'test/automation/browser_proxy.h', | |
| 14 'test/automation/tab_proxy.cc', | |
| 15 'test/automation/tab_proxy.h', | |
| 16 '../content/public/common/page_type.h', | |
| 17 '../content/public/common/security_style.h', | |
| 18 # Must come before cert_status_flags.h | |
| 19 '../net/base/net_export.h', | |
| 20 '../net/cert/cert_status_flags.h', | |
| 21 ], | |
| 22 'conditions': [ | |
| 23 ['asan==1', { | |
| 24 'pyautolib_sources': [ | |
| 25 'test/pyautolib/asan_stub.c', | |
| 26 ] | |
| 27 }], | |
| 28 ], | |
| 29 }, | |
| 30 'includes': [ | 5 'includes': [ |
| 31 'js_unittest_vars.gypi', | 6 'js_unittest_vars.gypi', |
| 32 ], | 7 ], |
| 33 'targets': [ | 8 'targets': [ |
| 34 { | 9 { |
| 35 'target_name': 'test_support_ui', | 10 'target_name': 'test_support_ui', |
| 36 'type': 'static_library', | 11 'type': 'static_library', |
| 37 'dependencies': [ | 12 'dependencies': [ |
| 38 'chrome_resources.gyp:chrome_resources', | 13 'chrome_resources.gyp:chrome_resources', |
| 39 'chrome_resources.gyp:chrome_strings', | 14 'chrome_resources.gyp:chrome_strings', |
| (...skipping 2643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2683 ], | 2658 ], |
| 2684 }], | 2659 }], |
| 2685 ['toolkit_views==1', { | 2660 ['toolkit_views==1', { |
| 2686 'dependencies': [ | 2661 'dependencies': [ |
| 2687 '../ui/views/views.gyp:views', | 2662 '../ui/views/views.gyp:views', |
| 2688 ], | 2663 ], |
| 2689 }], | 2664 }], |
| 2690 ], | 2665 ], |
| 2691 }, | 2666 }, |
| 2692 { | 2667 { |
| 2693 # Documentation: http://dev.chromium.org/developers/testing/pyauto | |
| 2694 # Deprecated. Do not add additional dependencies. | |
| 2695 'target_name': 'pyautolib', | |
| 2696 'variables': { | |
| 2697 'conditions': [ | |
| 2698 ['enable_automation==1 and OS=="linux"', { | |
| 2699 'python_arch': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/us
r/<(system_libdir)/libpython<(python_ver).so.1.0)', | |
| 2700 }], | |
| 2701 ], | |
| 2702 }, | |
| 2703 'conditions': [ | |
| 2704 ['enable_automation==1 and OS=="linux" and target_arch==python_arch', { | |
| 2705 'type': 'loadable_module', | |
| 2706 'product_prefix': '_', | |
| 2707 'dependencies': [ | |
| 2708 'chrome', | |
| 2709 'chrome_resources.gyp:chrome_resources', | |
| 2710 'chrome_resources.gyp:chrome_strings', | |
| 2711 'chrome_resources.gyp:theme_resources', | |
| 2712 'debugger', | |
| 2713 'test_support_common', | |
| 2714 '../skia/skia.gyp:skia', | |
| 2715 '../sync/sync.gyp:sync', | |
| 2716 '../testing/gtest.gyp:gtest', | |
| 2717 ], | |
| 2718 'export_dependent_settings': [ | |
| 2719 'test_support_common', | |
| 2720 ], | |
| 2721 'include_dirs': [ | |
| 2722 '..', | |
| 2723 '<(sysroot)/usr/include/python<(python_ver)', | |
| 2724 ], | |
| 2725 'link_settings': { | |
| 2726 'libraries': [ | |
| 2727 '-lpython<(python_ver)', | |
| 2728 ], | |
| 2729 }, | |
| 2730 'cflags': [ | |
| 2731 '-Wno-uninitialized', | |
| 2732 '-Wno-self-assign', # to keep clang happy for generated code. | |
| 2733 ], | |
| 2734 'sources': [ | |
| 2735 'test/automation/proxy_launcher.cc', | |
| 2736 'test/automation/proxy_launcher.h', | |
| 2737 'test/pyautolib/pyautolib.cc', | |
| 2738 'test/pyautolib/pyautolib.h', | |
| 2739 'test/ui/ui_test.cc', | |
| 2740 'test/ui/ui_test.h', | |
| 2741 'test/ui/ui_test_suite.cc', | |
| 2742 'test/ui/ui_test_suite.h', | |
| 2743 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2744 '<@(pyautolib_sources)', | |
| 2745 ], | |
| 2746 'conditions': [ | |
| 2747 # Disable the type profiler. _POSIX_C_SOURCE and _XOPEN_SOURCE | |
| 2748 # conflict between <Python.h> and <typeinfo>. | |
| 2749 ['clang_type_profiler==1', { | |
| 2750 'cflags_cc!': [ | |
| 2751 '-fintercept-allocation-functions', | |
| 2752 ], | |
| 2753 }], | |
| 2754 ['toolkit_uses_gtk == 1', { | |
| 2755 'dependencies': [ | |
| 2756 '../build/linux/system.gyp:gtk', | |
| 2757 ], | |
| 2758 }], | |
| 2759 ['asan==1', { | |
| 2760 'cflags!': [ '-fsanitize=address' ], | |
| 2761 }], | |
| 2762 ], | |
| 2763 'actions': [ | |
| 2764 { | |
| 2765 'variables' : { | |
| 2766 'swig_args': [ '-I..', | |
| 2767 '-python', | |
| 2768 '-c++', | |
| 2769 '-threads', | |
| 2770 '-outdir', | |
| 2771 '<(PRODUCT_DIR)', | |
| 2772 '-o', | |
| 2773 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2774 ], | |
| 2775 'conditions': [ | |
| 2776 ['chromeos==1', { | |
| 2777 'swig_args': [ | |
| 2778 '-DOS_CHROMEOS', | |
| 2779 ] | |
| 2780 }], | |
| 2781 ], | |
| 2782 }, | |
| 2783 'action_name': 'pyautolib_swig', | |
| 2784 'inputs': [ | |
| 2785 'test/pyautolib/argc_argv.i', | |
| 2786 'test/pyautolib/pyautolib.i', | |
| 2787 '<@(pyautolib_sources)', | |
| 2788 ], | |
| 2789 'outputs': [ | |
| 2790 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc', | |
| 2791 '<(PRODUCT_DIR)/pyautolib.py', | |
| 2792 ], | |
| 2793 'action': [ 'python', | |
| 2794 '../tools/swig/swig.py', | |
| 2795 '<@(swig_args)', | |
| 2796 'test/pyautolib/pyautolib.i', | |
| 2797 ], | |
| 2798 'message': 'Generating swig wrappers for pyautolib', | |
| 2799 }, | |
| 2800 ], # actions | |
| 2801 }, { | |
| 2802 'type': 'none', | |
| 2803 }], | |
| 2804 ], # conditions | |
| 2805 }, # target 'pyautolib' | |
| 2806 { | |
| 2807 # Required for WebRTC PyAuto tests. | |
| 2808 'target_name': 'webrtc_test_tools', | |
| 2809 'type': 'none', | |
| 2810 'dependencies': [ | |
| 2811 'pyautolib', | |
| 2812 '../third_party/libjingle/libjingle.gyp:peerconnection_server', | |
| 2813 '../third_party/webrtc/tools/tools.gyp:frame_analyzer', | |
| 2814 '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', | |
| 2815 ], | |
| 2816 }, # target 'webrtc_test_tools' | |
| 2817 { | |
| 2818 # Executable to measure time to load libraries. | 2668 # Executable to measure time to load libraries. |
| 2819 'target_name': 'load_library_perf_tests', | 2669 'target_name': 'load_library_perf_tests', |
| 2820 'type': '<(gtest_target_type)', | 2670 'type': '<(gtest_target_type)', |
| 2821 'dependencies': [ | 2671 'dependencies': [ |
| 2822 '../base/base.gyp:test_support_perf', | 2672 '../base/base.gyp:test_support_perf', |
| 2823 '../testing/gtest.gyp:gtest', | 2673 '../testing/gtest.gyp:gtest', |
| 2824 '../testing/perf/perf_test.gyp:*', | 2674 '../testing/perf/perf_test.gyp:*', |
| 2825 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', | 2675 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', |
| 2826 ], | 2676 ], |
| 2827 'sources': [ | 2677 'sources': [ |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3248 ['enable_webrtc==1', { | 3098 ['enable_webrtc==1', { |
| 3249 'dependencies': [ | 3099 'dependencies': [ |
| 3250 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc' | 3100 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc' |
| 3251 ] | 3101 ] |
| 3252 }], | 3102 }], |
| 3253 ], | 3103 ], |
| 3254 }] | 3104 }] |
| 3255 }], | 3105 }], |
| 3256 ], # 'conditions' | 3106 ], # 'conditions' |
| 3257 } | 3107 } |
| OLD | NEW |