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

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

Issue 522843002: Revert of ui: Move ui_unittests.gyp into ui/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chrome/chrome.gyp ('k') | ui/base/ui_base_tests.isolate » ('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 # TODO(tfarina): Rename this target to ui_base_unittests.
12 # In order to do this we will need to keep this target, add a dummy
13 # ui_base_unittests target that just points to ui_unittests, change
14 # buildbot code to reference the new 'ui_base_unittests' target.
15 # After buildbot is updated, we can make the changes in Chromium and
16 # remove 'ui_unittests' target. crbug.com/331829
17 'target_name': 'ui_unittests',
18 'type': '<(gtest_target_type)',
19 'dependencies': [
20 '../../base/base.gyp:base',
21 '../../base/base.gyp:test_support_base',
22 '../../net/net.gyp:net',
23 '../../skia/skia.gyp:skia',
24 '../../testing/gmock.gyp:gmock',
25 '../../testing/gtest.gyp:gtest',
26 '../../third_party/icu/icu.gyp:icui18n',
27 '../../third_party/icu/icu.gyp:icuuc',
28 '../../url/url.gyp:url_lib',
29 '../events/events.gyp:events_base',
30 '../gfx/gfx.gyp:gfx_test_support',
31 '../resources/ui_resources.gyp:ui_resources',
32 '../resources/ui_resources.gyp:ui_test_pak',
33 '../strings/ui_strings.gyp:ui_strings',
34 'ui_base.gyp:ui_base',
35 'ui_base.gyp:ui_base_test_support',
36 ],
37 # iOS uses a small subset of ui. common_sources are the only files that
38 # are built on iOS.
39 'common_sources' : [
40 # Note: file list duplicated in GN build.
41 'layout_unittest.cc',
42 'l10n/l10n_util_mac_unittest.mm',
43 'l10n/l10n_util_unittest.cc',
44 'l10n/l10n_util_win_unittest.cc',
45 'l10n/time_format_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 'test/run_all_unittests.cc',
51 ],
52 'all_sources': [
53 # Note: file list duplicated in GN build.
54 '<@(_common_sources)',
55 'accelerators/accelerator_manager_unittest.cc',
56 'accelerators/menu_label_accelerator_util_linux_unittest.cc',
57 'clipboard/custom_data_helper_unittest.cc',
58 'cocoa/base_view_unittest.mm',
59 'cocoa/cocoa_base_utils_unittest.mm',
60 'cocoa/controls/blue_label_button_unittest.mm',
61 'cocoa/controls/hover_image_menu_button_unittest.mm',
62 'cocoa/controls/hyperlink_button_cell_unittest.mm',
63 'cocoa/focus_tracker_unittest.mm',
64 'cocoa/fullscreen_window_manager_unittest.mm',
65 'cocoa/hover_image_button_unittest.mm',
66 'cocoa/menu_controller_unittest.mm',
67 'cocoa/nsgraphics_context_additions_unittest.mm',
68 'cocoa/tracking_area_unittest.mm',
69 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
70 'ime/candidate_window_unittest.cc',
71 'ime/chromeos/character_composer_unittest.cc',
72 'ime/composition_text_util_pango_unittest.cc',
73 'ime/input_method_base_unittest.cc',
74 'ime/input_method_chromeos_unittest.cc',
75 'ime/remote_input_method_win_unittest.cc',
76 'ime/win/imm32_manager_unittest.cc',
77 'ime/win/tsf_input_scope_unittest.cc',
78 'models/list_model_unittest.cc',
79 'models/list_selection_model_unittest.cc',
80 'models/tree_node_model_unittest.cc',
81 'test/data/resource.h',
82 'text/bytes_formatting_unittest.cc',
83 'view_prop_unittest.cc',
84 'webui/web_ui_util_unittest.cc',
85 'x/selection_requestor_unittest.cc',
86 ],
87 'include_dirs': [
88 '../..',
89 ],
90 'conditions': [
91 ['OS!="ios"', {
92 'sources' : ['<@(_all_sources)'],
93 }, { # OS=="ios"
94 'sources' : [
95 '<@(_common_sources)',
96 ],
97 # The ResourceBundle unittest expects a locale.pak file to exist in
98 # the bundle for English-US. Copy it in from where it was generated
99 # by ui_resources.gyp:ui_test_pak.
100 'mac_bundle_resources': [
101 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak',
102 ],
103 'actions': [
104 {
105 'action_name': 'copy_test_data',
106 'variables': {
107 'test_data_files': [
108 'test/data',
109 ],
110 'test_data_prefix' : 'base',
111 },
112 'includes': [ '../../build/copy_test_data_ios.gypi' ],
113 },
114 ],
115 }],
116 ['OS == "win"', {
117 'sources': [
118 'dragdrop/os_exchange_data_win_unittest.cc',
119 'win/hwnd_subclass_unittest.cc',
120 'win/open_file_name_win_unittest.cc',
121 ],
122 'msvs_settings': {
123 'VCLinkerTool': {
124 'DelayLoadDLLs': [
125 'd2d1.dll',
126 'd3d10_1.dll',
127 ],
128 'AdditionalDependencies': [
129 'd2d1.lib',
130 'd3d10_1.lib',
131 ],
132 },
133 },
134 'link_settings': {
135 'libraries': [
136 '-limm32.lib',
137 '-loleacc.lib',
138 ],
139 },
140 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
141 'msvs_disabled_warnings': [ 4267, ],
142 }],
143 ['OS == "android"', {
144 'dependencies': [
145 '../../testing/android/native_test.gyp:native_test_native_code',
146 ],
147 }],
148 ['use_pango == 1', {
149 'dependencies': [
150 '../../build/linux/system.gyp:pangocairo',
151 ],
152 'conditions': [
153 ['use_allocator!="none"', {
154 'dependencies': [
155 '../../base/allocator/allocator.gyp:allocator',
156 ],
157 }],
158 ],
159 }],
160 ['use_x11==1', {
161 'dependencies': [
162 '../../build/linux/system.gyp:x11',
163 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
164 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform' ,
165 '../gfx/x/gfx_x11.gyp:gfx_x11',
166 ],
167 }],
168 ['OS!="win" or use_aura==0', {
169 'sources!': [
170 'view_prop_unittest.cc',
171 ],
172 }],
173 ['use_x11==1 and use_aura==1', {
174 'sources': [
175 'cursor/cursor_loader_x11_unittest.cc',
176 ],
177 }],
178 ['OS=="mac"', {
179 'dependencies': [
180 '../../third_party/mozilla/mozilla.gyp:mozilla',
181 '../events/events.gyp:events_test_support',
182 'ui_base_tests_bundle',
183 ],
184 'conditions': [
185 ['component=="static_library"', {
186 # Needed for mozilla.gyp.
187 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
188 }],
189 ],
190 }],
191 ['use_aura==1 or toolkit_views==1', {
192 'sources': [
193 'dragdrop/os_exchange_data_unittest.cc',
194 ],
195 'dependencies': [
196 '../events/events.gyp:events',
197 '../events/events.gyp:events_base',
198 '../events/events.gyp:events_test_support',
199 '../events/platform/events_platform.gyp:events_platform',
200 ],
201 }],
202 ['chromeos==1', {
203 'dependencies': [
204 '../../chromeos/chromeos.gyp:chromeos',
205 '../aura/aura.gyp:aura_test_support',
206 '../chromeos/ui_chromeos.gyp:ui_chromeos',
207 '../events/events.gyp:gesture_detection',
208 ],
209 'sources': [
210 '../chromeos/touch_exploration_controller_unittest.cc'
211 ],
212 'sources!': [
213 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
214 'x/selection_requestor_unittest.cc',
215 ],
216 }],
217 ['use_x11==0', {
218 'sources!': [
219 'ime/chromeos/character_composer_unittest.cc',
220 'ime/input_method_chromeos_unittest.cc',
221 'ime/composition_text_util_pango_unittest.cc',
222 ],
223 }],
224 ],
225 'target_conditions': [
226 ['OS == "ios"', {
227 'sources/': [
228 # Pull in specific Mac files for iOS (which have been filtered out
229 # by file name rules).
230 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'],
231 ],
232 }],
233 ],
234 },
235 ],
236 'conditions': [
237 # Mac target to build a test Framework bundle to mock out resource loading.
238 ['OS == "mac"', {
239 'targets': [
240 {
241 'target_name': 'ui_base_tests_bundle',
242 'type': 'shared_library',
243 'dependencies': [
244 '../resources/ui_resources.gyp:ui_test_pak',
245 ],
246 'includes': [ 'ui_base_tests_bundle.gypi' ],
247 },
248 ],
249 }],
250 ['OS == "android"', {
251 'targets': [
252 {
253 'target_name': 'ui_unittests_apk',
254 'type': 'none',
255 'dependencies': [
256 'ui_unittests',
257 ],
258 'variables': {
259 'test_suite_name': 'ui_unittests',
260 },
261 'includes': [ '../../build/apk_test.gypi' ],
262 },
263 ],
264 }],
265 ],
266 }
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | ui/base/ui_base_tests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698