blob: b7ddd2782a6fe54dd3dad492a0be21d5f8a19bfe [file] [log] [blame]
jochen73e711c2015-06-03 10:01:461# 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{
jochen746754c52015-06-05 16:40:416 'variables': {
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).
10 'chromium_code': 1,
11 },
jochen73e711c2015-06-03 10:01:4612 'targets': [
13 {
14 # GN version: //components/test_runner:test_runner
15 'target_name': 'test_runner',
jochen746754c52015-06-05 16:40:4116 'type': '<(component)',
17 'defines': [
18 'TEST_RUNNER_IMPLEMENTATION',
19 ],
jochen73e711c2015-06-03 10:01:4620 'dependencies': [
21 'resources',
22 '../../base/base.gyp:base',
jochenea29d8ad2015-07-02 15:15:0123 '../../base/base.gyp:base_i18n',
jochen73e711c2015-06-03 10:01:4624 '../../cc/cc.gyp:cc',
esprehndffdacb2015-09-04 17:52:5325 '../../cc/blink/cc_blink.gyp:cc_blink',
jochen73e711c2015-06-03 10:01:4626 '../../gin/gin.gyp:gin',
jochen746754c52015-06-05 16:40:4127 '../../gpu/gpu.gyp:gpu',
Sadrul Habib Chowdhurybb75fb72015-09-11 01:26:1328 '../../net/net.gyp:net',
jochen73e711c2015-06-03 10:01:4629 '../../skia/skia.gyp:skia',
30 '../../third_party/WebKit/public/blink.gyp:blink',
jochen746754c52015-06-05 16:40:4131 '../../ui/events/events.gyp:dom_keycode_converter',
jochen73e711c2015-06-03 10:01:4632 '../../ui/events/events.gyp:events_base',
33 '../../ui/gfx/gfx.gyp:gfx',
34 '../../ui/gfx/gfx.gyp:gfx_geometry',
sadrul1f7fa9f2015-10-06 17:14:5735 '../../ui/gfx/gfx.gyp:gfx_test_support',
jochen746754c52015-06-05 16:40:4136 '../../url/url.gyp:url_lib',
machenbach60b9aa22016-04-26 12:52:2637 '../../v8/src/v8.gyp:v8',
jochen73e711c2015-06-03 10:01:4638 ],
39 'include_dirs': [
40 '..',
41 ],
42 # Note: sources list duplicated in GN build.
43 'sources': [
44 'accessibility_controller.cc',
45 'accessibility_controller.h',
46 'app_banner_client.cc',
47 'app_banner_client.h',
jochen73e711c2015-06-03 10:01:4648 'event_sender.cc',
49 'event_sender.h',
50 'gamepad_controller.cc',
51 'gamepad_controller.h',
sadrul43405772015-10-15 23:12:3752 'gc_controller.cc',
53 'gc_controller.h',
lukaszaf41da4b2016-04-14 22:33:2054 'layout_and_paint_async_then.cc',
55 'layout_and_paint_async_then.h',
lukaszaa8960462016-01-27 22:27:3356 'layout_dump.cc',
57 'layout_dump.h',
lukasza083b4f12016-03-24 16:51:4358 'layout_test_runtime_flags.cc',
59 'layout_test_runtime_flags.h',
jochen73e711c2015-06-03 10:01:4660 'mock_color_chooser.cc',
61 'mock_color_chooser.h',
lukasza21353232016-04-12 19:52:1162 'mock_content_settings_client.cc',
63 'mock_content_settings_client.h',
jochen73e711c2015-06-03 10:01:4664 'mock_credential_manager_client.cc',
65 'mock_credential_manager_client.h',
66 'mock_grammar_check.cc',
67 'mock_grammar_check.h',
68 'mock_screen_orientation_client.cc',
69 'mock_screen_orientation_client.h',
70 'mock_spell_check.cc',
71 'mock_spell_check.h',
72 'mock_web_audio_device.cc',
73 'mock_web_audio_device.h',
74 'mock_web_media_stream_center.cc',
75 'mock_web_media_stream_center.h',
76 'mock_web_midi_accessor.cc',
77 'mock_web_midi_accessor.h',
78 'mock_web_speech_recognizer.cc',
79 'mock_web_speech_recognizer.h',
80 'mock_web_theme_engine.cc',
81 'mock_web_theme_engine.h',
82 'mock_web_user_media_client.cc',
83 'mock_web_user_media_client.h',
84 'mock_webrtc_data_channel_handler.cc',
85 'mock_webrtc_data_channel_handler.h',
86 'mock_webrtc_dtmf_sender_handler.cc',
87 'mock_webrtc_dtmf_sender_handler.h',
88 'mock_webrtc_peer_connection_handler.cc',
89 'mock_webrtc_peer_connection_handler.h',
lukasza1b546c12016-04-04 16:19:2090 'pixel_dump.cc',
91 'pixel_dump.h',
jochen73e711c2015-06-03 10:01:4692 'spell_check_client.cc',
93 'spell_check_client.h',
94 'test_common.cc',
95 'test_common.h',
jochen73e711c2015-06-03 10:01:4696 'test_interfaces.cc',
97 'test_interfaces.h',
98 'test_plugin.cc',
99 'test_plugin.h',
jochene9ba6dd2016-02-23 17:20:49100 'test_preferences.cc',
101 'test_preferences.h',
jochen73e711c2015-06-03 10:01:46102 'test_runner.cc',
103 'test_runner.h',
jochen746754c52015-06-05 16:40:41104 'test_runner_export.h',
lukaszac360bb342016-05-03 16:20:31105 'test_runner_for_specific_view.cc',
106 'test_runner_for_specific_view.h',
jochen73e711c2015-06-03 10:01:46107 'text_input_controller.cc',
108 'text_input_controller.h',
lukaszac9cbe712016-03-14 14:06:43109 'tracked_dictionary.cc',
110 'tracked_dictionary.h',
jochen73e711c2015-06-03 10:01:46111 'web_ax_object_proxy.cc',
112 'web_ax_object_proxy.h',
lukaszafd124602016-04-01 16:53:30113 'web_frame_test_client.cc',
114 'web_frame_test_client.h',
lukasza01da2602016-04-05 14:51:26115 'web_frame_test_proxy.cc',
jochen73e711c2015-06-03 10:01:46116 'web_frame_test_proxy.h',
jochen73e711c2015-06-03 10:01:46117 'web_task.cc',
118 'web_task.h',
119 'web_test_delegate.h',
120 'web_test_interfaces.cc',
121 'web_test_interfaces.h',
122 'web_test_proxy.cc',
123 'web_test_proxy.h',
124 'web_test_runner.h',
lukasza21353232016-04-12 19:52:11125 'web_view_test_client.cc',
126 'web_view_test_client.h',
lukaszadf92022f2016-05-03 16:42:31127 'web_widget_test_client.cc',
128 'web_widget_test_client.h',
jochen73e711c2015-06-03 10:01:46129 ],
130 'msvs_settings': {
131 'VCLinkerTool': {
132 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
133 },
134 },
135 'conditions': [
jochen73e711c2015-06-03 10:01:46136 ['OS=="win"', {
137 'configurations': {
138 'Debug_Base': {
139 'msvs_settings': {
140 'VCLinkerTool': {
141 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
142 },
143 },
144 },
145 },
146 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
147 'msvs_disabled_warnings': [ 4267, ],
148 }], # OS=="win"
149 ],
150 },
151 {
152 # GN version: //components/test_runner:resources
153 'target_name': 'resources',
154 'type': 'none',
155 'conditions': [
156 ['OS=="win"', {
157 'copies': [{
158 'destination': '<(PRODUCT_DIR)',
159 'files': ['resources/fonts/AHEM____.TTF'],
160 }],
161 }],
162 ['OS=="mac"', {
163 'all_dependent_settings': {
164 'mac_bundle_resources': [
165 'resources/fonts/AHEM____.TTF',
166 'resources/fonts/ChromiumAATTest.ttf',
167 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
168 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
169 ],
170 },
171 }],
172 ['use_x11 == 1', {
173 'copies': [{
174 'destination': '<(PRODUCT_DIR)',
175 'files': [
176 'resources/fonts/AHEM____.TTF',
177 'resources/fonts/fonts.conf',
178 '../../third_party/gardiner_mod/GardinerModBug.ttf',
179 '../../third_party/gardiner_mod/GardinerModCat.ttf',
180 ]
181 }],
182 }],
183 ['OS=="android"', {
184 'copies': [{
185 'destination': '<(PRODUCT_DIR)',
186 'files': [
187 'resources/fonts/AHEM____.TTF',
188 'resources/fonts/android_main_fonts.xml',
189 'resources/fonts/android_fallback_fonts.xml',
190 ]
191 }],
192 }],
193 ],
194 },
195 ],
196 'conditions': [
197 ['OS=="mac" or OS=="win"', {
198 'targets': [
199 {
200 # GN version: //components/test_runner:layout_test_helper
201 'target_name': 'layout_test_helper',
202 'type': 'executable',
jochen73e711c2015-06-03 10:01:46203 'sources': [
204 'helper/layout_test_helper_mac.mm',
205 'helper/layout_test_helper_win.cc',
206 ],
207 'conditions': [
208 ['OS=="mac"', {
209 'link_settings': {
210 'libraries': [
211 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
212 ],
213 },
214 }],
215 ],
216 },
217 ],
218 }], # OS=="mac" or OS=="win"
219 ]
220}