OLD | NEW |
| (Empty) |
1 # | |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | |
3 # | |
4 # Redistribution and use in source and binary forms, with or without | |
5 # modification, are permitted provided that the following conditions are | |
6 # met: | |
7 # | |
8 # * Redistributions of source code must retain the above copyright | |
9 # notice, this list of conditions and the following disclaimer. | |
10 # * Redistributions in binary form must reproduce the above | |
11 # copyright notice, this list of conditions and the following disclaimer | |
12 # in the documentation and/or other materials provided with the | |
13 # distribution. | |
14 # * Neither the name of Google Inc. nor the names of its | |
15 # contributors may be used to endorse or promote products derived from | |
16 # this software without specific prior written permission. | |
17 # | |
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
29 # | |
30 { | |
31 'includes': [ | |
32 '../build/win/precompile.gypi', | |
33 'blink_platform.gypi', | |
34 'heap/blink_heap.gypi', | |
35 ], | |
36 'targets': [ | |
37 { | |
38 'target_name': 'blink_heap_unittests', | |
39 'type': 'executable', | |
40 'dependencies': [ | |
41 '../config.gyp:unittest_config', | |
42 '../wtf/wtf.gyp:wtf', | |
43 '<(DEPTH)/base/base.gyp:test_support_base', | |
44 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content', | |
45 'blink_platform.gyp:blink_platform', | |
46 'blink_platform_test_support', | |
47 ], | |
48 'defines': [ | |
49 'INSIDE_BLINK', | |
50 ], | |
51 'sources': [ | |
52 'heap/RunAllTests.cpp', | |
53 '<@(platform_heap_test_files)', | |
54 ], | |
55 'conditions': [ | |
56 ['OS=="android"', { | |
57 'type': 'shared_library', | |
58 'dependencies': [ | |
59 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | |
60 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2', | |
61 ], | |
62 }], | |
63 ], | |
64 }, | |
65 { | |
66 'target_name': 'blink_platform_unittests', | |
67 'type': 'executable', | |
68 'dependencies': [ | |
69 'blink_platform_test_support', | |
70 '../config.gyp:unittest_config', | |
71 '../wtf/wtf.gyp:wtf', | |
72 '<(DEPTH)/base/base.gyp:test_support_base', | |
73 '<(DEPTH)/cc/cc.gyp:cc', | |
74 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', | |
75 '<(DEPTH)/cc/blink/cc_blink.gyp:cc_blink', | |
76 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_common_test_support', | |
77 '<(DEPTH)/mojo/mojo_edk_tests.gyp:mojo_public_bindings_for_blink_tests', | |
78 '<(DEPTH)/net/net.gyp:net', | |
79 '<(DEPTH)/skia/skia.gyp:skia', | |
80 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', | |
81 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', | |
82 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | |
83 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
84 '<(DEPTH)/url/url.gyp:url_lib', | |
85 '<(DEPTH)/url/url.gyp:url_interfaces_mojom_for_blink', | |
86 '<(DEPTH)/url/url.gyp:url_test_interfaces_mojom_for_blink', | |
87 'blink_platform.gyp:blink_platform', | |
88 ], | |
89 'defines': [ | |
90 'INSIDE_BLINK', | |
91 ], | |
92 'include_dirs': [ | |
93 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
94 ], | |
95 'sources': [ | |
96 'testing/RunAllTests.cpp', | |
97 '<@(platform_test_files)', | |
98 ], | |
99 'conditions': [ | |
100 ['OS=="android" and gtest_target_type == "shared_library"', { | |
101 'type': 'shared_library', | |
102 'dependencies': [ | |
103 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | |
104 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2', | |
105 ], | |
106 }], | |
107 ], | |
108 }, | |
109 { | |
110 'target_name': 'image_decode_bench', | |
111 'type': 'executable', | |
112 'dependencies': [ | |
113 '../config.gyp:config', | |
114 '../wtf/wtf.gyp:wtf', | |
115 'blink_platform.gyp:blink_platform', | |
116 ], | |
117 'defines': [ | |
118 'INSIDE_BLINK', | |
119 ], | |
120 'sources': [ | |
121 'testing/ImageDecodeBench.cpp', | |
122 ], | |
123 }, | |
124 { | |
125 'target_name': 'blink_platform_test_support', | |
126 'type': 'static_library', | |
127 'dependencies': [ | |
128 '../config.gyp:config', | |
129 '../wtf/wtf.gyp:wtf', | |
130 'blink_platform.gyp:blink_common', | |
131 'blink_platform.gyp:blink_platform', | |
132 '<(DEPTH)/cc/cc.gyp:cc', | |
133 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', | |
134 '<(DEPTH)/cc/blink/cc_blink.gyp:cc_blink', | |
135 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl', | |
136 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
137 '<(DEPTH)/testing/gmock.gyp:gmock', | |
138 ], | |
139 'defines': [ | |
140 'INSIDE_BLINK', | |
141 ], | |
142 'include_dirs': [ | |
143 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
144 ], | |
145 'sources': [ | |
146 '<@(platform_test_support_files)', | |
147 ], | |
148 # Disable c4267 warnings until we fix size_t to int truncations. | |
149 'msvs_disabled_warnings': [ 4267 ], | |
150 }, | |
151 ], | |
152 'conditions': [ | |
153 ['OS=="android" and gtest_target_type == "shared_library"', { | |
154 'targets': [{ | |
155 'target_name': 'blink_heap_unittests_apk', | |
156 'type': 'none', | |
157 'dependencies': [ | |
158 '<(DEPTH)/base/base.gyp:base_java', | |
159 '<(DEPTH)/net/net.gyp:net_java', | |
160 'blink_heap_unittests', | |
161 ], | |
162 'conditions': [ | |
163 ['v8_use_external_startup_data==1', { | |
164 'dependencies': [ | |
165 '<(DEPTH)/v8/src/v8.gyp:v8_external_snapshot', | |
166 ], | |
167 'variables': { | |
168 'dest_path': '<(asset_location)', | |
169 'renaming_sources': [ | |
170 '<(PRODUCT_DIR)/natives_blob.bin', | |
171 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
172 ], | |
173 'renaming_destinations': [ | |
174 'natives_blob_<(arch_suffix).bin', | |
175 'snapshot_blob_<(arch_suffix).bin', | |
176 ], | |
177 'clear': 1, | |
178 }, | |
179 'includes': ['../../../../build/android/copy_ex.gypi'], | |
180 }], | |
181 ], | |
182 'variables': { | |
183 'test_suite_name': 'blink_heap_unittests', | |
184 'conditions': [ | |
185 ['v8_use_external_startup_data==1', { | |
186 'asset_location': '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets'
, | |
187 'additional_input_paths': [ | |
188 '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets/natives_blob_<(a
rch_suffix).bin', | |
189 '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets/snapshot_blob_<(
arch_suffix).bin', | |
190 ], | |
191 }], | |
192 ], | |
193 }, | |
194 'includes': [ | |
195 '../../../../build/apk_test.gypi', | |
196 '../../../../build/android/v8_external_startup_data_arch_suffix.gypi', | |
197 ], | |
198 }, | |
199 { | |
200 'target_name': 'blink_platform_unittests_apk', | |
201 'type': 'none', | |
202 'dependencies': [ | |
203 '<(DEPTH)/base/base.gyp:base_java', | |
204 '<(DEPTH)/net/net.gyp:net_java', | |
205 'blink_platform_unittests', | |
206 ], | |
207 'variables': { | |
208 'test_suite_name': 'blink_platform_unittests', | |
209 }, | |
210 'includes': [ '../../../../build/apk_test.gypi' ], | |
211 }], | |
212 }], | |
213 ['test_isolation_mode != "noop"', { | |
214 'targets': [ | |
215 { | |
216 'target_name': 'blink_heap_unittests_run', | |
217 'type': 'none', | |
218 'dependencies': [ | |
219 'blink_heap_unittests', | |
220 ], | |
221 'includes': [ | |
222 '../../../../build/isolate.gypi', | |
223 ], | |
224 'sources': [ | |
225 'blink_heap_unittests.isolate', | |
226 ], | |
227 }, | |
228 { | |
229 'target_name': 'blink_platform_unittests_run', | |
230 'type': 'none', | |
231 'dependencies': [ | |
232 'blink_platform_unittests', | |
233 ], | |
234 'includes': [ | |
235 '../../../../build/isolate.gypi', | |
236 ], | |
237 'sources': [ | |
238 'blink_platform_unittests.isolate', | |
239 ], | |
240 } | |
241 ], | |
242 }], | |
243 ], | |
244 } | |
OLD | NEW |