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_test_support', | 74 'gfx/gfx.gyp:gfx_test_support', |
76 'resources/ui_resources.gyp:ui_resources', | 75 'resources/ui_resources.gyp:ui_resources', |
76 'resources/ui_resources.gyp:ui_test_pak', | |
tapted
2014/03/11 11:11:03
This just slipped through, but of course it's need
| |
77 'ui.gyp:ui', | 77 'ui.gyp:ui', |
78 'ui_test_support', | 78 'ui_test_support', |
79 ], | 79 ], |
80 # iOS uses a small subset of ui. common_sources are the only files that | 80 # iOS uses a small subset of ui. common_sources are the only files that |
81 # are built on iOS. | 81 # are built on iOS. |
82 'common_sources' : [ | 82 'common_sources' : [ |
83 'base/layout_unittest.cc', | 83 'base/layout_unittest.cc', |
84 'base/l10n/l10n_util_mac_unittest.mm', | 84 'base/l10n/l10n_util_mac_unittest.mm', |
85 'base/l10n/l10n_util_unittest.cc', | 85 'base/l10n/l10n_util_unittest.cc', |
86 'base/l10n/l10n_util_win_unittest.cc', | 86 'base/l10n/l10n_util_win_unittest.cc', |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
278 }], | 278 }], |
279 ['use_x11==1 and use_aura==1', { | 279 ['use_x11==1 and use_aura==1', { |
280 'sources': [ | 280 'sources': [ |
281 'base/cursor/cursor_loader_x11_unittest.cc', | 281 'base/cursor/cursor_loader_x11_unittest.cc', |
282 ], | 282 ], |
283 }], | 283 }], |
284 ['OS=="mac"', { | 284 ['OS=="mac"', { |
285 'dependencies': [ | 285 'dependencies': [ |
286 'events/events.gyp:events_test_support', | 286 'events/events.gyp:events_test_support', |
287 'gfx/gfx.gyp:gfx_test_support', | 287 'gfx/gfx.gyp:gfx_test_support', |
288 'ui_unittests_bundle', | |
289 ], | |
290 }, { # OS!="mac" | |
291 'dependencies': [ | |
292 'base/strings/ui_strings.gyp:ui_unittest_strings', | |
288 ], | 293 ], |
289 }], | 294 }], |
290 ['use_aura==1 or toolkit_views==1', { | 295 ['use_aura==1 or toolkit_views==1', { |
291 'sources': [ | 296 'sources': [ |
292 'base/dragdrop/os_exchange_data_unittest.cc', | 297 'base/dragdrop/os_exchange_data_unittest.cc', |
293 ], | 298 ], |
294 'dependencies': [ | 299 'dependencies': [ |
295 'events/events.gyp:events', | 300 'events/events.gyp:events', |
296 'events/events.gyp:events_base', | 301 'events/events.gyp:events_base', |
297 'events/events.gyp:events_test_support', | 302 'events/events.gyp:events_test_support', |
(...skipping 30 matching lines...) Expand all Loading... | |
328 'sources/': [ | 333 'sources/': [ |
329 # Pull in specific Mac files for iOS (which have been filtered out | 334 # Pull in specific Mac files for iOS (which have been filtered out |
330 # by file name rules). | 335 # by file name rules). |
331 ['include', '^base/l10n/l10n_util_mac_unittest\\.mm$'], | 336 ['include', '^base/l10n/l10n_util_mac_unittest\\.mm$'], |
332 ], | 337 ], |
333 }], | 338 }], |
334 ], | 339 ], |
335 }, | 340 }, |
336 ], | 341 ], |
337 'conditions': [ | 342 'conditions': [ |
343 # Mac target to build a test Framework bundle to mock out resource loading. | |
344 ['OS == "mac"', { | |
345 'targets': [ | |
346 { | |
347 'target_name': 'ui_unittests_bundle', | |
348 'type': 'shared_library', | |
349 'dependencies': [ | |
350 'resources/ui_resources.gyp:ui_test_pak', | |
tfarina
2014/03/11 18:22:03
if you include this at line 76 regardless of the p
tapted
2014/03/11 22:35:37
The mock framework needs the dependency for its po
| |
351 ], | |
352 'includes': [ 'ui_unittests_bundle.gypi' ], | |
353 }, | |
354 ], | |
355 }], | |
338 # Special target to wrap a gtest_target_type==shared_library | 356 # Special target to wrap a gtest_target_type==shared_library |
339 # ui_unittests into an android apk for execution. | 357 # ui_unittests into an android apk for execution. |
340 # See base.gyp for TODO(jrg)s about this strategy. | 358 # See base.gyp for TODO(jrg)s about this strategy. |
341 ['OS == "android" and gtest_target_type == "shared_library"', { | 359 ['OS == "android" and gtest_target_type == "shared_library"', { |
342 'targets': [ | 360 'targets': [ |
343 { | 361 { |
344 'target_name': 'ui_unittests_apk', | 362 'target_name': 'ui_unittests_apk', |
345 'type': 'none', | 363 'type': 'none', |
346 'dependencies': [ | 364 'dependencies': [ |
347 'ui_unittests', | 365 'ui_unittests', |
348 ], | 366 ], |
349 'variables': { | 367 'variables': { |
350 'test_suite_name': 'ui_unittests', | 368 'test_suite_name': 'ui_unittests', |
351 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unitte sts<(SHARED_LIB_SUFFIX)', | 369 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unitte sts<(SHARED_LIB_SUFFIX)', |
352 }, | 370 }, |
353 'includes': [ '../build/apk_test.gypi' ], | 371 'includes': [ '../build/apk_test.gypi' ], |
354 }, | 372 }, |
355 ], | 373 ], |
356 }], | 374 }], |
357 ], | 375 ], |
358 } | 376 } |
OLD | NEW |