Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: ui/base/ui_base_tests.gyp

Issue 2306743002: Nukes the gyp/gypi files in ui (Closed)
Patch Set: keep webui Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/base/ui_base_tests_bundle.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2013 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 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 # GN version: //ui/base:unittests
12 'target_name': 'ui_base_unittests',
13 'type': '<(gtest_target_type)',
14 'dependencies': [
15 '../../base/base.gyp:base',
16 '../../base/base.gyp:test_support_base',
17 '../../net/net.gyp:net',
18 '../../skia/skia.gyp:skia',
19 '../../testing/gmock.gyp:gmock',
20 '../../testing/gtest.gyp:gtest',
21 '../../third_party/icu/icu.gyp:icui18n',
22 '../../third_party/icu/icu.gyp:icuuc',
23 '../../url/url.gyp:url_lib',
24 '../display/display.gyp:display',
25 '../events/events.gyp:events_base',
26 '../gfx/gfx.gyp:gfx_test_support',
27 '../resources/ui_resources.gyp:ui_resources',
28 '../resources/ui_resources.gyp:ui_test_pak',
29 '../strings/ui_strings.gyp:ui_strings',
30 'ime/ui_base_ime.gyp:ui_base_ime',
31 'ui_base.gyp:ui_base',
32 'ui_base.gyp:ui_data_pack',
33 'ui_base.gyp:ui_base_test_support',
34 ],
35 # iOS uses a small subset of ui. common_sources are the only files that
36 # are built on iOS.
37 'common_sources' : [
38 # Note: file list duplicated in GN build.
39 'clipboard/clipboard_mac_unittest.mm',
40 'clipboard/clipboard_util_mac_unittest.mm',
41 'l10n/l10n_util_mac_unittest.mm',
42 'l10n/l10n_util_unittest.cc',
43 'l10n/l10n_util_win_unittest.cc',
44 'l10n/time_format_unittest.cc',
45 'layout_unittest.cc',
46 'models/tree_node_iterator_unittest.cc',
47 'resource/data_pack_literal.cc',
48 'resource/data_pack_unittest.cc',
49 'resource/resource_bundle_unittest.cc',
50 'resource/scale_factor_unittest.cc',
51 'template_expressions_unittest.cc',
52 'test/run_all_unittests.cc',
53 ],
54 'all_sources': [
55 # Note: file list duplicated in GN build.
56 '<@(_common_sources)',
57 'accelerators/accelerator_manager_unittest.cc',
58 'accelerators/accelerator_unittest.cc',
59 'accelerators/menu_label_accelerator_util_linux_unittest.cc',
60 'clipboard/custom_data_helper_unittest.cc',
61 'cocoa/base_view_unittest.mm',
62 'cocoa/cocoa_base_utils_unittest.mm',
63 'cocoa/constrained_window/constrained_window_animation_unittest.mm',
64 'cocoa/controls/blue_label_button_unittest.mm',
65 'cocoa/controls/hover_image_menu_button_unittest.mm',
66 'cocoa/controls/hyperlink_button_cell_unittest.mm',
67 'cocoa/controls/hyperlink_text_view_unittest.mm',
68 'cocoa/focus_tracker_unittest.mm',
69 'cocoa/fullscreen_window_manager_unittest.mm',
70 'cocoa/hover_image_button_unittest.mm',
71 'cocoa/menu_controller_unittest.mm',
72 'cocoa/nscolor_additions_unittest.mm',
73 'cocoa/nsgraphics_context_additions_unittest.mm',
74 'cocoa/nsview_additions_unittest.mm',
75 'cocoa/three_part_image_unittest.mm',
76 'cocoa/tracking_area_unittest.mm',
77 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
78 'ime/candidate_window_unittest.cc',
79 'ime/chromeos/character_composer_unittest.cc',
80 'ime/composition_text_unittest.cc',
81 'ime/composition_text_util_pango_unittest.cc',
82 'ime/input_method_base_unittest.cc',
83 'ime/input_method_chromeos_unittest.cc',
84 'ime/win/imm32_manager_unittest.cc',
85 'ime/win/tsf_input_scope_unittest.cc',
86 'material_design/material_design_controller_unittest.cc',
87 'models/list_model_unittest.cc',
88 'models/list_selection_model_unittest.cc',
89 'models/tree_node_model_unittest.cc',
90 'test/data/resource.h',
91 'test/scoped_fake_nswindow_fullscreen_unittest.mm',
92 'test/test_clipboard_unittest.cc',
93 'text/bytes_formatting_unittest.cc',
94 'user_activity/user_activity_detector_unittest.cc',
95 'view_prop_unittest.cc',
96 'webui/web_ui_util_unittest.cc',
97 'x/selection_requestor_unittest.cc',
98 ],
99 'include_dirs': [
100 '../..',
101 ],
102 'conditions': [
103 ['OS!="ios"', {
104 'sources' : [ '<@(_all_sources)' ],
105 }, { # OS=="ios"
106 'sources' : [ '<@(_common_sources)' ],
107 # The ResourceBundle unittest expects a locale.pak file to exist in
108 # the bundle for English-US. Copy it in from where it was generated
109 # by ui_resources.gyp:ui_test_pak.
110 'mac_bundle_resources': [
111 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak',
112 ],
113 'actions': [
114 {
115 'action_name': 'copy_test_data',
116 'variables': {
117 'test_data_files': [
118 'test/data',
119 ],
120 'test_data_prefix' : 'ui/base',
121 },
122 'includes': [ '../../build/copy_test_data_ios.gypi' ],
123 },
124 ],
125 }],
126 ['OS == "linux" and use_aura==1 and chromeos==0', {
127 'sources': [
128 'ime/input_method_auralinux_unittest.cc',
129 ]
130 }],
131 ['OS == "win"', {
132 'sources': [
133 'dragdrop/os_exchange_data_win_unittest.cc',
134 'win/hwnd_subclass_unittest.cc',
135 'win/open_file_name_win_unittest.cc',
136 'win/osk_display_manager_unittest.cc',
137 ],
138 'msvs_settings': {
139 'VCLinkerTool': {
140 'DelayLoadDLLs': [
141 'd2d1.dll',
142 'd3d10_1.dll',
143 ],
144 'AdditionalDependencies': [
145 'd2d1.lib',
146 'd3d10_1.lib',
147 ],
148 },
149 },
150 'link_settings': {
151 'libraries': [
152 '-limm32.lib',
153 '-loleacc.lib',
154 ],
155 },
156 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
157 'msvs_disabled_warnings': [ 4267, ],
158 }],
159 ['OS == "android"', {
160 'dependencies': [
161 '../../testing/android/native_test.gyp:native_test_native_code',
162 ],
163 'sources!': [
164 'user_activity/user_activity_detector_unittest.cc',
165 ],
166 }],
167 ['use_pango == 1', {
168 'dependencies': [
169 '../../build/linux/system.gyp:pangocairo',
170 ],
171 }],
172 ['use_x11==1', {
173 'dependencies': [
174 '../../build/linux/system.gyp:x11',
175 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
176 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform' ,
177 '../gfx/x/gfx_x11.gyp:gfx_x11',
178 'x/ui_base_x.gyp:ui_base_x',
179 ],
180 }],
181 ['OS!="win" or use_aura==0', {
182 'sources!': [
183 'view_prop_unittest.cc',
184 ],
185 }],
186 ['use_x11==1 and use_aura==1', {
187 'sources': [
188 'cursor/cursor_loader_x11_unittest.cc',
189 ],
190 }],
191 ['OS=="mac"', {
192 'dependencies': [
193 '../../third_party/mozilla/mozilla.gyp:mozilla',
194 '../events/events.gyp:events_test_support',
195 'ui_base_tests_bundle',
196 ],
197 'conditions': [
198 ['component=="static_library"', {
199 # Needed for mozilla.gyp.
200 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
201 }],
202 ],
203 }],
204 ['use_aura==1 or toolkit_views==1', {
205 'sources': [
206 'dragdrop/os_exchange_data_unittest.cc',
207 ],
208 'dependencies': [
209 '../events/events.gyp:events',
210 '../events/events.gyp:events_base',
211 '../events/events.gyp:events_test_support',
212 '../events/platform/events_platform.gyp:events_platform',
213 ],
214 }],
215 ['chromeos==1', {
216 'dependencies': [
217 '../../chromeos/chromeos.gyp:chromeos',
218 ],
219 'sources!': [
220 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
221 'x/selection_requestor_unittest.cc',
222 ],
223 }],
224 ['use_x11==0', {
225 'sources!': [
226 'ime/composition_text_util_pango_unittest.cc',
227 'ime/input_method_chromeos_unittest.cc',
228 ],
229 }],
230 ],
231 'target_conditions': [
232 ['OS == "ios"', {
233 'sources/': [
234 # Pull in specific Mac files for iOS (which have been filtered out
235 # by file name rules).
236 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'],
237 ],
238 }],
239 ],
240 },
241 ],
242 'conditions': [
243 # Mac target to build a test Framework bundle to mock out resource loading.
244 ['OS == "mac"', {
245 'targets': [
246 {
247 'target_name': 'ui_base_tests_bundle',
248 'type': 'shared_library',
249 'dependencies': [
250 '../resources/ui_resources.gyp:ui_test_pak',
251 ],
252 'includes': [ 'ui_base_tests_bundle.gypi' ],
253 # ui_base_tests_bundle doesn't actually contain a shared library and
254 # therefore should not depend on sanitizer_options or any other
255 # libraries. Adding such a dependency will result in creating a
256 # broken shared library within the bundle.
257 'conditions': [
258 ['use_sanitizer_options==1', {
259 'dependencies!': [
260 '../../build/sanitizers/sanitizers.gyp:sanitizer_options',
261 ],
262 }],
263 ],
264 },
265 ],
266 }],
267 ['OS == "android"', {
268 'targets': [
269 {
270 'target_name': 'ui_base_unittests_apk',
271 'type': 'none',
272 'dependencies': [
273 # TODO(tfarina): This is a layer violation and should be removed.
274 # crbug.com/176960
275 # For now this is here as a temporary band-aid to fix the clobber
276 # issue we are seeing when running this target on Android.
277 # crbug.com/374490
278 '../../chrome/chrome_resources.gyp:packed_resources',
279 'ui_base_unittests',
280 ],
281 'variables': {
282 'test_suite_name': 'ui_base_unittests',
283 'isolate_file': 'ui_base_tests.isolate',
284 },
285 'includes': [ '../../build/apk_test.gypi' ],
286 },
287 ],
288 'conditions': [
289 ['test_isolation_mode != "noop"',
290 {
291 'targets': [
292 {
293 'target_name': 'ui_base_unittests_apk_run',
294 'type': 'none',
295 'dependencies': [
296 'ui_base_unittests_apk',
297 ],
298 'includes': [
299 '../../build/isolate.gypi',
300 ],
301 'sources': [
302 'ui_base_unittests_apk.isolate',
303 ],
304 },
305 ],
306 },
307 ],
308 ],
309 }],
310 ['test_isolation_mode != "noop" and OS != "android"', {
311 'targets': [
312 {
313 'target_name': 'ui_base_unittests_run',
314 'type': 'none',
315 'dependencies': [
316 'ui_base_unittests',
317 ],
318 'includes': [
319 '../../build/isolate.gypi',
320 ],
321 'sources': [
322 'ui_base_unittests.isolate',
323 ],
324 'conditions': [
325 ['use_x11 == 1', {
326 'dependencies': [
327 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
328 ],
329 }],
330 ],
331 },
332 ],
333 }],
334 ],
335 }
OLDNEW
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/base/ui_base_tests_bundle.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698