Pass localized font name of prefs to font settings.
[chromium-blink-merge.git] / ui / ui_unittests.gypi
blob2feb4b0a3fa74c0d780b35ece26c595d690b335b
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       'dependencies': [
10         '../base/base.gyp:base',
11         '../testing/gtest.gyp:gtest',
12       ],
13       'sources': [
14         'base/test/cocoa_test_event_utils.h',
15         'base/test/cocoa_test_event_utils.mm',
16         'base/test/ui_cocoa_test_helper.h',
17         'base/test/ui_cocoa_test_helper.mm',
18       ],
19       'include_dirs': [
20         '../',
21       ],
22       'conditions': [
23         ['OS=="mac"', {
24           'type': 'static_library',
25         }, { # OS != "mac"
26           'type': 'none',
27         }],
28       ],
29     },
30     {
31       'target_name': 'ui_unittests',
32       'type': 'executable',
33       'includes': [
34         'base/ime/ime_unittests.gypi',
35       ],
36       'dependencies': [
37         '../base/base.gyp:base',
38         '../base/base.gyp:test_support_base',
39         '../build/temp_gyp/googleurl.gyp:googleurl',
40         '../skia/skia.gyp:skia',
41         '../testing/gmock.gyp:gmock',
42         '../testing/gtest.gyp:gtest',
43         '../third_party/icu/icu.gyp:icui18n',
44         '../third_party/icu/icu.gyp:icuuc',
45         '../third_party/libpng/libpng.gyp:libpng',
46         'gfx_resources',
47         'ui',
48         'ui_test_support',
49       ],
50       'sources': [
51         'base/accelerators/accelerator_manager_unittest.cc',
52         'base/animation/animation_container_unittest.cc',
53         'base/animation/animation_unittest.cc',
54         'base/animation/multi_animation_unittest.cc',
55         'base/animation/slide_animation_unittest.cc',
56         'base/clipboard/clipboard_unittest.cc',
57         'base/clipboard/custom_data_helper_unittest.cc',
58         'base/cocoa/base_view_unittest.mm',
59         'base/cocoa/fullscreen_window_manager_unittest.mm',
60         'base/cocoa/events_mac_unittest.mm',
61         'base/cocoa/focus_tracker_unittest.mm',
62         'base/gtk/gtk_expanded_container_unittest.cc',
63         'base/gtk/gtk_im_context_util_unittest.cc',
64         'base/l10n/l10n_util_mac_unittest.mm',
65         'base/l10n/l10n_util_unittest.cc',
66         'base/models/list_model_unittest.cc',
67         'base/models/tree_node_iterator_unittest.cc',
68         'base/models/tree_node_model_unittest.cc',
69         'base/range/range_unittest.cc',
70         'base/range/range_mac_unittest.mm',
71         'base/range/range_win_unittest.cc',
72         'base/resource/data_pack_literal.cc',
73         'base/resource/data_pack_unittest.cc',
74         'base/resource/resource_bundle_unittest.cc',
75         'base/text/bytes_formatting_unittest.cc',
76         'base/test/data/resource.h',
77         'base/text/text_elider_unittest.cc',
78         'base/text/utf16_indexing_unittest.cc',
79         'gfx/blit_unittest.cc',
80         'gfx/canvas_unittest.cc',
81         'gfx/codec/jpeg_codec_unittest.cc',
82         'gfx/codec/png_codec_unittest.cc',
83         'gfx/color_analysis_unittest.cc',
84         'gfx/color_utils_unittest.cc',
85         'gfx/font_list_unittest.cc',
86         'gfx/font_unittest.cc',
87         'gfx/image/image_mac_unittest.mm',
88         'gfx/image/image_unittest.cc',
89         'gfx/image/image_unittest_util.cc',
90         'gfx/image/image_unittest_util.h',
91         'gfx/insets_unittest.cc',
92         'gfx/rect_unittest.cc',
93         'gfx/screen_unittest.cc',
94         'gfx/skbitmap_operations_unittest.cc',
95         'gfx/skia_util_unittest.cc',
96         'gfx/transform_util_unittest.cc',
97         'test/run_all_unittests.cc',
98         'test/test_suite.cc',
99         'test/test_suite.h',
100         '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
101       ],
102       'include_dirs': [
103         '../',
104       ],
105       'conditions': [
106         ['OS == "win"', {
107           'sources': [
108             'base/dragdrop/os_exchange_data_win_unittest.cc',
109             'base/view_prop_unittest.cc',
110             # TODO(brettw) re-enable this when the dependencies on WindowImpl are fixed!
111             'gfx/icon_util_unittest.cc',
112             'gfx/native_theme_win_unittest.cc',
113           ],
114           'include_dirs': [
115             '../..',
116             '../third_party/wtl/include',
117           ],
118           'msvs_settings': {
119             'VCLinkerTool': {
120               'DelayLoadDLLs': [
121                 'd2d1.dll',
122                 'd3d10_1.dll',
123               ],
124               'AdditionalDependencies': [
125                 'd2d1.lib',
126                 'd3d10_1.lib',
127               ],
128             },
129           },
130           'link_settings': {
131             'libraries': [
132               '-limm32.lib',
133               '-loleacc.lib',
134             ],
135           },
136         }],
137         ['OS == "linux"', {
138           'sources': [
139             'gfx/platform_font_pango_unittest.cc',
140             'gfx/linux_util_unittest.cc',
141           ],
142         }],
143         ['OS == "linux" and toolkit_views==1', {
144           'sources': [
145             'base/x/events_x_unittest.cc',
146           ],
147         }],
148         ['OS != "mac"', {
149           'sources': [
150             'gfx/transform_unittest.cc',
151             'gfx/interpolated_transform_unittest.cc',
152           ],
153         }],
154         ['use_glib == 1', {
155           'dependencies': [
156             '../build/linux/system.gyp:pangocairo',
157             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
158             'base/strings/ui_strings.gyp:ui_unittest_strings',
159           ],
160           'conditions': [
161             ['linux_use_tcmalloc==1', {
162                'dependencies': [
163                  '../base/allocator/allocator.gyp:allocator',
164                ],
165             }],
166             ['toolkit_views==1', {
167               'sources!': [
168                 'browser/ui/gtk/gtk_expanded_container_unittest.cc',
169               ],
170             }],
171           ],
172         }],
173         ['toolkit_uses_gtk == 1', {
174           'sources': [
175             'base/dragdrop/gtk_dnd_util_unittest.cc',
176           ],
177           'dependencies': [
178             '../build/linux/system.gyp:gtk',
179           ],
180         }],
181         ['toolkit_views==1 and OS!="mac"', {
182           'sources': [
183             'gfx/render_text_unittest.cc',
184           ],
185         }],
186         ['use_aura==1', {
187           'sources!': [
188             'base/view_prop_unittest.cc',
189             'gfx/screen_unittest.cc',
190           ],
191         }],
192       ],
193     },
194   ],