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 { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 ], | 55 ], |
56 }], | 56 }], |
57 ], | 57 ], |
58 }, | 58 }, |
59 { | 59 { |
60 'target_name': 'ui_unittests', | 60 'target_name': 'ui_unittests', |
61 'type': '<(gtest_target_type)', | 61 'type': '<(gtest_target_type)', |
62 'dependencies': [ | 62 'dependencies': [ |
63 '../base/base.gyp:base', | 63 '../base/base.gyp:base', |
64 '../base/base.gyp:test_support_base', | 64 '../base/base.gyp:test_support_base', |
65 '../chrome/chrome_resources.gyp:packed_resources', | |
66 '../skia/skia.gyp:skia', | 65 '../skia/skia.gyp:skia', |
67 '../testing/gmock.gyp:gmock', | 66 '../testing/gmock.gyp:gmock', |
68 '../testing/gtest.gyp:gtest', | 67 '../testing/gtest.gyp:gtest', |
69 '../third_party/icu/icu.gyp:icui18n', | 68 '../third_party/icu/icu.gyp:icui18n', |
70 '../third_party/icu/icu.gyp:icuuc', | 69 '../third_party/icu/icu.gyp:icuuc', |
71 '../third_party/libpng/libpng.gyp:libpng', | 70 '../third_party/libpng/libpng.gyp:libpng', |
72 '../url/url.gyp:url_lib', | 71 '../url/url.gyp:url_lib', |
73 'base/strings/ui_strings.gyp:ui_strings', | 72 'base/strings/ui_strings.gyp:ui_strings', |
74 'events/events.gyp:events_base', | 73 'events/events.gyp:events_base', |
75 'gfx/gfx.gyp:gfx_geometry_unittests', | 74 'gfx/gfx.gyp:gfx_geometry_unittests', |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
278 }], | 277 }], |
279 ['use_x11==1 and use_aura==1', { | 278 ['use_x11==1 and use_aura==1', { |
280 'sources': [ | 279 'sources': [ |
281 'base/cursor/cursor_loader_x11_unittest.cc', | 280 'base/cursor/cursor_loader_x11_unittest.cc', |
282 ], | 281 ], |
283 }], | 282 }], |
284 ['OS=="mac"', { | 283 ['OS=="mac"', { |
285 'dependencies': [ | 284 'dependencies': [ |
286 'events/events.gyp:events_test_support', | 285 'events/events.gyp:events_test_support', |
287 'gfx/gfx.gyp:gfx_test_support', | 286 'gfx/gfx.gyp:gfx_test_support', |
287 'ui_unittests_bundle', | |
288 ], | |
289 }, { # OS!="mac" | |
290 'dependencies': [ | |
291 'base/strings/ui_strings.gyp:ui_unittest_strings', | |
288 ], | 292 ], |
289 }], | 293 }], |
290 ['use_aura==1 or toolkit_views==1', { | 294 ['use_aura==1 or toolkit_views==1', { |
291 'sources': [ | 295 'sources': [ |
292 'base/dragdrop/os_exchange_data_unittest.cc', | 296 'base/dragdrop/os_exchange_data_unittest.cc', |
293 ], | 297 ], |
294 'dependencies': [ | 298 'dependencies': [ |
295 'events/events.gyp:events', | 299 'events/events.gyp:events', |
296 'events/events.gyp:events_base', | 300 'events/events.gyp:events_base', |
297 'events/events.gyp:events_test_support', | 301 'events/events.gyp:events_test_support', |
(...skipping 30 matching lines...) Expand all Loading... | |
328 'sources/': [ | 332 'sources/': [ |
329 # Pull in specific Mac files for iOS (which have been filtered out | 333 # Pull in specific Mac files for iOS (which have been filtered out |
330 # by file name rules). | 334 # by file name rules). |
331 ['include', '^base/l10n/l10n_util_mac_unittest\\.mm$'], | 335 ['include', '^base/l10n/l10n_util_mac_unittest\\.mm$'], |
332 ], | 336 ], |
333 }], | 337 }], |
334 ], | 338 ], |
335 }, | 339 }, |
336 ], | 340 ], |
337 'conditions': [ | 341 'conditions': [ |
342 # Mac target to build a test Framework bundle to mock out resource loading. | |
343 ['OS == "mac"', { | |
344 'targets': [ | |
345 { | |
346 'target_name': 'ui_unittests_bundle', | |
347 'type': 'shared_library', | |
348 'dependencies': [ | |
349 'resources/ui_resources.gyp:ui_test_pak', | |
350 ], | |
351 'includes': [ 'ui_unittests_bundle.gypi' ], | |
tfarina
2014/03/05 18:39:31
Trent, instead of going with a gyp include file, p
tapted
2014/03/05 23:03:26
I think that would have a negative impact. 10 leve
| |
352 }, | |
353 ], | |
354 }], | |
338 # Special target to wrap a gtest_target_type==shared_library | 355 # Special target to wrap a gtest_target_type==shared_library |
339 # ui_unittests into an android apk for execution. | 356 # ui_unittests into an android apk for execution. |
340 # See base.gyp for TODO(jrg)s about this strategy. | 357 # See base.gyp for TODO(jrg)s about this strategy. |
341 ['OS == "android" and gtest_target_type == "shared_library"', { | 358 ['OS == "android" and gtest_target_type == "shared_library"', { |
342 'targets': [ | 359 'targets': [ |
343 { | 360 { |
344 'target_name': 'ui_unittests_apk', | 361 'target_name': 'ui_unittests_apk', |
345 'type': 'none', | 362 'type': 'none', |
346 'dependencies': [ | 363 'dependencies': [ |
347 'ui_unittests', | 364 'ui_unittests', |
348 ], | 365 ], |
349 'variables': { | 366 'variables': { |
350 'test_suite_name': 'ui_unittests', | 367 'test_suite_name': 'ui_unittests', |
351 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unitte sts<(SHARED_LIB_SUFFIX)', | 368 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unitte sts<(SHARED_LIB_SUFFIX)', |
352 }, | 369 }, |
353 'includes': [ '../build/apk_test.gypi' ], | 370 'includes': [ '../build/apk_test.gypi' ], |
354 }, | 371 }, |
355 ], | 372 ], |
356 }], | 373 }], |
357 ], | 374 ], |
358 } | 375 } |
OLD | NEW |