OLD | NEW |
(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/focus_tracker_unittest.mm', |
| 52 'cocoa/fullscreen_window_manager_unittest.mm', |
| 53 'cocoa/hover_image_button_unittest.mm', |
| 54 'cocoa/menu_controller_unittest.mm', |
| 55 'cocoa/nsgraphics_context_additions_unittest.mm', |
| 56 'cocoa/tracking_area_unittest.mm', |
| 57 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc', |
| 58 'ime/candidate_window_unittest.cc', |
| 59 'ime/chromeos/character_composer_unittest.cc', |
| 60 'ime/composition_text_util_pango_unittest.cc', |
| 61 'ime/input_method_base_unittest.cc', |
| 62 'ime/input_method_chromeos_unittest.cc', |
| 63 'ime/remote_input_method_win_unittest.cc', |
| 64 'ime/win/imm32_manager_unittest.cc', |
| 65 'ime/win/tsf_input_scope_unittest.cc', |
| 66 'models/list_model_unittest.cc', |
| 67 'models/list_selection_model_unittest.cc', |
| 68 'models/tree_node_model_unittest.cc', |
| 69 'test/data/resource.h', |
| 70 'text/bytes_formatting_unittest.cc', |
| 71 'view_prop_unittest.cc', |
| 72 'webui/web_ui_util_unittest.cc', |
| 73 'x/selection_requestor_unittest.cc', |
| 74 ], |
| 75 'include_dirs': [ |
| 76 '../..', |
| 77 ], |
| 78 'conditions': [ |
| 79 ['OS!="ios"', { |
| 80 'sources' : [ '<@(_all_sources)' ], |
| 81 }, { # OS=="ios" |
| 82 'sources' : [ '<@(_common_sources)' ], |
| 83 # The ResourceBundle unittest expects a locale.pak file to exist in |
| 84 # the bundle for English-US. Copy it in from where it was generated |
| 85 # by ui_resources.gyp:ui_test_pak. |
| 86 'mac_bundle_resources': [ |
| 87 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak', |
| 88 ], |
| 89 'actions': [ |
| 90 { |
| 91 'action_name': 'copy_test_data', |
| 92 'variables': { |
| 93 'test_data_files': [ |
| 94 'test/data', |
| 95 ], |
| 96 'test_data_prefix' : 'ui/base', |
| 97 }, |
| 98 'includes': [ '../../build/copy_test_data_ios.gypi' ], |
| 99 }, |
| 100 ], |
| 101 }], |
| 102 ['OS == "win"', { |
| 103 'sources': [ |
| 104 'dragdrop/os_exchange_data_win_unittest.cc', |
| 105 'win/hwnd_subclass_unittest.cc', |
| 106 'win/open_file_name_win_unittest.cc', |
| 107 ], |
| 108 'msvs_settings': { |
| 109 'VCLinkerTool': { |
| 110 'DelayLoadDLLs': [ |
| 111 'd2d1.dll', |
| 112 'd3d10_1.dll', |
| 113 ], |
| 114 'AdditionalDependencies': [ |
| 115 'd2d1.lib', |
| 116 'd3d10_1.lib', |
| 117 ], |
| 118 }, |
| 119 }, |
| 120 'link_settings': { |
| 121 'libraries': [ |
| 122 '-limm32.lib', |
| 123 '-loleacc.lib', |
| 124 ], |
| 125 }, |
| 126 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 127 'msvs_disabled_warnings': [ 4267, ], |
| 128 }], |
| 129 ['OS == "android"', { |
| 130 'dependencies': [ |
| 131 '../../testing/android/native_test.gyp:native_test_native_code', |
| 132 ], |
| 133 }], |
| 134 ['use_pango == 1', { |
| 135 'dependencies': [ |
| 136 '../../build/linux/system.gyp:pangocairo', |
| 137 ], |
| 138 'conditions': [ |
| 139 ['use_allocator!="none"', { |
| 140 'dependencies': [ |
| 141 '../../base/allocator/allocator.gyp:allocator', |
| 142 ], |
| 143 }], |
| 144 ], |
| 145 }], |
| 146 ['use_x11==1', { |
| 147 'dependencies': [ |
| 148 '../../build/linux/system.gyp:x11', |
| 149 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 150 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform', |
| 151 '../gfx/x/gfx_x11.gyp:gfx_x11', |
| 152 ], |
| 153 }], |
| 154 ['OS!="win" or use_aura==0', { |
| 155 'sources!': [ |
| 156 'view_prop_unittest.cc', |
| 157 ], |
| 158 }], |
| 159 ['use_x11==1 and use_aura==1', { |
| 160 'sources': [ |
| 161 'cursor/cursor_loader_x11_unittest.cc', |
| 162 ], |
| 163 }], |
| 164 ['OS=="mac"', { |
| 165 'dependencies': [ |
| 166 '../../third_party/mozilla/mozilla.gyp:mozilla', |
| 167 '../events/events.gyp:events_test_support', |
| 168 'ui_base_tests_bundle', |
| 169 ], |
| 170 'conditions': [ |
| 171 ['component=="static_library"', { |
| 172 # Needed for mozilla.gyp. |
| 173 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
| 174 }], |
| 175 ], |
| 176 }], |
| 177 ['use_aura==1 or toolkit_views==1', { |
| 178 'sources': [ |
| 179 'dragdrop/os_exchange_data_unittest.cc', |
| 180 ], |
| 181 'dependencies': [ |
| 182 '../events/events.gyp:events', |
| 183 '../events/events.gyp:events_base', |
| 184 '../events/events.gyp:events_test_support', |
| 185 '../events/platform/events_platform.gyp:events_platform', |
| 186 ], |
| 187 }], |
| 188 ['chromeos==1', { |
| 189 'dependencies': [ |
| 190 '../../chromeos/chromeos.gyp:chromeos', |
| 191 '../aura/aura.gyp:aura_test_support', |
| 192 '../chromeos/ui_chromeos.gyp:ui_chromeos', |
| 193 '../events/events.gyp:gesture_detection', |
| 194 ], |
| 195 'sources': [ |
| 196 '../chromeos/touch_exploration_controller_unittest.cc' |
| 197 ], |
| 198 'sources!': [ |
| 199 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc', |
| 200 'x/selection_requestor_unittest.cc', |
| 201 ], |
| 202 }], |
| 203 ['use_x11==0', { |
| 204 'sources!': [ |
| 205 'ime/chromeos/character_composer_unittest.cc', |
| 206 'ime/input_method_chromeos_unittest.cc', |
| 207 'ime/composition_text_util_pango_unittest.cc', |
| 208 ], |
| 209 }], |
| 210 ], |
| 211 'target_conditions': [ |
| 212 ['OS == "ios"', { |
| 213 'sources/': [ |
| 214 # Pull in specific Mac files for iOS (which have been filtered out |
| 215 # by file name rules). |
| 216 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'], |
| 217 ], |
| 218 }], |
| 219 ], |
| 220 } |
OLD | NEW |