OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'webkit_compositor_bindings_tests_sources': [ | 8 'webkit_compositor_bindings_tests_sources': [ |
9 'web_animation_unittest.cc', | 9 'web_animation_unittest.cc', |
10 'web_float_animation_curve_unittest.cc', | 10 'web_float_animation_curve_unittest.cc', |
11 'web_layer_impl_fixed_bounds_unittest.cc', | 11 'web_layer_impl_fixed_bounds_unittest.cc', |
12 ], | 12 ], |
13 }, | 13 }, |
14 'targets': [ | 14 'targets': [ |
15 { | 15 { |
16 'target_name': 'webkit_compositor_bindings_unittests', | 16 'target_name': 'webkit_compositor_bindings_unittests', |
17 'type' : '<(gtest_target_type)', | 17 'type' : '<(gtest_target_type)', |
18 'dependencies': [ | 18 'dependencies': [ |
19 '../../base/base.gyp:test_support_base', | 19 '<(DEPTH)/base/base.gyp:test_support_base', |
20 '../../cc/cc.gyp:cc', | 20 '<(DEPTH)/cc/cc.gyp:cc', |
21 '../../cc/cc_tests.gyp:cc_test_support', | 21 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', |
22 '../../skia/skia.gyp:skia', | 22 '<(DEPTH)/skia/skia.gyp:skia', |
23 '../../testing/gmock.gyp:gmock', | 23 '<(DEPTH)/testing/gmock.gyp:gmock', |
24 '../../testing/gtest.gyp:gtest', | 24 '<(DEPTH)/testing/gtest.gyp:gtest', |
25 'compositor_bindings.gyp:webkit_compositor_bindings', | 25 'compositor_bindings.gyp:webkit_compositor_bindings', |
26 ], | 26 ], |
27 'sources': [ | 27 'sources': [ |
28 '<@(webkit_compositor_bindings_tests_sources)', | 28 '<@(webkit_compositor_bindings_tests_sources)', |
29 'test/run_all_unittests.cc', | 29 'test/run_all_unittests.cc', |
30 ], | 30 ], |
31 'include_dirs': [ | 31 'include_dirs': [ |
32 '../..' | 32 '<(DEPTH)' |
33 ], | 33 ], |
34 'conditions': [ | 34 'conditions': [ |
35 ['OS == "android" and gtest_target_type == "shared_library"', { | 35 ['OS == "android" and gtest_target_type == "shared_library"', { |
36 'dependencies': [ | 36 'dependencies': [ |
37 '../../testing/android/native_test.gyp:native_test_native_code', | 37 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
38 ], | 38 ], |
39 }], | 39 }], |
40 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { | 40 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
41 'conditions': [ | 41 'conditions': [ |
42 [ 'linux_use_tcmalloc==1', { | 42 [ 'linux_use_tcmalloc==1', { |
43 'dependencies': [ | 43 'dependencies': [ |
44 '../../base/allocator/allocator.gyp:allocator', | 44 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
45 ], | 45 ], |
46 }], | 46 }], |
47 ], | 47 ], |
48 }], | 48 }], |
49 ], | 49 ], |
50 }, | 50 }, |
51 ], | 51 ], |
52 'conditions': [ | 52 'conditions': [ |
53 # Special target to wrap a gtest_target_type==shared_library | 53 # Special target to wrap a gtest_target_type==shared_library |
54 # package webkit_compositor_bindings_unittests into an android apk for execu
tion. | 54 # package webkit_compositor_bindings_unittests into an android apk for execu
tion. |
55 ['OS == "android" and gtest_target_type == "shared_library"', { | 55 ['OS == "android" and gtest_target_type == "shared_library"', { |
56 'targets': [ | 56 'targets': [ |
57 { | 57 { |
58 'target_name': 'webkit_compositor_bindings_unittests_apk', | 58 'target_name': 'webkit_compositor_bindings_unittests_apk', |
59 'type': 'none', | 59 'type': 'none', |
60 'dependencies': [ | 60 'dependencies': [ |
61 'webkit_compositor_bindings_unittests', | 61 'webkit_compositor_bindings_unittests', |
62 ], | 62 ], |
63 'variables': { | 63 'variables': { |
64 'test_suite_name': 'webkit_compositor_bindings_unittests', | 64 'test_suite_name': 'webkit_compositor_bindings_unittests', |
65 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webkit_co
mpositor_bindings_unittests<(SHARED_LIB_SUFFIX)', | 65 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webkit_co
mpositor_bindings_unittests<(SHARED_LIB_SUFFIX)', |
66 }, | 66 }, |
67 'includes': [ '../../build/apk_test.gypi' ], | 67 'includes': [ '../../../build/apk_test.gypi' ], |
68 }, | 68 }, |
69 ], | 69 ], |
70 }], | 70 }], |
71 ], | 71 ], |
72 } | 72 } |
OLD | NEW |