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', |
65 '../skia/skia.gyp:skia', | 66 '../skia/skia.gyp:skia', |
66 '../testing/gmock.gyp:gmock', | 67 '../testing/gmock.gyp:gmock', |
67 '../testing/gtest.gyp:gtest', | 68 '../testing/gtest.gyp:gtest', |
68 '../third_party/icu/icu.gyp:icui18n', | 69 '../third_party/icu/icu.gyp:icui18n', |
69 '../third_party/icu/icu.gyp:icuuc', | 70 '../third_party/icu/icu.gyp:icuuc', |
70 '../third_party/libpng/libpng.gyp:libpng', | 71 '../third_party/libpng/libpng.gyp:libpng', |
71 '../url/url.gyp:url_lib', | 72 '../url/url.gyp:url_lib', |
72 'base/strings/ui_strings.gyp:ui_strings', | 73 'base/strings/ui_strings.gyp:ui_strings', |
73 'events/events.gyp:events_base', | 74 'events/events.gyp:events_base', |
74 'gfx/gfx.gyp:gfx_geometry_unittests', | 75 'gfx/gfx.gyp:gfx_geometry_unittests', |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 }], | 279 }], |
279 ['use_x11==1 and use_aura==1', { | 280 ['use_x11==1 and use_aura==1', { |
280 'sources': [ | 281 'sources': [ |
281 'base/cursor/cursor_loader_x11_unittest.cc', | 282 'base/cursor/cursor_loader_x11_unittest.cc', |
282 ], | 283 ], |
283 }], | 284 }], |
284 ['OS=="mac"', { | 285 ['OS=="mac"', { |
285 'dependencies': [ | 286 'dependencies': [ |
286 'events/events.gyp:events_test_support', | 287 'events/events.gyp:events_test_support', |
287 'gfx/gfx.gyp:gfx_test_support', | 288 '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', | |
293 ], | 289 ], |
294 }], | 290 }], |
295 ['use_aura==1 or toolkit_views==1', { | 291 ['use_aura==1 or toolkit_views==1', { |
296 'sources': [ | 292 'sources': [ |
297 'base/dragdrop/os_exchange_data_unittest.cc', | 293 'base/dragdrop/os_exchange_data_unittest.cc', |
298 ], | 294 ], |
299 'dependencies': [ | 295 'dependencies': [ |
300 'events/events.gyp:events', | 296 'events/events.gyp:events', |
301 'events/events.gyp:events_base', | 297 'events/events.gyp:events_base', |
302 'events/events.gyp:events_test_support', | 298 'events/events.gyp:events_test_support', |
(...skipping 30 matching lines...) Expand all Loading... |
333 'sources/': [ | 329 'sources/': [ |
334 # Pull in specific Mac files for iOS (which have been filtered out | 330 # Pull in specific Mac files for iOS (which have been filtered out |
335 # by file name rules). | 331 # by file name rules). |
336 ['include', '^base/l10n/l10n_util_mac_unittest\\.mm$'], | 332 ['include', '^base/l10n/l10n_util_mac_unittest\\.mm$'], |
337 ], | 333 ], |
338 }], | 334 }], |
339 ], | 335 ], |
340 }, | 336 }, |
341 ], | 337 ], |
342 'conditions': [ | 338 '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', | |
351 ], | |
352 'includes': [ 'ui_unittests_bundle.gypi' ], | |
353 }, | |
354 ], | |
355 }], | |
356 # Special target to wrap a gtest_target_type==shared_library | 339 # Special target to wrap a gtest_target_type==shared_library |
357 # ui_unittests into an android apk for execution. | 340 # ui_unittests into an android apk for execution. |
358 # See base.gyp for TODO(jrg)s about this strategy. | 341 # See base.gyp for TODO(jrg)s about this strategy. |
359 ['OS == "android" and gtest_target_type == "shared_library"', { | 342 ['OS == "android" and gtest_target_type == "shared_library"', { |
360 'targets': [ | 343 'targets': [ |
361 { | 344 { |
362 'target_name': 'ui_unittests_apk', | 345 'target_name': 'ui_unittests_apk', |
363 'type': 'none', | 346 'type': 'none', |
364 'dependencies': [ | 347 'dependencies': [ |
365 'ui_unittests', | 348 'ui_unittests', |
366 ], | 349 ], |
367 'variables': { | 350 'variables': { |
368 'test_suite_name': 'ui_unittests', | 351 'test_suite_name': 'ui_unittests', |
369 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unitte
sts<(SHARED_LIB_SUFFIX)', | 352 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unitte
sts<(SHARED_LIB_SUFFIX)', |
370 }, | 353 }, |
371 'includes': [ '../build/apk_test.gypi' ], | 354 'includes': [ '../build/apk_test.gypi' ], |
372 }, | 355 }, |
373 ], | 356 ], |
374 }], | 357 }], |
375 ], | 358 ], |
376 } | 359 } |
OLD | NEW |