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

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

Issue 757433002: ui/base: Remove ui_unittests target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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 'type': '<(gtest_target_type)',
7 'dependencies': [
8 '../../base/base.gyp:base',
9 '../../base/base.gyp:test_support_base',
10 '../../net/net.gyp:net',
11 '../../skia/skia.gyp:skia',
12 '../../testing/gmock.gyp:gmock',
13 '../../testing/gtest.gyp:gtest',
14 '../../third_party/icu/icu.gyp:icui18n',
15 '../../third_party/icu/icu.gyp:icuuc',
16 '../../url/url.gyp:url_lib',
17 '../events/events.gyp:events_base',
18 '../gfx/gfx.gyp:gfx_test_support',
19 '../resources/ui_resources.gyp:ui_resources',
20 '../resources/ui_resources.gyp:ui_test_pak',
21 '../strings/ui_strings.gyp:ui_strings',
22 'ui_base.gyp:ui_base',
23 'ui_base.gyp:ui_base_test_support',
24 ],
25 # iOS uses a small subset of ui. common_sources are the only files that
26 # are built on iOS.
27 'common_sources' : [
28 # Note: file list duplicated in GN build.
29 'layout_unittest.cc',
30 'l10n/l10n_util_mac_unittest.mm',
31 'l10n/l10n_util_unittest.cc',
32 'l10n/l10n_util_win_unittest.cc',
33 'l10n/time_format_unittest.cc',
34 'models/tree_node_iterator_unittest.cc',
35 'resource/data_pack_literal.cc',
36 'resource/data_pack_unittest.cc',
37 'resource/resource_bundle_unittest.cc',
38 'test/run_all_unittests.cc',
39 ],
40 'all_sources': [
41 # Note: file list duplicated in GN build.
42 '<@(_common_sources)',
43 'accelerators/accelerator_manager_unittest.cc',
44 'accelerators/menu_label_accelerator_util_linux_unittest.cc',
45 'clipboard/custom_data_helper_unittest.cc',
46 'cocoa/base_view_unittest.mm',
47 'cocoa/cocoa_base_utils_unittest.mm',
48 'cocoa/controls/blue_label_button_unittest.mm',
49 'cocoa/controls/hover_image_menu_button_unittest.mm',
50 'cocoa/controls/hyperlink_button_cell_unittest.mm',
51 'cocoa/controls/hyperlink_text_view_unittest.mm',
52 'cocoa/focus_tracker_unittest.mm',
53 'cocoa/fullscreen_window_manager_unittest.mm',
54 'cocoa/hover_image_button_unittest.mm',
55 'cocoa/menu_controller_unittest.mm',
56 'cocoa/nsgraphics_context_additions_unittest.mm',
57 'cocoa/nsview_additions_unittest.mm',
58 'cocoa/tracking_area_unittest.mm',
59 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
60 'ime/candidate_window_unittest.cc',
61 'ime/chromeos/character_composer_unittest.cc',
62 'ime/composition_text_util_pango_unittest.cc',
63 'ime/input_method_base_unittest.cc',
64 'ime/input_method_chromeos_unittest.cc',
65 'ime/remote_input_method_win_unittest.cc',
66 'ime/win/imm32_manager_unittest.cc',
67 'ime/win/tsf_input_scope_unittest.cc',
68 'models/list_model_unittest.cc',
69 'models/list_selection_model_unittest.cc',
70 'models/tree_node_model_unittest.cc',
71 'test/test_clipboard_unittest.cc',
72 'test/data/resource.h',
73 'text/bytes_formatting_unittest.cc',
74 'touch/touch_editing_controller_unittest.cc',
75 'view_prop_unittest.cc',
76 'webui/web_ui_util_unittest.cc',
77 'x/selection_requestor_unittest.cc',
78 ],
79 'include_dirs': [
80 '../..',
81 ],
82 'conditions': [
83 ['OS!="ios"', {
84 'sources' : [ '<@(_all_sources)' ],
85 }, { # OS=="ios"
86 'sources' : [ '<@(_common_sources)' ],
87 # The ResourceBundle unittest expects a locale.pak file to exist in
88 # the bundle for English-US. Copy it in from where it was generated
89 # by ui_resources.gyp:ui_test_pak.
90 'mac_bundle_resources': [
91 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak',
92 ],
93 'actions': [
94 {
95 'action_name': 'copy_test_data',
96 'variables': {
97 'test_data_files': [
98 'test/data',
99 ],
100 'test_data_prefix' : 'ui/base',
101 },
102 'includes': [ '../../build/copy_test_data_ios.gypi' ],
103 },
104 ],
105 }],
106 ['OS == "win"', {
107 'sources': [
108 'dragdrop/os_exchange_data_win_unittest.cc',
109 'win/hwnd_subclass_unittest.cc',
110 'win/open_file_name_win_unittest.cc',
111 ],
112 'msvs_settings': {
113 'VCLinkerTool': {
114 'DelayLoadDLLs': [
115 'd2d1.dll',
116 'd3d10_1.dll',
117 ],
118 'AdditionalDependencies': [
119 'd2d1.lib',
120 'd3d10_1.lib',
121 ],
122 },
123 },
124 'link_settings': {
125 'libraries': [
126 '-limm32.lib',
127 '-loleacc.lib',
128 ],
129 },
130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
131 'msvs_disabled_warnings': [ 4267, ],
132 }],
133 ['OS == "android"', {
134 'dependencies': [
135 '../../testing/android/native_test.gyp:native_test_native_code',
136 ],
137 'sources!': [
138 'touch/touch_editing_controller_unittest.cc',
139 ],
140 }],
141 ['use_pango == 1', {
142 'dependencies': [
143 '../../build/linux/system.gyp:pangocairo',
144 ],
145 'conditions': [
146 ['use_allocator!="none"', {
147 'dependencies': [
148 '../../base/allocator/allocator.gyp:allocator',
149 ],
150 }],
151 ],
152 }],
153 ['use_x11==1', {
154 'dependencies': [
155 '../../build/linux/system.gyp:x11',
156 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
157 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
158 '../gfx/x/gfx_x11.gyp:gfx_x11',
159 ],
160 }],
161 ['OS!="win" or use_aura==0', {
162 'sources!': [
163 'view_prop_unittest.cc',
164 ],
165 }],
166 ['use_x11==1 and use_aura==1', {
167 'sources': [
168 'cursor/cursor_loader_x11_unittest.cc',
169 ],
170 }],
171 ['OS=="mac"', {
172 'dependencies': [
173 '../../third_party/mozilla/mozilla.gyp:mozilla',
174 '../events/events.gyp:events_test_support',
175 'ui_base_tests_bundle',
176 ],
177 'conditions': [
178 ['component=="static_library"', {
179 # Needed for mozilla.gyp.
180 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
181 }],
182 ],
183 }],
184 ['use_aura==1 or toolkit_views==1', {
185 'sources': [
186 'dragdrop/os_exchange_data_unittest.cc',
187 ],
188 'dependencies': [
189 '../events/events.gyp:events',
190 '../events/events.gyp:events_base',
191 '../events/events.gyp:events_test_support',
192 '../events/platform/events_platform.gyp:events_platform',
193 ],
194 }],
195 ['chromeos==1', {
196 'dependencies': [
197 '../../chromeos/chromeos.gyp:chromeos',
198 ],
199 'sources!': [
200 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
201 'x/selection_requestor_unittest.cc',
202 ],
203 }],
204 ['use_x11==0', {
205 'sources!': [
206 'ime/chromeos/character_composer_unittest.cc',
207 'ime/input_method_chromeos_unittest.cc',
208 'ime/composition_text_util_pango_unittest.cc',
209 ],
210 }],
211 ],
212 'target_conditions': [
213 ['OS == "ios"', {
214 'sources/': [
215 # Pull in specific Mac files for iOS (which have been filtered out
216 # by file name rules).
217 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'],
218 ],
219 }],
220 ],
221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698