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',
24 '../../gin/gin.gyp:gin',
25 '../../gpu/gpu.gyp:gpu',
26 '../../skia/skia.gyp:skia',
27 '../../third_party/WebKit/public/blink.gyp:blink',
28 '../../ui/events/events.gyp:dom_keycode_converter',
29 '../../ui/events/events.gyp:events_base',
30 '../../ui/gfx/gfx.gyp:gfx',
31 '../../ui/gfx/gfx.gyp:gfx_geometry',
32 '../../url/url.gyp:url_lib',
33 '../../v8/tools/gyp/v8.gyp:v8',
38 # Note: sources list duplicated in GN build.
40 'accessibility_controller.cc',
41 'accessibility_controller.h',
42 'app_banner_client.cc',
43 'app_banner_client.h',
46 'gamepad_controller.cc',
47 'gamepad_controller.h',
48 'mock_color_chooser.cc',
49 'mock_color_chooser.h',
50 'mock_constraints.cc',
52 'mock_credential_manager_client.cc',
53 'mock_credential_manager_client.h',
54 'mock_grammar_check.cc',
55 'mock_grammar_check.h',
56 'mock_screen_orientation_client.cc',
57 'mock_screen_orientation_client.h',
58 'mock_spell_check.cc',
60 'mock_web_audio_device.cc',
61 'mock_web_audio_device.h',
62 'mock_web_media_stream_center.cc',
63 'mock_web_media_stream_center.h',
64 'mock_web_midi_accessor.cc',
65 'mock_web_midi_accessor.h',
66 'mock_web_speech_recognizer.cc',
67 'mock_web_speech_recognizer.h',
68 'mock_web_theme_engine.cc',
69 'mock_web_theme_engine.h',
70 'mock_web_user_media_client.cc',
71 'mock_web_user_media_client.h',
72 'mock_webrtc_data_channel_handler.cc',
73 'mock_webrtc_data_channel_handler.h',
74 'mock_webrtc_dtmf_sender_handler.cc',
75 'mock_webrtc_dtmf_sender_handler.h',
76 'mock_webrtc_peer_connection_handler.cc',
77 'mock_webrtc_peer_connection_handler.h',
78 'spell_check_client.cc',
79 'spell_check_client.h',
88 'test_runner_export.h',
89 'test_preferences.cc',
91 'text_input_controller.cc',
92 'text_input_controller.h',
93 'web_ax_object_proxy.cc',
94 'web_ax_object_proxy.h',
95 'web_content_settings.cc',
96 'web_content_settings.h',
97 'web_frame_test_proxy.h',
100 'web_test_delegate.h',
101 'web_test_interfaces.cc',
102 'web_test_interfaces.h',
109 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
113 ['OS=="win" and win_use_allocator_shim==1', {
115 '../../base/allocator/allocator.gyp:allocator',
123 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
128 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
129 'msvs_disabled_warnings': [ 4267, ],
134 # GN version: //components/test_runner:resources
135 'target_name': 'resources',
140 'destination': '<(PRODUCT_DIR)',
141 'files': ['resources/fonts/AHEM____.TTF'],
145 'all_dependent_settings': {
146 'mac_bundle_resources': [
147 'resources/fonts/AHEM____.TTF',
148 'resources/fonts/ChromiumAATTest.ttf',
149 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
150 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
156 'destination': '<(PRODUCT_DIR)',
158 'resources/fonts/AHEM____.TTF',
159 'resources/fonts/fonts.conf',
160 '../../third_party/gardiner_mod/GardinerModBug.ttf',
161 '../../third_party/gardiner_mod/GardinerModCat.ttf',
167 'destination': '<(PRODUCT_DIR)',
169 'resources/fonts/AHEM____.TTF',
170 'resources/fonts/android_main_fonts.xml',
171 'resources/fonts/android_fallback_fonts.xml',
179 ['OS=="mac" or OS=="win"', {
182 # GN version: //components/test_runner:layout_test_helper
183 'target_name': 'layout_test_helper',
184 'type': 'executable',
186 'helper/layout_test_helper_mac.mm',
187 'helper/layout_test_helper_win.cc',
193 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
200 }], # OS=="mac" or OS=="win"