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': 0, | 7 'chromium_code': 0, |
8 'use_libcc_for_compositor%': 0, | 8 'use_libcc_for_compositor%': 0, |
9 'cc_tests_source_files': [ | 9 'cc_tests_source_files': [ |
10 'hash_pair_unittest.cc', | 10 'hash_pair_unittest.cc', |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 'test/FakeWebGraphicsContext3D.h', | 79 'test/FakeWebGraphicsContext3D.h', |
80 'test/FakeWebScrollbarThemeGeometry.h', | 80 'test/FakeWebScrollbarThemeGeometry.h', |
81 'test/MockCCQuadCuller.cpp', | 81 'test/MockCCQuadCuller.cpp', |
82 'test/MockCCQuadCuller.h', | 82 'test/MockCCQuadCuller.h', |
83 'test/WebCompositorInitializer.h', | 83 'test/WebCompositorInitializer.h', |
84 ], | 84 ], |
85 }, | 85 }, |
86 'targets': [ | 86 'targets': [ |
87 { | 87 { |
88 'target_name': 'cc_unittests', | 88 'target_name': 'cc_unittests', |
89 'type': 'executable', | 89 'type': '<(gtest_target_type)', |
90 'dependencies': [ | 90 'dependencies': [ |
91 '../base/base.gyp:test_support_base', | 91 '../base/base.gyp:test_support_base', |
92 '../testing/gtest.gyp:gtest', | 92 '../testing/gtest.gyp:gtest', |
93 '../testing/gmock.gyp:gmock', | 93 '../testing/gmock.gyp:gmock', |
94 ], | 94 ], |
95 'sources': [ | 95 'sources': [ |
96 'test/run_all_unittests.cc', | 96 'test/run_all_unittests.cc', |
97 ], | 97 ], |
98 'conditions': [ | 98 'conditions': [ |
99 ['use_libcc_for_compositor==1', { | 99 ['use_libcc_for_compositor==1', { |
100 'dependencies': [ | 100 'dependencies': [ |
101 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 101 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
102 '../skia/skia.gyp:skia', | 102 '../skia/skia.gyp:skia', |
103 'cc.gyp:cc', | 103 'cc.gyp:cc', |
104 'cc_test_support', | 104 'cc_test_support', |
105 ], | 105 ], |
106 'defines': [ | 106 'defines': [ |
107 'USE_LIBCC_FOR_COMPOSITOR', | 107 'USE_LIBCC_FOR_COMPOSITOR', |
108 'WTF_USE_ACCELERATED_COMPOSITING=1', | 108 'WTF_USE_ACCELERATED_COMPOSITING=1', |
109 ], | 109 ], |
110 'include_dirs': [ | 110 'include_dirs': [ |
111 'stubs', | 111 'stubs', |
112 'test', | 112 'test', |
113 '.', | 113 '.', |
114 '../third_party/WebKit/Source/Platform/chromium', | 114 '../third_party/WebKit/Source/Platform/chromium', |
115 ], | 115 ], |
116 'sources': [ | 116 'sources': [ |
117 '<@(cc_tests_source_files)', | 117 '<@(cc_tests_source_files)', |
118 ], | 118 ], |
| 119 'conditions': [ |
| 120 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 121 'dependencies': [ |
| 122 '../testing/android/native_test.gyp:native_test_native_code', |
| 123 ], |
| 124 }], |
| 125 ], |
119 }], | 126 }], |
120 ], | 127 ], |
121 }, | 128 }, |
122 ], | 129 ], |
123 'conditions': [ | 130 'conditions': [ |
124 ['use_libcc_for_compositor==1', { | 131 ['use_libcc_for_compositor==1', { |
125 'targets': [ | 132 'targets': [ |
126 { | 133 { |
127 'target_name': 'cc_test_support', | 134 'target_name': 'cc_test_support', |
128 'type': 'static_library', | 135 'type': 'static_library', |
(...skipping 18 matching lines...) Expand all Loading... |
147 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compos
itor_support', | 154 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compos
itor_support', |
148 '../webkit/support/webkit_support.gyp:glue', | 155 '../webkit/support/webkit_support.gyp:glue', |
149 ], | 156 ], |
150 'sources': [ | 157 'sources': [ |
151 '<@(cc_tests_support_files)', | 158 '<@(cc_tests_support_files)', |
152 'test/test_webkit_platform.cc', | 159 'test/test_webkit_platform.cc', |
153 'test/test_webkit_platform.h', | 160 'test/test_webkit_platform.h', |
154 ], | 161 ], |
155 }, | 162 }, |
156 ], | 163 ], |
| 164 'conditions': [ |
| 165 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 166 'targets': [ |
| 167 { |
| 168 'target_name': 'cc_unittests_apk', |
| 169 'type': 'none', |
| 170 'dependencies': [ |
| 171 'cc_unittests', |
| 172 ], |
| 173 'variables': { |
| 174 'test_suite_name': 'cc_unittests', |
| 175 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_un
ittests<(SHARED_LIB_SUFFIX)', |
| 176 }, |
| 177 'includes': [ '../build/apk_test.gypi' ], |
| 178 }], |
| 179 }], |
| 180 ], |
157 }], | 181 }], |
158 ], | 182 ], |
159 } | 183 } |
160 | 184 |
OLD | NEW |