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.
7 # This turns on e.g. the filename-based detection of which
8 # platforms to include source files on (e.g. files ending in
9 # _mac.h or _mac.cc are only compiled on MacOSX).
14 # GN version: //components/test_runner:test_runner
15 'target_name': 'test_runner',
16 'type': '<(component)',
18 'TEST_RUNNER_IMPLEMENTATION',
22 '../../base/base.gyp:base',
23 '../../base/base.gyp:base_i18n',
25 '../../cc/blink/cc_blink.gyp:cc_blink',
26 '../../gin/gin.gyp:gin',
27 '../../gpu/gpu.gyp:gpu',
28 '../../skia/skia.gyp:skia',
29 '../../third_party/WebKit/public/blink.gyp:blink',
30 '../../ui/events/events.gyp:dom_keycode_converter',
31 '../../ui/events/events.gyp:events_base',
32 '../../ui/gfx/gfx.gyp:gfx',
33 '../../ui/gfx/gfx.gyp:gfx_geometry',
34 '../../url/url.gyp:url_lib',
35 '../../v8/tools/gyp/v8.gyp:v8',
40 # Note: sources list duplicated in GN build.
42 'accessibility_controller.cc',
43 'accessibility_controller.h',
44 'app_banner_client.cc',
45 'app_banner_client.h',
48 'gamepad_controller.cc',
49 'gamepad_controller.h',
50 'mock_color_chooser.cc',
51 'mock_color_chooser.h',
52 'mock_constraints.cc',
54 'mock_credential_manager_client.cc',
55 'mock_credential_manager_client.h',
56 'mock_grammar_check.cc',
57 'mock_grammar_check.h',
58 'mock_screen_orientation_client.cc',
59 'mock_screen_orientation_client.h',
60 'mock_spell_check.cc',
62 'mock_web_audio_device.cc',
63 'mock_web_audio_device.h',
64 'mock_web_media_stream_center.cc',
65 'mock_web_media_stream_center.h',
66 'mock_web_midi_accessor.cc',
67 'mock_web_midi_accessor.h',
68 'mock_web_speech_recognizer.cc',
69 'mock_web_speech_recognizer.h',
70 'mock_web_theme_engine.cc',
71 'mock_web_theme_engine.h',
72 'mock_web_user_media_client.cc',
73 'mock_web_user_media_client.h',
74 'mock_webrtc_data_channel_handler.cc',
75 'mock_webrtc_data_channel_handler.h',
76 'mock_webrtc_dtmf_sender_handler.cc',
77 'mock_webrtc_dtmf_sender_handler.h',
78 'mock_webrtc_peer_connection_handler.cc',
79 'mock_webrtc_peer_connection_handler.h',
80 'spell_check_client.cc',
81 'spell_check_client.h',
90 'test_runner_export.h',
91 'test_preferences.cc',
93 'text_input_controller.cc',
94 'text_input_controller.h',
95 'web_ax_object_proxy.cc',
96 'web_ax_object_proxy.h',
97 'web_content_settings.cc',
98 'web_content_settings.h',
99 'web_frame_test_proxy.h',
102 'web_test_delegate.h',
103 'web_test_interfaces.cc',
104 'web_test_interfaces.h',
111 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
115 ['OS=="win" and win_use_allocator_shim==1', {
117 '../../base/allocator/allocator.gyp:allocator',
125 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
131 'msvs_disabled_warnings': [ 4267, ],
136 # GN version: //components/test_runner:resources
137 'target_name': 'resources',
142 'destination': '<(PRODUCT_DIR)',
143 'files': ['resources/fonts/AHEM____.TTF'],
147 'all_dependent_settings': {
148 'mac_bundle_resources': [
149 'resources/fonts/AHEM____.TTF',
150 'resources/fonts/ChromiumAATTest.ttf',
151 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
152 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
158 'destination': '<(PRODUCT_DIR)',
160 'resources/fonts/AHEM____.TTF',
161 'resources/fonts/fonts.conf',
162 '../../third_party/gardiner_mod/GardinerModBug.ttf',
163 '../../third_party/gardiner_mod/GardinerModCat.ttf',
169 'destination': '<(PRODUCT_DIR)',
171 'resources/fonts/AHEM____.TTF',
172 'resources/fonts/android_main_fonts.xml',
173 'resources/fonts/android_fallback_fonts.xml',
181 ['OS=="mac" or OS=="win"', {
184 # GN version: //components/test_runner:layout_test_helper
185 'target_name': 'layout_test_helper',
186 'type': 'executable',
188 'helper/layout_test_helper_mac.mm',
189 'helper/layout_test_helper_win.cc',
195 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
202 }], # OS=="mac" or OS=="win"