blob: e3777feff71b668efb725193d2c96fd0b2397fb8 [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',
lukaszafd124602016-04-01 16:53:30107 'web_frame_test_client.cc',
108 'web_frame_test_client.h',
jochen73e711c2015-06-03 10:01:46109 'web_frame_test_proxy.h',
110 'web_task.cc',
111 'web_task.h',
112 'web_test_delegate.h',
113 'web_test_interfaces.cc',
114 'web_test_interfaces.h',
115 'web_test_proxy.cc',
116 'web_test_proxy.h',
117 'web_test_runner.h',
118 ],
119 'msvs_settings': {
120 'VCLinkerTool': {
121 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
122 },
123 },
124 'conditions': [
jochen73e711c2015-06-03 10:01:46125 ['OS=="win"', {
126 'configurations': {
127 'Debug_Base': {
128 'msvs_settings': {
129 'VCLinkerTool': {
130 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
131 },
132 },
133 },
134 },
135 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
136 'msvs_disabled_warnings': [ 4267, ],
137 }], # OS=="win"
138 ],
139 },
140 {
141 # GN version: //components/test_runner:resources
142 'target_name': 'resources',
143 'type': 'none',
144 'conditions': [
145 ['OS=="win"', {
146 'copies': [{
147 'destination': '<(PRODUCT_DIR)',
148 'files': ['resources/fonts/AHEM____.TTF'],
149 }],
150 }],
151 ['OS=="mac"', {
152 'all_dependent_settings': {
153 'mac_bundle_resources': [
154 'resources/fonts/AHEM____.TTF',
155 'resources/fonts/ChromiumAATTest.ttf',
156 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
157 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
158 ],
159 },
160 }],
161 ['use_x11 == 1', {
162 'copies': [{
163 'destination': '<(PRODUCT_DIR)',
164 'files': [
165 'resources/fonts/AHEM____.TTF',
166 'resources/fonts/fonts.conf',
167 '../../third_party/gardiner_mod/GardinerModBug.ttf',
168 '../../third_party/gardiner_mod/GardinerModCat.ttf',
169 ]
170 }],
171 }],
172 ['OS=="android"', {
173 'copies': [{
174 'destination': '<(PRODUCT_DIR)',
175 'files': [
176 'resources/fonts/AHEM____.TTF',
177 'resources/fonts/android_main_fonts.xml',
178 'resources/fonts/android_fallback_fonts.xml',
179 ]
180 }],
181 }],
182 ],
183 },
184 ],
185 'conditions': [
186 ['OS=="mac" or OS=="win"', {
187 'targets': [
188 {
189 # GN version: //components/test_runner:layout_test_helper
190 'target_name': 'layout_test_helper',
191 'type': 'executable',
jochen73e711c2015-06-03 10:01:46192 'sources': [
193 'helper/layout_test_helper_mac.mm',
194 'helper/layout_test_helper_win.cc',
195 ],
196 'conditions': [
197 ['OS=="mac"', {
198 'link_settings': {
199 'libraries': [
200 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
201 ],
202 },
203 }],
204 ],
205 },
206 ],
207 }], # OS=="mac" or OS=="win"
208 ]
209}