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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 'test/fake_web_compositor_software_output_device.h', | 99 'test/fake_web_compositor_software_output_device.h', |
100 'test/fake_web_graphics_context_3d.h', | 100 'test/fake_web_graphics_context_3d.h', |
101 'test/fake_web_scrollbar_theme_geometry.h', | 101 'test/fake_web_scrollbar_theme_geometry.h', |
102 'test/mock_quad_culler.h', | 102 'test/mock_quad_culler.h', |
103 'test/web_compositor_initializer.h', | 103 'test/web_compositor_initializer.h', |
104 ], | 104 ], |
105 }, | 105 }, |
106 'targets': [ | 106 'targets': [ |
107 { | 107 { |
108 'target_name': 'cc_unittests', | 108 'target_name': 'cc_unittests', |
109 'type': 'executable', | 109 'type': '<(gtest_target_type)', |
110 'dependencies': [ | 110 'dependencies': [ |
111 '../base/base.gyp:test_support_base', | 111 '../base/base.gyp:test_support_base', |
112 '../testing/gtest.gyp:gtest', | 112 '../testing/gtest.gyp:gtest', |
113 '../testing/gmock.gyp:gmock', | 113 '../testing/gmock.gyp:gmock', |
114 ], | 114 ], |
115 'sources': [ | 115 'sources': [ |
116 'test/run_all_unittests.cc', | 116 'test/run_all_unittests.cc', |
117 ], | 117 ], |
118 'conditions': [ | 118 'conditions': [ |
119 ['use_libcc_for_compositor==1', { | 119 ['use_libcc_for_compositor==1', { |
120 'dependencies': [ | 120 'dependencies': [ |
121 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 121 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
122 '../skia/skia.gyp:skia', | 122 '../skia/skia.gyp:skia', |
123 'cc.gyp:cc', | 123 'cc.gyp:cc', |
124 'cc_test_support', | 124 'cc_test_support', |
125 ], | 125 ], |
126 'defines': [ | 126 'defines': [ |
127 'USE_LIBCC_FOR_COMPOSITOR', | 127 'USE_LIBCC_FOR_COMPOSITOR', |
128 ], | 128 ], |
129 'include_dirs': [ | 129 'include_dirs': [ |
130 'stubs', | 130 'stubs', |
131 'test', | 131 'test', |
132 '.', | 132 '.', |
133 '../third_party/WebKit/Source/Platform/chromium', | 133 '../third_party/WebKit/Source/Platform/chromium', |
134 ], | 134 ], |
135 'sources': [ | 135 'sources': [ |
136 '<@(cc_tests_source_files)', | 136 '<@(cc_tests_source_files)', |
137 ], | 137 ], |
138 }], | 138 }], |
| 139 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 140 'dependencies': [ |
| 141 '../testing/android/native_test.gyp:native_test_native_code', |
| 142 ], |
| 143 }], |
139 ], | 144 ], |
140 }, | 145 }, |
141 ], | 146 ], |
142 'conditions': [ | 147 'conditions': [ |
| 148 # Special target to wrap a gtest_target_type==shared_library |
| 149 # cc_unittests into an android apk for execution. |
| 150 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 151 'targets': [ |
| 152 { |
| 153 'target_name': 'cc_unittests_apk', |
| 154 'type': 'none', |
| 155 'dependencies': [ |
| 156 'cc_unittests', |
| 157 ], |
| 158 'variables': { |
| 159 'test_suite_name': 'cc_unittests', |
| 160 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unitte
sts<(SHARED_LIB_SUFFIX)', |
| 161 }, |
| 162 'includes': [ '../build/apk_test.gypi' ], |
| 163 }, |
| 164 ], |
| 165 }], |
143 ['use_libcc_for_compositor==1', { | 166 ['use_libcc_for_compositor==1', { |
144 'targets': [ | 167 'targets': [ |
145 { | 168 { |
146 'target_name': 'cc_test_support', | 169 'target_name': 'cc_test_support', |
147 'type': 'static_library', | 170 'type': 'static_library', |
148 'include_dirs': [ | 171 'include_dirs': [ |
149 'stubs', | 172 'stubs', |
150 'test', | 173 'test', |
151 '.', | 174 '.', |
152 '..', | 175 '..', |
(...skipping 13 matching lines...) Expand all Loading... |
166 'sources': [ | 189 'sources': [ |
167 '<@(cc_tests_support_files)', | 190 '<@(cc_tests_support_files)', |
168 'test/test_webkit_platform.cc', | 191 'test/test_webkit_platform.cc', |
169 'test/test_webkit_platform.h', | 192 'test/test_webkit_platform.h', |
170 ], | 193 ], |
171 }, | 194 }, |
172 ], | 195 ], |
173 }], | 196 }], |
174 ], | 197 ], |
175 } | 198 } |
OLD | NEW |