blob: f05215cea7068620cebb10b0c97b1bf8a46befd6 [file] [log] [blame]
[email protected]8d901a82012-01-04 19:41:301# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]6ecdfa3f2011-03-18 17:24:392# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'targets': [
7 {
[email protected]e5338112011-09-08 22:14:568 'target_name': 'ui_test_support',
[email protected]3c8cd8192012-05-15 16:48:149 'type': 'static_library',
[email protected]e6c896f12012-05-31 11:48:2010 'includes': [
11 'base/ime/ime_test_support.gypi',
12 ],
[email protected]e5338112011-09-08 22:14:5613 'dependencies': [
14 '../base/base.gyp:base',
15 '../testing/gtest.gyp:gtest',
16 ],
17 'sources': [
[email protected]be33ec52011-09-09 20:07:1718 'base/test/cocoa_test_event_utils.h',
19 'base/test/cocoa_test_event_utils.mm',
[email protected]e5338112011-09-08 22:14:5620 'base/test/ui_cocoa_test_helper.h',
21 'base/test/ui_cocoa_test_helper.mm',
[email protected]3c8cd8192012-05-15 16:48:1422 'base/test/dummy_input_method.cc',
23 'base/test/dummy_input_method.h',
[email protected]e5338112011-09-08 22:14:5624 ],
25 'include_dirs': [
26 '../',
27 ],
[email protected]e6c896f12012-05-31 11:48:2028 'conditions': [
29 ['chromeos==1', {
30 'dependencies': [
31 '../chromeos/chromeos.gyp:chromeos_test_support',
32 '../skia/skia.gyp:skia',
33 ]
34 }],
35 ],
[email protected]e5338112011-09-08 22:14:5636 },
37 {
[email protected]6ecdfa3f2011-03-18 17:24:3938 'target_name': 'ui_unittests',
[email protected]c205e0c2012-05-05 03:11:3839 'type': '<(gtest_target_type)',
[email protected]78fcae062012-01-12 07:03:5940 'includes': [
41 'base/ime/ime_unittests.gypi',
42 ],
[email protected]6ecdfa3f2011-03-18 17:24:3943 'dependencies': [
44 '../base/base.gyp:base',
45 '../base/base.gyp:test_support_base',
[email protected]ea47b6a2011-07-17 19:39:4246 '../build/temp_gyp/googleurl.gyp:googleurl',
[email protected]6ecdfa3f2011-03-18 17:24:3947 '../skia/skia.gyp:skia',
48 '../testing/gmock.gyp:gmock',
49 '../testing/gtest.gyp:gtest',
[email protected]c743d4c72011-08-31 22:15:4850 '../third_party/icu/icu.gyp:icui18n',
51 '../third_party/icu/icu.gyp:icuuc',
[email protected]17abeb42012-03-08 12:38:3252 '../third_party/libpng/libpng.gyp:libpng',
[email protected]e5338112011-09-08 22:14:5653 'ui',
[email protected]b74b4882012-05-26 04:29:3454 'ui_resources_standard',
[email protected]e5338112011-09-08 22:14:5655 'ui_test_support',
[email protected]6ecdfa3f2011-03-18 17:24:3956 ],
57 'sources': [
[email protected]095c8032012-03-10 10:09:2758 'base/accelerators/accelerator_manager_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:3959 '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',
[email protected]9d77eaa2011-12-05 20:32:2464 'base/clipboard/custom_data_helper_unittest.cc',
[email protected]e5338112011-09-08 22:14:5665 'base/cocoa/base_view_unittest.mm',
[email protected]6e8c0652012-04-03 04:38:5766 'base/cocoa/fullscreen_window_manager_unittest.mm',
[email protected]bb9bdfc2011-12-20 04:20:1567 'base/cocoa/events_mac_unittest.mm',
[email protected]5b7b9592012-02-02 07:49:1168 'base/cocoa/focus_tracker_unittest.mm',
[email protected]9fb4ad4c2011-08-25 20:16:2269 'base/gtk/gtk_expanded_container_unittest.cc',
[email protected]a738cb172011-03-23 23:19:2070 'base/gtk/gtk_im_context_util_unittest.cc',
[email protected]4282bbd2012-05-04 17:51:0471 'base/gtk/menu_label_accelerator_util_unittest.cc',
[email protected]336678102011-06-16 14:53:5272 'base/l10n/l10n_util_mac_unittest.mm',
73 'base/l10n/l10n_util_unittest.cc',
[email protected]1a6089b52011-12-23 05:29:2074 'base/models/list_model_unittest.cc',
[email protected]47ac5072011-06-10 18:29:0075 'base/models/tree_node_iterator_unittest.cc',
76 'base/models/tree_node_model_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:3977 'base/range/range_unittest.cc',
[email protected]c44d8d32011-07-04 21:28:5878 'base/range/range_mac_unittest.mm',
79 'base/range/range_win_unittest.cc',
[email protected]aae69652011-09-06 22:31:2880 'base/resource/data_pack_literal.cc',
[email protected]8c4045d72f2011-06-17 14:23:3781 'base/resource/data_pack_unittest.cc',
[email protected]a9585712011-06-20 14:50:5182 'base/resource/resource_bundle_unittest.cc',
[email protected]7a3b2632011-06-22 20:40:2283 'base/text/bytes_formatting_unittest.cc',
[email protected]8c4045d72f2011-06-17 14:23:3784 'base/test/data/resource.h',
[email protected]336678102011-06-16 14:53:5285 'base/text/text_elider_unittest.cc',
[email protected]bec929c2012-03-02 06:23:5086 'base/text/utf16_indexing_unittest.cc',
[email protected]40c15eb2012-04-26 19:20:2887 'base/view_prop_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:3988 'gfx/blit_unittest.cc',
[email protected]90b89ef02012-04-02 16:55:3489 'gfx/canvas_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:3990 'gfx/codec/jpeg_codec_unittest.cc',
91 'gfx/codec/png_codec_unittest.cc',
[email protected]e7de08f72011-06-09 22:24:5992 'gfx/color_analysis_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:3993 'gfx/color_utils_unittest.cc',
[email protected]8d901a82012-01-04 19:41:3094 'gfx/font_list_unittest.cc',
[email protected]37f20e72012-03-27 14:43:5595 'gfx/font_unittest.cc',
[email protected]f08e0512011-06-13 18:10:4496 'gfx/image/image_mac_unittest.mm',
97 'gfx/image/image_unittest.cc',
[email protected]f08e0512011-06-13 18:10:4498 'gfx/image/image_unittest_util.cc',
[email protected]37f20e72012-03-27 14:43:5599 'gfx/image/image_unittest_util.h',
[email protected]6ecdfa3f2011-03-18 17:24:39100 'gfx/insets_unittest.cc',
[email protected]b82c42c42012-04-25 20:03:41101 'gfx/monitor_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:39102 'gfx/rect_unittest.cc',
[email protected]6b7d954ff2011-10-25 00:39:35103 'gfx/screen_unittest.cc',
[email protected]0834e1b12012-04-11 02:23:56104 'gfx/shadow_value_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:39105 'gfx/skbitmap_operations_unittest.cc',
[email protected]d2ec9af2011-06-21 17:05:49106 'gfx/skia_util_unittest.cc',
[email protected]665e2b72012-03-14 17:06:59107 'gfx/transform_util_unittest.cc',
[email protected]f0040842012-05-09 23:45:10108 'gfx/video_decode_acceleration_support_mac_unittest.mm',
[email protected]85db5f42012-03-29 23:24:05109 'test/run_all_unittests.cc',
110 'test/test_suite.cc',
111 'test/test_suite.h',
[email protected]b74b4882012-05-26 04:29:34112 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
[email protected]6ecdfa3f2011-03-18 17:24:39113 ],
114 'include_dirs': [
115 '../',
116 ],
117 'conditions': [
[email protected]10ed9c5f2011-06-17 18:14:35118 ['OS == "win"', {
[email protected]6ecdfa3f2011-03-18 17:24:39119 'sources': [
[email protected]10ed9c5f2011-06-17 18:14:35120 'base/dragdrop/os_exchange_data_win_unittest.cc',
[email protected]f78452f2012-05-15 02:07:52121 'base/native_theme/native_theme_win_unittest.cc',
[email protected]2a36be1a2012-04-30 21:18:11122 'base/win/hwnd_subclass_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:39123 'gfx/icon_util_unittest.cc',
[email protected]2a36be1a2012-04-30 21:18:11124 'gfx/platform_font_win_unittest.cc',
[email protected]6ecdfa3f2011-03-18 17:24:39125 ],
126 'include_dirs': [
127 '../..',
128 '../third_party/wtl/include',
129 ],
130 'msvs_settings': {
131 'VCLinkerTool': {
132 'DelayLoadDLLs': [
133 'd2d1.dll',
134 'd3d10_1.dll',
135 ],
136 'AdditionalDependencies': [
137 'd2d1.lib',
138 'd3d10_1.lib',
139 ],
140 },
[email protected]724fffdb2011-03-20 00:39:09141 },
142 'link_settings': {
143 'libraries': [
144 '-limm32.lib',
145 '-loleacc.lib',
146 ],
[email protected]6ecdfa3f2011-03-18 17:24:39147 },
148 }],
[email protected]9bf2a862012-01-25 18:28:06149 ['OS == "linux"', {
150 'sources': [
151 'gfx/platform_font_pango_unittest.cc',
152 ],
153 }],
[email protected]ace7ca02011-11-22 21:34:17154 ['OS == "linux" and toolkit_views==1', {
[email protected]562b8d22011-11-07 22:06:34155 'sources': [
156 'base/x/events_x_unittest.cc',
157 ],
158 }],
[email protected]80248e32011-07-08 15:31:11159 ['OS != "mac"', {
160 'sources': [
161 'gfx/transform_unittest.cc',
162 'gfx/interpolated_transform_unittest.cc',
163 ],
164 }],
[email protected]a44d1212012-05-25 20:17:49165 ['OS == "android" and gtest_target_type == "shared_library"', {
[email protected]c205e0c2012-05-05 03:11:38166 'dependencies': [
167 '../testing/android/native_test.gyp:native_test_native_code',
168 ],
169 }],
[email protected]b6bb36e22011-09-21 17:52:54170 ['use_glib == 1', {
[email protected]6ecdfa3f2011-03-18 17:24:39171 'dependencies': [
[email protected]b6bb36e22011-09-21 17:52:54172 '../build/linux/system.gyp:pangocairo',
[email protected]115f8202011-06-17 16:02:57173 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
174 'base/strings/ui_strings.gyp:ui_unittest_strings',
[email protected]6ecdfa3f2011-03-18 17:24:39175 ],
176 'conditions': [
177 ['linux_use_tcmalloc==1', {
178 'dependencies': [
179 '../base/allocator/allocator.gyp:allocator',
180 ],
181 }],
[email protected]9fb4ad4c2011-08-25 20:16:22182 ['toolkit_views==1', {
183 'sources!': [
184 'browser/ui/gtk/gtk_expanded_container_unittest.cc',
185 ],
186 }],
[email protected]6ecdfa3f2011-03-18 17:24:39187 ],
188 }],
[email protected]b6bb36e22011-09-21 17:52:54189 ['toolkit_uses_gtk == 1', {
190 'sources': [
191 'base/dragdrop/gtk_dnd_util_unittest.cc',
192 ],
193 'dependencies': [
194 '../build/linux/system.gyp:gtk',
195 ],
196 }],
[email protected]27521a72012-01-13 02:09:47197 ['toolkit_views==1 and OS!="mac"', {
[email protected]ff44d712011-07-25 08:42:52198 'sources': [
199 'gfx/render_text_unittest.cc',
200 ],
201 }],
[email protected]40c15eb2012-04-26 19:20:28202 ['OS!="win" or use_aura==0', {
[email protected]6e88e552011-10-27 17:18:00203 'sources!': [
[email protected]939e4ed2011-11-01 17:51:32204 'base/view_prop_unittest.cc',
[email protected]40c15eb2012-04-26 19:20:28205 ],
206 }],
207 ['use_aura==1', {
208 'sources!': [
[email protected]1e25fbf52012-05-14 23:10:10209 'base/dragdrop/os_exchange_data_win_unittest.cc',
[email protected]f78452f2012-05-15 02:07:52210 'base/native_theme/native_theme_win_unittest.cc',
211 'gfx/screen_unittest.cc',
[email protected]6b7d954ff2011-10-25 00:39:35212 ],
[email protected]2e79f732011-11-10 17:48:52213 }],
[email protected]81675c92012-04-05 22:14:49214 ['use_aura==1 or toolkit_views==1', {
215 'sources': [
216 'base/gestures/velocity_calculator_unittest.cc',
217 ],
218 }],
[email protected]6ecdfa3f2011-03-18 17:24:39219 ],
220 },
221 ],
[email protected]c205e0c2012-05-05 03:11:38222 'conditions': [
[email protected]a44d1212012-05-25 20:17:49223 # Special target to wrap a gtest_target_type==shared_library
[email protected]c205e0c2012-05-05 03:11:38224 # ui_unittests into an android apk for execution.
225 # See base.gyp for TODO(jrg)s about this strategy.
[email protected]a44d1212012-05-25 20:17:49226 ['OS == "android" and gtest_target_type == "shared_library"', {
[email protected]c205e0c2012-05-05 03:11:38227 'targets': [
228 {
229 'target_name': 'ui_unittests_apk',
230 'type': 'none',
231 'dependencies': [
[email protected]a44d1212012-05-25 20:17:49232 '../base/base.gyp:base_java',
[email protected]c205e0c2012-05-05 03:11:38233 'ui_unittests',
234 ],
[email protected]a44d1212012-05-25 20:17:49235 'variables': {
236 'test_suite_name': 'ui_unittests',
[email protected]ef7ed7a2012-05-29 23:19:13237 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unittests<(SHARED_LIB_SUFFIX)',
[email protected]a44d1212012-05-25 20:17:49238 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',],
239 },
240 'includes': [ '../build/apk_test.gypi' ],
[email protected]c205e0c2012-05-05 03:11:38241 },
242 ],
243 }],
244 ],
[email protected]6ecdfa3f2011-03-18 17:24:39245}