OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 # TODO(tfarina): Rename this target to ui_base_unittests. | |
12 # In order to do this we will need to keep this target, add a dummy | |
13 # ui_base_unittests target that just points to ui_unittests, change | |
14 # buildbot code to reference the new 'ui_base_unittests' target. | |
15 # After buildbot is updated, we can make the changes in Chromium and | |
16 # remove 'ui_unittests' target. crbug.com/331829 | |
17 # GN version: //ui/base:unittests | 11 # GN version: //ui/base:unittests |
18 'target_name': 'ui_unittests', | 12 'target_name': 'ui_base_unittests', |
19 'type': '<(gtest_target_type)', | 13 'type': '<(gtest_target_type)', |
20 'dependencies': [ | 14 'dependencies': [ |
21 '../../base/base.gyp:base', | 15 '../../base/base.gyp:base', |
22 '../../base/base.gyp:test_support_base', | 16 '../../base/base.gyp:test_support_base', |
23 '../../net/net.gyp:net', | 17 '../../net/net.gyp:net', |
24 '../../skia/skia.gyp:skia', | 18 '../../skia/skia.gyp:skia', |
25 '../../testing/gmock.gyp:gmock', | 19 '../../testing/gmock.gyp:gmock', |
26 '../../testing/gtest.gyp:gtest', | 20 '../../testing/gtest.gyp:gtest', |
27 '../../third_party/icu/icu.gyp:icui18n', | 21 '../../third_party/icu/icu.gyp:icui18n', |
28 '../../third_party/icu/icu.gyp:icuuc', | 22 '../../third_party/icu/icu.gyp:icuuc', |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
226 'target_conditions': [ | 220 'target_conditions': [ |
227 ['OS == "ios"', { | 221 ['OS == "ios"', { |
228 'sources/': [ | 222 'sources/': [ |
229 # Pull in specific Mac files for iOS (which have been filtered out | 223 # Pull in specific Mac files for iOS (which have been filtered out |
230 # by file name rules). | 224 # by file name rules). |
231 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'], | 225 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'], |
232 ], | 226 ], |
233 }], | 227 }], |
234 ], | 228 ], |
235 }, | 229 }, |
230 { | |
231 # TODO(tfarina): Remove this target after all traces of it are updated to | |
232 # point to ui_base_unittests. That means updating buildbot code and some | |
233 # references in chromium too. crbug.com/331829 | |
234 'target_name': 'ui_unittests', | |
235 'type': 'none', | |
236 'dependencies': [ | |
237 'ui_base_unittests', | |
238 ], | |
239 'actions': [ | |
240 { | |
241 'message': 'TEMPORARY: Copying ui_base_unittests to ui_unittests', | |
242 'action_name': 'copy_ui_base_unittests', | |
243 'conditions': [ | |
244 ['OS != "ios" or OS != "android"', | |
cjhopman
2014/09/22 01:03:14
s/or/and
also, we don't want this action at all o
tfarina
2014/09/22 01:23:52
Done.
| |
245 { | |
246 'variables': { | |
247 'source_file': '<(PRODUCT_DIR)/ui_base_unittests<(EXECUTABLE_S UFFIX)', | |
248 'dest_file': '<(PRODUCT_DIR)/ui_unittests<(EXECUTABLE_SUFFIX)' , | |
249 }, | |
250 }, | |
251 ], | |
252 ['OS == "ios"', | |
253 { | |
254 'variables': { | |
255 'source_file': '<(PRODUCT_DIR)/ui_base_unittests.app/ui_base_u nittests', | |
256 'dest_file': '<(PRODUCT_DIR)/ui_unittests.app/ui_unittests', | |
257 }, | |
258 }, | |
259 ], | |
260 ], | |
261 'inputs': [ | |
262 '../../build/cp.py', | |
263 '<(source_file)', | |
264 ], | |
265 'outputs': [ | |
266 '<(dest_file)', | |
267 ], | |
268 'action': [ | |
269 'python', '../../build/cp.py', '<(source_file)', '<(dest_file)', | |
270 ], | |
271 }, | |
272 ], | |
273 }, | |
236 ], | 274 ], |
237 'conditions': [ | 275 'conditions': [ |
238 # Mac target to build a test Framework bundle to mock out resource loading. | 276 # Mac target to build a test Framework bundle to mock out resource loading. |
239 ['OS == "mac"', { | 277 ['OS == "mac"', { |
240 'targets': [ | 278 'targets': [ |
241 { | 279 { |
242 'target_name': 'ui_base_tests_bundle', | 280 'target_name': 'ui_base_tests_bundle', |
243 'type': 'shared_library', | 281 'type': 'shared_library', |
244 'dependencies': [ | 282 'dependencies': [ |
245 '../resources/ui_resources.gyp:ui_test_pak', | 283 '../resources/ui_resources.gyp:ui_test_pak', |
246 ], | 284 ], |
247 'includes': [ 'ui_base_tests_bundle.gypi' ], | 285 'includes': [ 'ui_base_tests_bundle.gypi' ], |
248 }, | 286 }, |
249 ], | 287 ], |
250 }], | 288 }], |
251 ['OS == "android"', { | 289 ['OS == "android"', { |
252 'targets': [ | 290 'targets': [ |
253 { | 291 { |
292 'target_name': 'ui_base_unittests_apk', | |
293 'type': 'none', | |
294 'dependencies': [ | |
295 'ui_base_unittests', | |
296 ], | |
297 'variables': { | |
298 'test_suite_name': 'ui_base_unittests', | |
299 }, | |
300 'includes': [ '../../build/apk_test.gypi' ], | |
301 }, | |
302 { | |
303 # TODO(tfarina): Remove this target after all traces of it are updated | |
304 # to point to ui_base_unittests_apk. crbug.com/331829 | |
254 'target_name': 'ui_unittests_apk', | 305 'target_name': 'ui_unittests_apk', |
255 'type': 'none', | 306 'type': 'none', |
256 'dependencies': [ | 307 'dependencies': [ |
257 'ui_unittests', | 308 'ui_base_unittests_apk', |
258 ], | 309 ], |
259 'variables': { | 310 'actions': [ |
260 'test_suite_name': 'ui_unittests', | 311 { |
261 }, | 312 'message': 'TEMPORARY: Copying ui_base_unittests_apk to ui_unittes ts_apk', |
262 'includes': [ '../../build/apk_test.gypi' ], | 313 'action_name': 'copy_ui_base_unittests_apk', |
314 'variables': { | |
315 'source_file': '<(PRODUCT_DIR)/ui_base_unittests_apk/ui_base_uni ttests-debug.apk', | |
316 'dest_file': '<(PRODUCT_DIR)/ui_unittests/ui_unittests-debug.pak ', | |
317 }, | |
318 'inputs': [ | |
319 '../../build/cp.py', | |
320 '<(source_file)', | |
321 ], | |
322 'outputs': [ | |
323 '<(dest_file)', | |
324 ], | |
325 'action': [ | |
326 'python', '../../build/cp.py', '<(source_file)', '<(dest_file)', | |
327 ], | |
328 }, | |
329 ], | |
263 }, | 330 }, |
264 ], | 331 ], |
265 }], | 332 }], |
266 ], | 333 ], |
267 } | 334 } |
OLD | NEW |