[email protected] | 8d901a8 | 2012-01-04 19:41:30 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 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 | 'targets': [ |
| 7 | { |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 8 | 'target_name': 'ui_test_support', |
[email protected] | 3c8cd819 | 2012-05-15 16:48:14 | [diff] [blame] | 9 | 'type': 'static_library', |
[email protected] | e6c896f1 | 2012-05-31 11:48:20 | [diff] [blame] | 10 | 'includes': [ |
| 11 | 'base/ime/ime_test_support.gypi', |
| 12 | ], |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 13 | 'dependencies': [ |
| 14 | '../base/base.gyp:base', |
| 15 | '../testing/gtest.gyp:gtest', |
| 16 | ], |
| 17 | 'sources': [ |
[email protected] | be33ec5 | 2011-09-09 20:07:17 | [diff] [blame] | 18 | 'base/test/cocoa_test_event_utils.h', |
| 19 | 'base/test/cocoa_test_event_utils.mm', |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 20 | 'base/test/ui_cocoa_test_helper.h', |
| 21 | 'base/test/ui_cocoa_test_helper.mm', |
[email protected] | 3c8cd819 | 2012-05-15 16:48:14 | [diff] [blame] | 22 | 'base/test/dummy_input_method.cc', |
| 23 | 'base/test/dummy_input_method.h', |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 24 | ], |
| 25 | 'include_dirs': [ |
| 26 | '../', |
| 27 | ], |
[email protected] | e6c896f1 | 2012-05-31 11:48:20 | [diff] [blame] | 28 | 'conditions': [ |
| 29 | ['chromeos==1', { |
| 30 | 'dependencies': [ |
[email protected] | d287148 | 2012-06-25 08:33:50 | [diff] [blame] | 31 | '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', |
[email protected] | e6c896f1 | 2012-05-31 11:48:20 | [diff] [blame] | 32 | '../skia/skia.gyp:skia', |
| 33 | ] |
| 34 | }], |
| 35 | ], |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 36 | }, |
| 37 | { |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 38 | 'target_name': 'ui_unittests', |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 39 | 'type': '<(gtest_target_type)', |
[email protected] | 78fcae06 | 2012-01-12 07:03:59 | [diff] [blame] | 40 | 'includes': [ |
| 41 | 'base/ime/ime_unittests.gypi', |
| 42 | ], |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 43 | 'dependencies': [ |
| 44 | '../base/base.gyp:base', |
| 45 | '../base/base.gyp:test_support_base', |
[email protected] | ea47b6a | 2011-07-17 19:39:42 | [diff] [blame] | 46 | '../build/temp_gyp/googleurl.gyp:googleurl', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 47 | '../skia/skia.gyp:skia', |
| 48 | '../testing/gmock.gyp:gmock', |
| 49 | '../testing/gtest.gyp:gtest', |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 50 | '../third_party/icu/icu.gyp:icui18n', |
| 51 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 17abeb4 | 2012-03-08 12:38:32 | [diff] [blame] | 52 | '../third_party/libpng/libpng.gyp:libpng', |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 53 | 'ui', |
[email protected] | 2a28133 | 2012-07-11 22:20:23 | [diff] [blame] | 54 | 'ui_resources', |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 55 | 'ui_test_support', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 56 | ], |
| 57 | 'sources': [ |
[email protected] | 095c803 | 2012-03-10 10:09:27 | [diff] [blame] | 58 | 'base/accelerators/accelerator_manager_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 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', |
[email protected] | 9d77eaa | 2011-12-05 20:32:24 | [diff] [blame] | 64 | 'base/clipboard/custom_data_helper_unittest.cc', |
[email protected] | e533811 | 2011-09-08 22:14:56 | [diff] [blame] | 65 | 'base/cocoa/base_view_unittest.mm', |
[email protected] | 6e8c065 | 2012-04-03 04:38:57 | [diff] [blame] | 66 | 'base/cocoa/fullscreen_window_manager_unittest.mm', |
[email protected] | bb9bdfc | 2011-12-20 04:20:15 | [diff] [blame] | 67 | 'base/cocoa/events_mac_unittest.mm', |
[email protected] | 5b7b959 | 2012-02-02 07:49:11 | [diff] [blame] | 68 | 'base/cocoa/focus_tracker_unittest.mm', |
[email protected] | 8d0574da7 | 2012-07-18 17:48:13 | [diff] [blame] | 69 | 'base/dialogs/select_file_dialog_win_unittest.cc', |
[email protected] | 9fb4ad4c | 2011-08-25 20:16:22 | [diff] [blame] | 70 | 'base/gtk/gtk_expanded_container_unittest.cc', |
[email protected] | a738cb17 | 2011-03-23 23:19:20 | [diff] [blame] | 71 | 'base/gtk/gtk_im_context_util_unittest.cc', |
[email protected] | 4282bbd | 2012-05-04 17:51:04 | [diff] [blame] | 72 | 'base/gtk/menu_label_accelerator_util_unittest.cc', |
[email protected] | 33667810 | 2011-06-16 14:53:52 | [diff] [blame] | 73 | 'base/l10n/l10n_util_mac_unittest.mm', |
| 74 | 'base/l10n/l10n_util_unittest.cc', |
[email protected] | 1a6089b5 | 2011-12-23 05:29:20 | [diff] [blame] | 75 | 'base/models/list_model_unittest.cc', |
[email protected] | 47ac507 | 2011-06-10 18:29:00 | [diff] [blame] | 76 | 'base/models/tree_node_iterator_unittest.cc', |
| 77 | 'base/models/tree_node_model_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 78 | 'base/range/range_unittest.cc', |
[email protected] | c44d8d3 | 2011-07-04 21:28:58 | [diff] [blame] | 79 | 'base/range/range_mac_unittest.mm', |
| 80 | 'base/range/range_win_unittest.cc', |
[email protected] | aae6965 | 2011-09-06 22:31:28 | [diff] [blame] | 81 | 'base/resource/data_pack_literal.cc', |
[email protected] | 8c4045d72f | 2011-06-17 14:23:37 | [diff] [blame] | 82 | 'base/resource/data_pack_unittest.cc', |
[email protected] | a958571 | 2011-06-20 14:50:51 | [diff] [blame] | 83 | 'base/resource/resource_bundle_unittest.cc', |
[email protected] | 7a3b263 | 2011-06-22 20:40:22 | [diff] [blame] | 84 | 'base/text/bytes_formatting_unittest.cc', |
[email protected] | 8c4045d72f | 2011-06-17 14:23:37 | [diff] [blame] | 85 | 'base/test/data/resource.h', |
[email protected] | 33667810 | 2011-06-16 14:53:52 | [diff] [blame] | 86 | 'base/text/text_elider_unittest.cc', |
[email protected] | bec929c | 2012-03-02 06:23:50 | [diff] [blame] | 87 | 'base/text/utf16_indexing_unittest.cc', |
[email protected] | 40c15eb | 2012-04-26 19:20:28 | [diff] [blame] | 88 | 'base/view_prop_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 89 | 'gfx/blit_unittest.cc', |
[email protected] | 90b89ef0 | 2012-04-02 16:55:34 | [diff] [blame] | 90 | 'gfx/canvas_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 91 | 'gfx/codec/jpeg_codec_unittest.cc', |
| 92 | 'gfx/codec/png_codec_unittest.cc', |
[email protected] | e7de08f7 | 2011-06-09 22:24:59 | [diff] [blame] | 93 | 'gfx/color_analysis_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 94 | 'gfx/color_utils_unittest.cc', |
[email protected] | 7da9c4c | 2012-06-12 14:43:01 | [diff] [blame] | 95 | 'gfx/display_unittest.cc', |
[email protected] | 8d901a8 | 2012-01-04 19:41:30 | [diff] [blame] | 96 | 'gfx/font_list_unittest.cc', |
[email protected] | 37f20e7 | 2012-03-27 14:43:55 | [diff] [blame] | 97 | 'gfx/font_unittest.cc', |
[email protected] | f08e051 | 2011-06-13 18:10:44 | [diff] [blame] | 98 | 'gfx/image/image_mac_unittest.mm', |
[email protected] | 98a33e2 | 2012-07-03 03:35:31 | [diff] [blame] | 99 | 'gfx/image/image_skia_unittest.cc', |
[email protected] | f08e051 | 2011-06-13 18:10:44 | [diff] [blame] | 100 | 'gfx/image/image_unittest.cc', |
[email protected] | f08e051 | 2011-06-13 18:10:44 | [diff] [blame] | 101 | 'gfx/image/image_unittest_util.cc', |
[email protected] | 37f20e7 | 2012-03-27 14:43:55 | [diff] [blame] | 102 | 'gfx/image/image_unittest_util.h', |
[email protected] | 3218527 | 2012-06-26 22:40:19 | [diff] [blame] | 103 | 'gfx/image/image_util_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 104 | 'gfx/insets_unittest.cc', |
| 105 | 'gfx/rect_unittest.cc', |
[email protected] | 2e4dc2e1d | 2012-06-22 04:35:04 | [diff] [blame] | 106 | 'gfx/render_text_unittest.cc', |
[email protected] | 6b7d954ff | 2011-10-25 00:39:35 | [diff] [blame] | 107 | 'gfx/screen_unittest.cc', |
[email protected] | 0834e1b1 | 2012-04-11 02:23:56 | [diff] [blame] | 108 | 'gfx/shadow_value_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 109 | 'gfx/skbitmap_operations_unittest.cc', |
[email protected] | d2ec9af | 2011-06-21 17:05:49 | [diff] [blame] | 110 | 'gfx/skia_util_unittest.cc', |
[email protected] | 665e2b7 | 2012-03-14 17:06:59 | [diff] [blame] | 111 | 'gfx/transform_util_unittest.cc', |
[email protected] | f004084 | 2012-05-09 23:45:10 | [diff] [blame] | 112 | 'gfx/video_decode_acceleration_support_mac_unittest.mm', |
[email protected] | 85db5f4 | 2012-03-29 23:24:05 | [diff] [blame] | 113 | 'test/run_all_unittests.cc', |
| 114 | 'test/test_suite.cc', |
| 115 | 'test/test_suite.h', |
[email protected] | f8126f5 | 2012-07-18 19:37:49 | [diff] [blame] | 116 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_standard.rc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 117 | ], |
| 118 | 'include_dirs': [ |
| 119 | '../', |
| 120 | ], |
| 121 | 'conditions': [ |
[email protected] | 10ed9c5f | 2011-06-17 18:14:35 | [diff] [blame] | 122 | ['OS == "win"', { |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 123 | 'sources': [ |
[email protected] | 10ed9c5f | 2011-06-17 18:14:35 | [diff] [blame] | 124 | 'base/dragdrop/os_exchange_data_win_unittest.cc', |
[email protected] | f78452f | 2012-05-15 02:07:52 | [diff] [blame] | 125 | 'base/native_theme/native_theme_win_unittest.cc', |
[email protected] | 2a36be1a | 2012-04-30 21:18:11 | [diff] [blame] | 126 | 'base/win/hwnd_subclass_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 127 | 'gfx/icon_util_unittest.cc', |
[email protected] | 2a36be1a | 2012-04-30 21:18:11 | [diff] [blame] | 128 | 'gfx/platform_font_win_unittest.cc', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 129 | ], |
| 130 | 'include_dirs': [ |
| 131 | '../..', |
| 132 | '../third_party/wtl/include', |
| 133 | ], |
| 134 | 'msvs_settings': { |
| 135 | 'VCLinkerTool': { |
| 136 | 'DelayLoadDLLs': [ |
| 137 | 'd2d1.dll', |
| 138 | 'd3d10_1.dll', |
| 139 | ], |
| 140 | 'AdditionalDependencies': [ |
| 141 | 'd2d1.lib', |
| 142 | 'd3d10_1.lib', |
| 143 | ], |
| 144 | }, |
[email protected] | 724fffdb | 2011-03-20 00:39:09 | [diff] [blame] | 145 | }, |
| 146 | 'link_settings': { |
| 147 | 'libraries': [ |
| 148 | '-limm32.lib', |
| 149 | '-loleacc.lib', |
| 150 | ], |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 151 | }, |
| 152 | }], |
[email protected] | 9bf2a86 | 2012-01-25 18:28:06 | [diff] [blame] | 153 | ['OS == "linux"', { |
| 154 | 'sources': [ |
| 155 | 'gfx/platform_font_pango_unittest.cc', |
| 156 | ], |
| 157 | }], |
[email protected] | ace7ca0 | 2011-11-22 21:34:17 | [diff] [blame] | 158 | ['OS == "linux" and toolkit_views==1', { |
[email protected] | 562b8d2 | 2011-11-07 22:06:34 | [diff] [blame] | 159 | 'sources': [ |
| 160 | 'base/x/events_x_unittest.cc', |
| 161 | ], |
| 162 | }], |
[email protected] | 80248e3 | 2011-07-08 15:31:11 | [diff] [blame] | 163 | ['OS != "mac"', { |
| 164 | 'sources': [ |
| 165 | 'gfx/transform_unittest.cc', |
| 166 | 'gfx/interpolated_transform_unittest.cc', |
| 167 | ], |
| 168 | }], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 169 | ['OS == "android" and gtest_target_type == "shared_library"', { |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 170 | 'dependencies': [ |
| 171 | '../testing/android/native_test.gyp:native_test_native_code', |
| 172 | ], |
| 173 | }], |
[email protected] | b6bb36e2 | 2011-09-21 17:52:54 | [diff] [blame] | 174 | ['use_glib == 1', { |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 175 | 'dependencies': [ |
[email protected] | b6bb36e2 | 2011-09-21 17:52:54 | [diff] [blame] | 176 | '../build/linux/system.gyp:pangocairo', |
[email protected] | 115f820 | 2011-06-17 16:02:57 | [diff] [blame] | 177 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 178 | 'base/strings/ui_strings.gyp:ui_unittest_strings', |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 179 | ], |
| 180 | 'conditions': [ |
| 181 | ['linux_use_tcmalloc==1', { |
| 182 | 'dependencies': [ |
| 183 | '../base/allocator/allocator.gyp:allocator', |
| 184 | ], |
| 185 | }], |
[email protected] | 9fb4ad4c | 2011-08-25 20:16:22 | [diff] [blame] | 186 | ['toolkit_views==1', { |
| 187 | 'sources!': [ |
| 188 | 'browser/ui/gtk/gtk_expanded_container_unittest.cc', |
| 189 | ], |
| 190 | }], |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 191 | ], |
| 192 | }], |
[email protected] | b6bb36e2 | 2011-09-21 17:52:54 | [diff] [blame] | 193 | ['toolkit_uses_gtk == 1', { |
| 194 | 'sources': [ |
| 195 | 'base/dragdrop/gtk_dnd_util_unittest.cc', |
| 196 | ], |
| 197 | 'dependencies': [ |
| 198 | '../build/linux/system.gyp:gtk', |
| 199 | ], |
| 200 | }], |
[email protected] | 04a0754 | 2012-07-23 16:51:25 | [diff] [blame^] | 201 | ['OS=="android" or OS=="ios"', { |
[email protected] | 2e4dc2e1d | 2012-06-22 04:35:04 | [diff] [blame] | 202 | 'sources!': [ |
[email protected] | ff44d71 | 2011-07-25 08:42:52 | [diff] [blame] | 203 | 'gfx/render_text_unittest.cc', |
| 204 | ], |
| 205 | }], |
[email protected] | 40c15eb | 2012-04-26 19:20:28 | [diff] [blame] | 206 | ['OS!="win" or use_aura==0', { |
[email protected] | 6e88e55 | 2011-10-27 17:18:00 | [diff] [blame] | 207 | 'sources!': [ |
[email protected] | 939e4ed | 2011-11-01 17:51:32 | [diff] [blame] | 208 | 'base/view_prop_unittest.cc', |
[email protected] | 40c15eb | 2012-04-26 19:20:28 | [diff] [blame] | 209 | ], |
| 210 | }], |
| 211 | ['use_aura==1', { |
| 212 | 'sources!': [ |
[email protected] | 8d0574da7 | 2012-07-18 17:48:13 | [diff] [blame] | 213 | 'base/dialogs/select_file_dialog_win_unittest.cc', |
[email protected] | 1e25fbf5 | 2012-05-14 23:10:10 | [diff] [blame] | 214 | 'base/dragdrop/os_exchange_data_win_unittest.cc', |
[email protected] | f78452f | 2012-05-15 02:07:52 | [diff] [blame] | 215 | 'base/native_theme/native_theme_win_unittest.cc', |
| 216 | 'gfx/screen_unittest.cc', |
[email protected] | 6b7d954ff | 2011-10-25 00:39:35 | [diff] [blame] | 217 | ], |
[email protected] | 2e79f73 | 2011-11-10 17:48:52 | [diff] [blame] | 218 | }], |
[email protected] | 81675c9 | 2012-04-05 22:14:49 | [diff] [blame] | 219 | ['use_aura==1 or toolkit_views==1', { |
| 220 | 'sources': [ |
| 221 | 'base/gestures/velocity_calculator_unittest.cc', |
| 222 | ], |
| 223 | }], |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 224 | ], |
| 225 | }, |
| 226 | ], |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 227 | 'conditions': [ |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 228 | # Special target to wrap a gtest_target_type==shared_library |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 229 | # ui_unittests into an android apk for execution. |
| 230 | # See base.gyp for TODO(jrg)s about this strategy. |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 231 | ['OS == "android" and gtest_target_type == "shared_library"', { |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 232 | 'targets': [ |
| 233 | { |
| 234 | 'target_name': 'ui_unittests_apk', |
| 235 | 'type': 'none', |
| 236 | 'dependencies': [ |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 237 | '../base/base.gyp:base_java', |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 238 | 'ui_unittests', |
| 239 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 240 | 'variables': { |
| 241 | 'test_suite_name': 'ui_unittests', |
[email protected] | ef7ed7a | 2012-05-29 23:19:13 | [diff] [blame] | 242 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unittests<(SHARED_LIB_SUFFIX)', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 243 | 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',], |
| 244 | }, |
| 245 | 'includes': [ '../build/apk_test.gypi' ], |
[email protected] | c205e0c | 2012-05-05 03:11:38 | [diff] [blame] | 246 | }, |
| 247 | ], |
| 248 | }], |
| 249 | ], |
[email protected] | 6ecdfa3f | 2011-03-18 17:24:39 | [diff] [blame] | 250 | } |