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 '../../gin/gin.gyp:gin',
26 '../../gpu/gpu.gyp:gpu',
27 '../../skia/skia.gyp:skia',
28 '../../third_party/WebKit/public/blink.gyp:blink',
29 '../../ui/events/events.gyp:dom_keycode_converter',
30 '../../ui/events/events.gyp:events_base',
31 '../../ui/gfx/gfx.gyp:gfx',
32 '../../ui/gfx/gfx.gyp:gfx_geometry',
33 '../../url/url.gyp:url_lib',
34 '../../v8/tools/gyp/v8.gyp:v8',
39 # Note: sources list duplicated in GN build.
41 'accessibility_controller.cc',
42 'accessibility_controller.h',
43 'app_banner_client.cc',
44 'app_banner_client.h',
47 'gamepad_controller.cc',
48 'gamepad_controller.h',
49 'mock_color_chooser.cc',
50 'mock_color_chooser.h',
51 'mock_constraints.cc',
53 'mock_credential_manager_client.cc',
54 'mock_credential_manager_client.h',
55 'mock_grammar_check.cc',
56 'mock_grammar_check.h',
57 'mock_screen_orientation_client.cc',
58 'mock_screen_orientation_client.h',
59 'mock_spell_check.cc',
61 'mock_web_audio_device.cc',
62 'mock_web_audio_device.h',
63 'mock_web_media_stream_center.cc',
64 'mock_web_media_stream_center.h',
65 'mock_web_midi_accessor.cc',
66 'mock_web_midi_accessor.h',
67 'mock_web_speech_recognizer.cc',
68 'mock_web_speech_recognizer.h',
69 'mock_web_theme_engine.cc',
70 'mock_web_theme_engine.h',
71 'mock_web_user_media_client.cc',
72 'mock_web_user_media_client.h',
73 'mock_webrtc_data_channel_handler.cc',
74 'mock_webrtc_data_channel_handler.h',
75 'mock_webrtc_dtmf_sender_handler.cc',
76 'mock_webrtc_dtmf_sender_handler.h',
77 'mock_webrtc_peer_connection_handler.cc',
78 'mock_webrtc_peer_connection_handler.h',
79 'spell_check_client.cc',
80 'spell_check_client.h',
89 'test_runner_export.h',
90 'test_preferences.cc',
92 'text_input_controller.cc',
93 'text_input_controller.h',
94 'web_ax_object_proxy.cc',
95 'web_ax_object_proxy.h',
96 'web_content_settings.cc',
97 'web_content_settings.h',
98 'web_frame_test_proxy.h',
101 'web_test_delegate.h',
102 'web_test_interfaces.cc',
103 'web_test_interfaces.h',
110 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
114 ['OS=="win" and win_use_allocator_shim==1', {
116 '../../base/allocator/allocator.gyp:allocator',
124 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
129 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
130 'msvs_disabled_warnings': [ 4267, ],
135 # GN version: //components/test_runner:resources
136 'target_name': 'resources',
141 'destination': '<(PRODUCT_DIR)',
142 'files': ['resources/fonts/AHEM____.TTF'],
146 'all_dependent_settings': {
147 'mac_bundle_resources': [
148 'resources/fonts/AHEM____.TTF',
149 'resources/fonts/ChromiumAATTest.ttf',
150 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
151 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
157 'destination': '<(PRODUCT_DIR)',
159 'resources/fonts/AHEM____.TTF',
160 'resources/fonts/fonts.conf',
161 '../../third_party/gardiner_mod/GardinerModBug.ttf',
162 '../../third_party/gardiner_mod/GardinerModCat.ttf',
168 'destination': '<(PRODUCT_DIR)',
170 'resources/fonts/AHEM____.TTF',
171 'resources/fonts/android_main_fonts.xml',
172 'resources/fonts/android_fallback_fonts.xml',
180 ['OS=="mac" or OS=="win"', {
183 # GN version: //components/test_runner:layout_test_helper
184 'target_name': 'layout_test_helper',
185 'type': 'executable',
187 'helper/layout_test_helper_mac.mm',
188 'helper/layout_test_helper_win.cc',
194 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
201 }], # OS=="mac" or OS=="win"