blob: 1d3e9d8e5daac7191bc46ed00a668a115c541c02 [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',
jochen73e711c2015-06-03 10:01:4637 '../../v8/tools/gyp/v8.gyp:v8',
38 ],
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',
lukaszaa8960462016-01-27 22:27:3354 'layout_dump.cc',
55 'layout_dump.h',
lukasza083b4f12016-03-24 16:51:4356 'layout_test_runtime_flags.cc',
57 'layout_test_runtime_flags.h',
jochen73e711c2015-06-03 10:01:4658 'mock_color_chooser.cc',
59 'mock_color_chooser.h',
jochen73e711c2015-06-03 10:01:4660 'mock_credential_manager_client.cc',
61 'mock_credential_manager_client.h',
62 'mock_grammar_check.cc',
63 'mock_grammar_check.h',
64 'mock_screen_orientation_client.cc',
65 'mock_screen_orientation_client.h',
66 'mock_spell_check.cc',
67 'mock_spell_check.h',
68 'mock_web_audio_device.cc',
69 'mock_web_audio_device.h',
70 'mock_web_media_stream_center.cc',
71 'mock_web_media_stream_center.h',
72 'mock_web_midi_accessor.cc',
73 'mock_web_midi_accessor.h',
74 'mock_web_speech_recognizer.cc',
75 'mock_web_speech_recognizer.h',
76 'mock_web_theme_engine.cc',
77 'mock_web_theme_engine.h',
78 'mock_web_user_media_client.cc',
79 'mock_web_user_media_client.h',
80 'mock_webrtc_data_channel_handler.cc',
81 'mock_webrtc_data_channel_handler.h',
82 'mock_webrtc_dtmf_sender_handler.cc',
83 'mock_webrtc_dtmf_sender_handler.h',
84 'mock_webrtc_peer_connection_handler.cc',
85 'mock_webrtc_peer_connection_handler.h',
86 'spell_check_client.cc',
87 'spell_check_client.h',
88 'test_common.cc',
89 'test_common.h',
jochen73e711c2015-06-03 10:01:4690 'test_interfaces.cc',
91 'test_interfaces.h',
92 'test_plugin.cc',
93 'test_plugin.h',
jochene9ba6dd2016-02-23 17:20:4994 'test_preferences.cc',
95 'test_preferences.h',
jochen73e711c2015-06-03 10:01:4696 'test_runner.cc',
97 'test_runner.h',
jochen746754c52015-06-05 16:40:4198 'test_runner_export.h',
jochen73e711c2015-06-03 10:01:4699 'text_input_controller.cc',
100 'text_input_controller.h',
lukaszac9cbe712016-03-14 14:06:43101 'tracked_dictionary.cc',
102 'tracked_dictionary.h',
jochen73e711c2015-06-03 10:01:46103 'web_ax_object_proxy.cc',
104 'web_ax_object_proxy.h',
105 'web_content_settings.cc',
106 'web_content_settings.h',
107 'web_frame_test_proxy.h',
108 'web_task.cc',
109 'web_task.h',
110 'web_test_delegate.h',
111 'web_test_interfaces.cc',
112 'web_test_interfaces.h',
113 'web_test_proxy.cc',
114 'web_test_proxy.h',
115 'web_test_runner.h',
116 ],
117 'msvs_settings': {
118 'VCLinkerTool': {
119 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
120 },
121 },
122 'conditions': [
jochen73e711c2015-06-03 10:01:46123 ['OS=="win"', {
124 'configurations': {
125 'Debug_Base': {
126 'msvs_settings': {
127 'VCLinkerTool': {
128 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
129 },
130 },
131 },
132 },
133 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
134 'msvs_disabled_warnings': [ 4267, ],
135 }], # OS=="win"
136 ],
137 },
138 {
139 # GN version: //components/test_runner:resources
140 'target_name': 'resources',
141 'type': 'none',
142 'conditions': [
143 ['OS=="win"', {
144 'copies': [{
145 'destination': '<(PRODUCT_DIR)',
146 'files': ['resources/fonts/AHEM____.TTF'],
147 }],
148 }],
149 ['OS=="mac"', {
150 'all_dependent_settings': {
151 'mac_bundle_resources': [
152 'resources/fonts/AHEM____.TTF',
153 'resources/fonts/ChromiumAATTest.ttf',
154 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
155 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
156 ],
157 },
158 }],
159 ['use_x11 == 1', {
160 'copies': [{
161 'destination': '<(PRODUCT_DIR)',
162 'files': [
163 'resources/fonts/AHEM____.TTF',
164 'resources/fonts/fonts.conf',
165 '../../third_party/gardiner_mod/GardinerModBug.ttf',
166 '../../third_party/gardiner_mod/GardinerModCat.ttf',
167 ]
168 }],
169 }],
170 ['OS=="android"', {
171 'copies': [{
172 'destination': '<(PRODUCT_DIR)',
173 'files': [
174 'resources/fonts/AHEM____.TTF',
175 'resources/fonts/android_main_fonts.xml',
176 'resources/fonts/android_fallback_fonts.xml',
177 ]
178 }],
179 }],
180 ],
181 },
182 ],
183 'conditions': [
184 ['OS=="mac" or OS=="win"', {
185 'targets': [
186 {
187 # GN version: //components/test_runner:layout_test_helper
188 'target_name': 'layout_test_helper',
189 'type': 'executable',
jochen73e711c2015-06-03 10:01:46190 'sources': [
191 'helper/layout_test_helper_mac.mm',
192 'helper/layout_test_helper_win.cc',
193 ],
194 'conditions': [
195 ['OS=="mac"', {
196 'link_settings': {
197 'libraries': [
198 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
199 ],
200 },
201 }],
202 ],
203 },
204 ],
205 }], # OS=="mac" or OS=="win"
206 ]
207}