OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 { |
| 8 # GN version: //components/test_runner:test_runner |
| 9 'target_name': 'test_runner', |
| 10 'type': 'static_library', |
| 11 'variables': { |
| 12 'chromium_code': 1, |
| 13 }, |
| 14 'dependencies': [ |
| 15 'resources', |
| 16 '../../base/base.gyp:base', |
| 17 '../../base/base.gyp:base_static', |
| 18 '../../cc/cc.gyp:cc', |
| 19 '../../gin/gin.gyp:gin', |
| 20 '../../skia/skia.gyp:skia', |
| 21 '../../third_party/WebKit/public/blink.gyp:blink', |
| 22 '../../ui/events/events.gyp:events_base', |
| 23 '../../ui/gfx/gfx.gyp:gfx', |
| 24 '../../ui/gfx/gfx.gyp:gfx_geometry', |
| 25 '../../v8/tools/gyp/v8.gyp:v8', |
| 26 ], |
| 27 'include_dirs': [ |
| 28 '..', |
| 29 ], |
| 30 # Note: sources list duplicated in GN build. |
| 31 'sources': [ |
| 32 'accessibility_controller.cc', |
| 33 'accessibility_controller.h', |
| 34 'app_banner_client.cc', |
| 35 'app_banner_client.h', |
| 36 'event_sender.cc', |
| 37 'event_sender.h', |
| 38 'gamepad_controller.cc', |
| 39 'gamepad_controller.h', |
| 40 'mock_color_chooser.cc', |
| 41 'mock_color_chooser.h', |
| 42 'mock_constraints.cc', |
| 43 'mock_constraints.h', |
| 44 'mock_credential_manager_client.cc', |
| 45 'mock_credential_manager_client.h', |
| 46 'mock_grammar_check.cc', |
| 47 'mock_grammar_check.h', |
| 48 'mock_screen_orientation_client.cc', |
| 49 'mock_screen_orientation_client.h', |
| 50 'mock_spell_check.cc', |
| 51 'mock_spell_check.h', |
| 52 'mock_web_audio_device.cc', |
| 53 'mock_web_audio_device.h', |
| 54 'mock_web_media_stream_center.cc', |
| 55 'mock_web_media_stream_center.h', |
| 56 'mock_web_midi_accessor.cc', |
| 57 'mock_web_midi_accessor.h', |
| 58 'mock_web_speech_recognizer.cc', |
| 59 'mock_web_speech_recognizer.h', |
| 60 'mock_web_theme_engine.cc', |
| 61 'mock_web_theme_engine.h', |
| 62 'mock_web_user_media_client.cc', |
| 63 'mock_web_user_media_client.h', |
| 64 'mock_webrtc_data_channel_handler.cc', |
| 65 'mock_webrtc_data_channel_handler.h', |
| 66 'mock_webrtc_dtmf_sender_handler.cc', |
| 67 'mock_webrtc_dtmf_sender_handler.h', |
| 68 'mock_webrtc_peer_connection_handler.cc', |
| 69 'mock_webrtc_peer_connection_handler.h', |
| 70 'spell_check_client.cc', |
| 71 'spell_check_client.h', |
| 72 'test_common.cc', |
| 73 'test_common.h', |
| 74 'test_interfaces.cc', |
| 75 'test_interfaces.h', |
| 76 'test_plugin.cc', |
| 77 'test_plugin.h', |
| 78 'test_runner.cc', |
| 79 'test_runner.h', |
| 80 'test_preferences.cc', |
| 81 'test_preferences.h', |
| 82 'text_input_controller.cc', |
| 83 'text_input_controller.h', |
| 84 'web_ax_object_proxy.cc', |
| 85 'web_ax_object_proxy.h', |
| 86 'web_content_settings.cc', |
| 87 'web_content_settings.h', |
| 88 'web_frame_test_proxy.h', |
| 89 'web_task.cc', |
| 90 'web_task.h', |
| 91 'web_test_delegate.h', |
| 92 'web_test_interfaces.cc', |
| 93 'web_test_interfaces.h', |
| 94 'web_test_proxy.cc', |
| 95 'web_test_proxy.h', |
| 96 'web_test_runner.h', |
| 97 ], |
| 98 'msvs_settings': { |
| 99 'VCLinkerTool': { |
| 100 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 101 }, |
| 102 }, |
| 103 'conditions': [ |
| 104 ['OS=="win" and win_use_allocator_shim==1', { |
| 105 'dependencies': [ |
| 106 '../../base/allocator/allocator.gyp:allocator', |
| 107 ], |
| 108 }], |
| 109 ['OS=="win"', { |
| 110 'configurations': { |
| 111 'Debug_Base': { |
| 112 'msvs_settings': { |
| 113 'VCLinkerTool': { |
| 114 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 115 }, |
| 116 }, |
| 117 }, |
| 118 }, |
| 119 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 120 'msvs_disabled_warnings': [ 4267, ], |
| 121 }], # OS=="win" |
| 122 ], |
| 123 }, |
| 124 { |
| 125 # GN version: //components/test_runner:resources |
| 126 'target_name': 'resources', |
| 127 'type': 'none', |
| 128 'conditions': [ |
| 129 ['OS=="win"', { |
| 130 'copies': [{ |
| 131 'destination': '<(PRODUCT_DIR)', |
| 132 'files': ['resources/fonts/AHEM____.TTF'], |
| 133 }], |
| 134 }], |
| 135 ['OS=="mac"', { |
| 136 'all_dependent_settings': { |
| 137 'mac_bundle_resources': [ |
| 138 'resources/fonts/AHEM____.TTF', |
| 139 'resources/fonts/ChromiumAATTest.ttf', |
| 140 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png', |
| 141 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png', |
| 142 ], |
| 143 }, |
| 144 }], |
| 145 ['use_x11 == 1', { |
| 146 'copies': [{ |
| 147 'destination': '<(PRODUCT_DIR)', |
| 148 'files': [ |
| 149 'resources/fonts/AHEM____.TTF', |
| 150 'resources/fonts/fonts.conf', |
| 151 '../../third_party/gardiner_mod/GardinerModBug.ttf', |
| 152 '../../third_party/gardiner_mod/GardinerModCat.ttf', |
| 153 ] |
| 154 }], |
| 155 }], |
| 156 ['OS=="android"', { |
| 157 'copies': [{ |
| 158 'destination': '<(PRODUCT_DIR)', |
| 159 'files': [ |
| 160 'resources/fonts/AHEM____.TTF', |
| 161 'resources/fonts/android_main_fonts.xml', |
| 162 'resources/fonts/android_fallback_fonts.xml', |
| 163 ] |
| 164 }], |
| 165 }], |
| 166 ], |
| 167 }, |
| 168 ], |
| 169 'conditions': [ |
| 170 ['OS=="mac" or OS=="win"', { |
| 171 'targets': [ |
| 172 { |
| 173 # GN version: //components/test_runner:layout_test_helper |
| 174 'target_name': 'layout_test_helper', |
| 175 'type': 'executable', |
| 176 'variables': { |
| 177 'chromium_code': 1, |
| 178 }, |
| 179 'sources': [ |
| 180 'helper/layout_test_helper_mac.mm', |
| 181 'helper/layout_test_helper_win.cc', |
| 182 ], |
| 183 'conditions': [ |
| 184 ['OS=="mac"', { |
| 185 'link_settings': { |
| 186 'libraries': [ |
| 187 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 188 ], |
| 189 }, |
| 190 }], |
| 191 ], |
| 192 }, |
| 193 ], |
| 194 }], # OS=="mac" or OS=="win" |
| 195 ] |
| 196 } |
OLD | NEW |