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, | |
9 'cc_tests_source_files': [ | 8 'cc_tests_source_files': [ |
10 'hash_pair_unittest.cc', | 9 'hash_pair_unittest.cc', |
11 'active_animation_unittest.cc', | 10 'active_animation_unittest.cc', |
12 'damage_tracker_unittest.cc', | 11 'damage_tracker_unittest.cc', |
13 'delay_based_time_source_unittest.cc', | 12 'delay_based_time_source_unittest.cc', |
14 'draw_quad_unittest.cc', | 13 'draw_quad_unittest.cc', |
15 'delegated_renderer_layer_impl_unittest.cc', | 14 'delegated_renderer_layer_impl_unittest.cc', |
16 'frame_rate_controller_unittest.cc', | 15 'frame_rate_controller_unittest.cc', |
17 'heads_up_display_unittest.cc', | 16 'heads_up_display_unittest.cc', |
18 'keyframed_animation_curve_unittest.cc', | 17 'keyframed_animation_curve_unittest.cc', |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 'test/mock_quad_culler.h', | 101 'test/mock_quad_culler.h', |
103 'test/web_compositor_initializer.h', | 102 'test/web_compositor_initializer.h', |
104 ], | 103 ], |
105 }, | 104 }, |
106 'targets': [ | 105 'targets': [ |
107 { | 106 { |
108 'target_name': 'cc_unittests', | 107 'target_name': 'cc_unittests', |
109 'type': '<(gtest_target_type)', | 108 'type': '<(gtest_target_type)', |
110 'dependencies': [ | 109 'dependencies': [ |
111 '../base/base.gyp:test_support_base', | 110 '../base/base.gyp:test_support_base', |
| 111 '../skia/skia.gyp:skia', |
| 112 '../testing/gmock.gyp:gmock', |
112 '../testing/gtest.gyp:gtest', | 113 '../testing/gtest.gyp:gtest', |
113 '../testing/gmock.gyp:gmock', | 114 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 115 'cc.gyp:cc', |
| 116 'cc_test_support', |
114 ], | 117 ], |
115 'sources': [ | 118 'sources': [ |
116 'test/run_all_unittests.cc', | 119 'test/run_all_unittests.cc', |
| 120 '<@(cc_tests_source_files)', |
| 121 ], |
| 122 'include_dirs': [ |
| 123 'stubs', |
| 124 'test', |
| 125 '.', |
| 126 '../third_party/WebKit/Source/Platform/chromium', |
117 ], | 127 ], |
118 'conditions': [ | 128 'conditions': [ |
119 ['use_libcc_for_compositor==1', { | |
120 'dependencies': [ | |
121 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | |
122 '../skia/skia.gyp:skia', | |
123 'cc.gyp:cc', | |
124 'cc_test_support', | |
125 ], | |
126 'defines': [ | |
127 'USE_LIBCC_FOR_COMPOSITOR', | |
128 ], | |
129 'include_dirs': [ | |
130 'stubs', | |
131 'test', | |
132 '.', | |
133 '../third_party/WebKit/Source/Platform/chromium', | |
134 ], | |
135 'sources': [ | |
136 '<@(cc_tests_source_files)', | |
137 ], | |
138 }], | |
139 ['OS == "android" and gtest_target_type == "shared_library"', { | 129 ['OS == "android" and gtest_target_type == "shared_library"', { |
140 'dependencies': [ | 130 'dependencies': [ |
141 '../testing/android/native_test.gyp:native_test_native_code', | 131 '../testing/android/native_test.gyp:native_test_native_code', |
142 ], | 132 ], |
143 }], | 133 }], |
144 ], | 134 ], |
145 }, | 135 }, |
| 136 { |
| 137 'target_name': 'cc_test_support', |
| 138 'type': 'static_library', |
| 139 'include_dirs': [ |
| 140 'stubs', |
| 141 'test', |
| 142 '.', |
| 143 '..', |
| 144 '../third_party/WebKit/Source/Platform/chromium', |
| 145 ], |
| 146 'dependencies': [ |
| 147 '../ui/gl/gl.gyp:gl', |
| 148 '../testing/gtest.gyp:gtest', |
| 149 '../testing/gmock.gyp:gmock', |
| 150 '../skia/skia.gyp:skia', |
| 151 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 152 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_supp
ort', |
| 153 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', |
| 154 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor
_support', |
| 155 '../webkit/support/webkit_support.gyp:glue', |
| 156 ], |
| 157 'sources': [ |
| 158 '<@(cc_tests_support_files)', |
| 159 'test/test_webkit_platform.cc', |
| 160 'test/test_webkit_platform.h', |
| 161 ], |
| 162 }, |
146 ], | 163 ], |
147 'conditions': [ | 164 'conditions': [ |
148 # Special target to wrap a gtest_target_type==shared_library | 165 # Special target to wrap a gtest_target_type==shared_library |
149 # cc_unittests into an android apk for execution. | 166 # cc_unittests into an android apk for execution. |
150 ['OS == "android" and gtest_target_type == "shared_library"', { | 167 ['OS == "android" and gtest_target_type == "shared_library"', { |
151 'targets': [ | 168 'targets': [ |
152 { | 169 { |
153 'target_name': 'cc_unittests_apk', | 170 'target_name': 'cc_unittests_apk', |
154 'type': 'none', | 171 'type': 'none', |
155 'dependencies': [ | 172 'dependencies': [ |
156 'cc_unittests', | 173 'cc_unittests', |
157 ], | 174 ], |
158 'variables': { | 175 'variables': { |
159 'test_suite_name': 'cc_unittests', | 176 'test_suite_name': 'cc_unittests', |
160 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unitte
sts<(SHARED_LIB_SUFFIX)', | 177 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unitte
sts<(SHARED_LIB_SUFFIX)', |
161 }, | 178 }, |
162 'includes': [ '../build/apk_test.gypi' ], | 179 'includes': [ '../build/apk_test.gypi' ], |
163 }, | 180 }, |
164 ], | 181 ], |
165 }], | 182 }], |
166 ['use_libcc_for_compositor==1', { | |
167 'targets': [ | |
168 { | |
169 'target_name': 'cc_test_support', | |
170 'type': 'static_library', | |
171 'include_dirs': [ | |
172 'stubs', | |
173 'test', | |
174 '.', | |
175 '..', | |
176 '../third_party/WebKit/Source/Platform/chromium', | |
177 ], | |
178 'dependencies': [ | |
179 '../ui/gl/gl.gyp:gl', | |
180 '../testing/gtest.gyp:gtest', | |
181 '../testing/gmock.gyp:gmock', | |
182 '../skia/skia.gyp:skia', | |
183 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | |
184 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_
support', | |
185 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', | |
186 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compos
itor_support', | |
187 '../webkit/support/webkit_support.gyp:glue', | |
188 ], | |
189 'sources': [ | |
190 '<@(cc_tests_support_files)', | |
191 'test/test_webkit_platform.cc', | |
192 'test/test_webkit_platform.h', | |
193 ], | |
194 }, | |
195 ], | |
196 }], | |
197 ], | 183 ], |
198 } | 184 } |
OLD | NEW |