cc: Convert LTHCommon tests to LayerImpl
[chromium-blink-merge.git] / components / test_runner / test_runner.gyp
blob8c9eedf388834a9631f334d5f7c5fb6cb2a1d612
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.
6   '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   },
12   'targets': [
13     {
14       # GN version: //components/test_runner:test_runner
15       'target_name': 'test_runner',
16       'type': '<(component)',
17       'defines': [
18         'TEST_RUNNER_IMPLEMENTATION',
19       ],
20       'dependencies': [
21         'resources',
22         '../../base/base.gyp:base',
23         '../../base/base.gyp:base_i18n',
24         '../../cc/cc.gyp:cc',
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',
35       ],
36       'include_dirs': [
37         '..',
38       ],
39       # Note: sources list duplicated in GN build.
40       'sources': [
41         'accessibility_controller.cc',
42         'accessibility_controller.h',
43         'app_banner_client.cc',
44         'app_banner_client.h',
45         'event_sender.cc',
46         'event_sender.h',
47         'gamepad_controller.cc',
48         'gamepad_controller.h',
49         'mock_color_chooser.cc',
50         'mock_color_chooser.h',
51         'mock_constraints.cc',
52         'mock_constraints.h',
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',
60         'mock_spell_check.h',
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',
81         'test_common.cc',
82         'test_common.h',
83         'test_interfaces.cc',
84         'test_interfaces.h',
85         'test_plugin.cc',
86         'test_plugin.h',
87         'test_runner.cc',
88         'test_runner.h',
89         'test_runner_export.h',
90         'test_preferences.cc',
91         'test_preferences.h',
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',
99         'web_task.cc',
100         'web_task.h',
101         'web_test_delegate.h',
102         'web_test_interfaces.cc',
103         'web_test_interfaces.h',
104         'web_test_proxy.cc',
105         'web_test_proxy.h',
106         'web_test_runner.h',
107       ],
108       'msvs_settings': {
109         'VCLinkerTool': {
110           'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
111         },
112       },
113       'conditions': [
114         ['OS=="win" and win_use_allocator_shim==1', {
115           'dependencies': [
116             '../../base/allocator/allocator.gyp:allocator',
117           ],
118         }],
119         ['OS=="win"', {
120           'configurations': {
121             'Debug_Base': {
122               'msvs_settings': {
123                 'VCLinkerTool': {
124                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
125                 },
126               },
127             },
128           },
129           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
130           'msvs_disabled_warnings': [ 4267, ],
131         }],  # OS=="win"
132       ],
133     },
134     {
135       # GN version: //components/test_runner:resources
136       'target_name': 'resources',
137       'type': 'none',
138       'conditions': [
139         ['OS=="win"', {
140           'copies': [{
141             'destination': '<(PRODUCT_DIR)',
142             'files': ['resources/fonts/AHEM____.TTF'],
143           }],
144         }],
145         ['OS=="mac"', {
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',
152             ],
153           },
154         }],
155         ['use_x11 == 1', {
156           'copies': [{
157             'destination': '<(PRODUCT_DIR)',
158             'files': [
159               'resources/fonts/AHEM____.TTF',
160               'resources/fonts/fonts.conf',
161               '../../third_party/gardiner_mod/GardinerModBug.ttf',
162               '../../third_party/gardiner_mod/GardinerModCat.ttf',
163             ]
164           }],
165         }],
166         ['OS=="android"', {
167           'copies': [{
168             'destination': '<(PRODUCT_DIR)',
169             'files': [
170               'resources/fonts/AHEM____.TTF',
171               'resources/fonts/android_main_fonts.xml',
172               'resources/fonts/android_fallback_fonts.xml',
173             ]
174           }],
175         }],
176       ],
177     },
178   ],
179   'conditions': [
180     ['OS=="mac" or OS=="win"', {
181       'targets': [
182         {
183           # GN version: //components/test_runner:layout_test_helper
184           'target_name': 'layout_test_helper',
185           'type': 'executable',
186           'sources': [
187             'helper/layout_test_helper_mac.mm',
188             'helper/layout_test_helper_win.cc',
189           ],
190           'conditions': [
191             ['OS=="mac"', {
192               'link_settings': {
193                 'libraries': [
194                   '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
195                 ],
196               },
197             }],
198           ],
199         },
200       ],
201     }],  # OS=="mac" or OS=="win"
202   ]