Rename GDataSystemService to DriveSystemService
[chromium-blink-merge.git] / ui / ui_unittests.gypi
blob1fc70b7e653d239f8c55ace8fca91b640a4d7c14
1 # Copyright (c) 2012 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   'targets': [
7     {
8       'target_name': 'ui_test_support',
9       'type': 'static_library',
10       'includes': [
11         'base/ime/ime_test_support.gypi',
12       ],
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../testing/gtest.gyp:gtest',
16       ],
17       'sources': [
18         'base/test/cocoa_test_event_utils.h',
19         'base/test/cocoa_test_event_utils.mm',
20         'base/test/ui_cocoa_test_helper.h',
21         'base/test/ui_cocoa_test_helper.mm',
22         'base/test/dummy_input_method.cc',
23         'base/test/dummy_input_method.h',
24       ],
25       'include_dirs': [
26         '../',
27       ],
28       'conditions': [
29         ['chromeos==1', {
30           'dependencies': [
31             '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
32             '../skia/skia.gyp:skia',
33           ]
34         }],
35       ],
36     },
37     {
38       'target_name': 'ui_unittests',
39       'type': '<(gtest_target_type)',
40       'includes': [
41         'base/ime/ime_unittests.gypi',
42       ],
43       'dependencies': [
44         '../base/base.gyp:base',
45         '../base/base.gyp:test_support_base',
46         '../build/temp_gyp/googleurl.gyp:googleurl',
47         '../skia/skia.gyp:skia',
48         '../testing/gmock.gyp:gmock',
49         '../testing/gtest.gyp:gtest',
50         '../third_party/icu/icu.gyp:icui18n',
51         '../third_party/icu/icu.gyp:icuuc',
52         '../third_party/libpng/libpng.gyp:libpng',
53         'ui',
54         'ui_resources',
55         'ui_test_support',
56       ],
57       'sources': [
58         'base/accelerators/accelerator_manager_unittest.cc',
59         'base/animation/animation_container_unittest.cc',
60         'base/animation/animation_unittest.cc',
61         'base/animation/multi_animation_unittest.cc',
62         'base/animation/slide_animation_unittest.cc',
63         'base/clipboard/clipboard_unittest.cc',
64         'base/clipboard/custom_data_helper_unittest.cc',
65         'base/cocoa/base_view_unittest.mm',
66         'base/cocoa/fullscreen_window_manager_unittest.mm',
67         'base/cocoa/events_mac_unittest.mm',
68         'base/cocoa/focus_tracker_unittest.mm',
69         'base/dialogs/select_file_dialog_win_unittest.cc',
70         'base/event_unittest.cc',
71         'base/gtk/gtk_expanded_container_unittest.cc',
72         'base/gtk/gtk_im_context_util_unittest.cc',
73         'base/gtk/menu_label_accelerator_util_unittest.cc',
74         'base/l10n/l10n_util_mac_unittest.mm',
75         'base/l10n/l10n_util_unittest.cc',
76         'base/models/list_model_unittest.cc',
77         'base/models/tree_node_iterator_unittest.cc',
78         'base/models/tree_node_model_unittest.cc',
79         'base/range/range_unittest.cc',
80         'base/range/range_mac_unittest.mm',
81         'base/range/range_win_unittest.cc',
82         'base/resource/data_pack_literal.cc',
83         'base/resource/data_pack_unittest.cc',
84         'base/resource/resource_bundle_unittest.cc',
85         'base/text/bytes_formatting_unittest.cc',
86         'base/test/data/resource.h',
87         'base/text/text_elider_unittest.cc',
88         'base/text/utf16_indexing_unittest.cc',
89         'base/view_prop_unittest.cc',
90         'gfx/blit_unittest.cc',
91         'gfx/canvas_unittest.cc',
92         'gfx/codec/jpeg_codec_unittest.cc',
93         'gfx/codec/png_codec_unittest.cc',
94         'gfx/color_analysis_unittest.cc',
95         'gfx/color_utils_unittest.cc',
96         'gfx/display_unittest.cc',
97         'gfx/font_list_unittest.cc',
98         'gfx/font_unittest.cc',
99         'gfx/image/image_mac_unittest.mm',
100         'gfx/image/image_skia_unittest.cc',
101         'gfx/image/image_unittest.cc',
102         'gfx/image/image_unittest_util.cc',
103         'gfx/image/image_unittest_util.h',
104         'gfx/image/image_unittest_util_mac.mm',
105         'gfx/image/image_util_unittest.cc',
106         'gfx/insets_unittest.cc',
107         'gfx/rect_unittest.cc',
108         'gfx/render_text_unittest.cc',
109         'gfx/screen_unittest.cc',
110         'gfx/shadow_value_unittest.cc',
111         'gfx/skbitmap_operations_unittest.cc',
112         'gfx/skia_util_unittest.cc',
113         'gfx/transform_util_unittest.cc',
114         'gfx/video_decode_acceleration_support_mac_unittest.mm',
115         'test/run_all_unittests.cc',
116         'test/test_suite.cc',
117         'test/test_suite.h',
118       ],
119       'include_dirs': [
120         '../',
121       ],
122       'conditions': [
123         ['OS == "win"', {
124           'sources': [
125             'base/dragdrop/os_exchange_data_win_unittest.cc',
126             'base/native_theme/native_theme_win_unittest.cc',
127             'base/win/hwnd_subclass_unittest.cc',
128             'base/win/tsf_text_store_unittest.cc',
129             'gfx/icon_util_unittest.cc',
130             'gfx/platform_font_win_unittest.cc',
131           ],
132           'include_dirs': [
133             '../..',
134             '../third_party/wtl/include',
135           ],
136           'msvs_settings': {
137             'VCLinkerTool': {
138               'DelayLoadDLLs': [
139                 'd2d1.dll',
140                 'd3d10_1.dll',
141               ],
142               'AdditionalDependencies': [
143                 'd2d1.lib',
144                 'd3d10_1.lib',
145               ],
146             },
147           },
148           'link_settings': {
149             'libraries': [
150               '-limm32.lib',
151               '-loleacc.lib',
152             ],
153           },
154         }],
155         ['OS == "linux"', {
156           'sources': [
157             'gfx/platform_font_pango_unittest.cc',
158           ],
159         }],
160         ['OS == "linux" and toolkit_views==1', {
161           'sources': [
162             'base/x/events_x_unittest.cc',
163           ],
164         }],
165         ['OS != "mac"', {
166           'sources': [
167             'gfx/transform_unittest.cc',
168             'gfx/interpolated_transform_unittest.cc',
169           ],
170         }],
171         ['OS == "android" and gtest_target_type == "shared_library"', {
172           'dependencies': [
173             '../testing/android/native_test.gyp:native_test_native_code',
174           ],
175         }],
176         ['use_glib == 1', {
177           'dependencies': [
178             '../build/linux/system.gyp:pangocairo',
179             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
180             'base/strings/ui_strings.gyp:ui_unittest_strings',
181           ],
182           'conditions': [
183             ['linux_use_tcmalloc==1', {
184                'dependencies': [
185                  '../base/allocator/allocator.gyp:allocator',
186                ],
187             }],
188             ['toolkit_views==1', {
189               'sources!': [
190                 'browser/ui/gtk/gtk_expanded_container_unittest.cc',
191               ],
192             }],
193           ],
194         }],
195         ['toolkit_uses_gtk == 1', {
196           'sources': [
197             'base/dragdrop/gtk_dnd_util_unittest.cc',
198           ],
199           'dependencies': [
200             '../build/linux/system.gyp:gtk',
201           ],
202         }],
203         ['OS=="android" or OS=="ios"', {
204           'sources!': [
205             'gfx/render_text_unittest.cc',
206           ],
207         }],
208         ['OS!="win" or use_aura==0', {
209           'sources!': [
210             'base/view_prop_unittest.cc',
211           ],
212         }],
213         ['use_aura==1 or toolkit_views==1',  {
214           'sources': [
215             'base/gestures/velocity_calculator_unittest.cc',
216           ],
217         }, {
218           'sources!': [
219             'base/event_unittest.cc',
220           ],
221         }],
222         ['use_aura==1', {
223           'sources!': [
224             'base/dialogs/select_file_dialog_win_unittest.cc',
225             'base/dragdrop/os_exchange_data_win_unittest.cc',
226             'base/native_theme/native_theme_win_unittest.cc',
227             'gfx/screen_unittest.cc',
228           ],
229         }],
230       ],
231     },
232   ],
233   'conditions': [
234     # Special target to wrap a gtest_target_type==shared_library
235     # ui_unittests into an android apk for execution.
236     # See base.gyp for TODO(jrg)s about this strategy.
237     ['OS == "android" and gtest_target_type == "shared_library"', {
238       'targets': [
239         {
240           'target_name': 'ui_unittests_apk',
241           'type': 'none',
242           'dependencies': [
243             '../base/base.gyp:base_java',
244             'ui_unittests',
245           ],
246           'variables': {
247             'test_suite_name': 'ui_unittests',
248             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unittests<(SHARED_LIB_SUFFIX)',
249           },
250           'includes': [ '../build/apk_test.gypi' ],
251         },
252       ],
253     }],
254   ],