2 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
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
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.
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.
32 '../build/win/precompile.gypi',
33 'blink_platform.gypi',
34 'heap/blink_heap.gypi',
38 'target_name': 'blink_heap_unittests',
41 '../config.gyp:unittest_config',
43 '../wtf/wtf_tests.gyp:wtf_unittest_helpers',
44 '<(DEPTH)/base/base.gyp:test_support_base',
45 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
46 'blink_platform.gyp:blink_platform',
52 'heap/RunAllTests.cpp',
53 '<@(platform_heap_test_files)',
56 ['os_posix==1 and OS!="mac" and OS!="android" and OS!="ios" and use_allocator!="none"', {
58 '<(DEPTH)/base/base.gyp:base',
59 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
62 ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
64 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
68 'type': 'shared_library',
70 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
71 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2',
77 'target_name': 'blink_platform_unittests',
80 'blink_platform_test_support',
81 '../config.gyp:unittest_config',
83 '../wtf/wtf_tests.gyp:wtf_unittest_helpers',
84 '<(DEPTH)/base/base.gyp:test_support_base',
85 '<(DEPTH)/skia/skia.gyp:skia',
86 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
87 '<(DEPTH)/url/url.gyp:url_lib',
88 'blink_platform.gyp:blink_common',
89 'blink_platform.gyp:blink_platform',
95 '<(SHARED_INTERMEDIATE_DIR)/blink',
98 'testing/RunAllTests.cpp',
99 '<@(platform_test_files)',
102 ['os_posix==1 and OS!="mac" and OS!="android" and OS!="ios" and use_allocator!="none"', {
104 '<(DEPTH)/base/base.gyp:base',
105 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
108 ['OS=="android" and gtest_target_type == "shared_library"', {
109 'type': 'shared_library',
111 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
112 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2',
118 'target_name': 'blink_platform_test_support',
119 'type': 'static_library',
121 '../config.gyp:config',
122 'blink_platform.gyp:blink_platform',
128 '<@(platform_test_support_files)',
133 ['OS=="android" and gtest_target_type == "shared_library"', {
135 'target_name': 'blink_heap_unittests_apk',
138 '<(DEPTH)/base/base.gyp:base_java',
139 '<(DEPTH)/net/net.gyp:net_java',
140 'blink_heap_unittests',
143 ['v8_use_external_startup_data==1', {
145 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_external_snapshot',
149 'destination': '<(asset_location)',
151 '<(PRODUCT_DIR)/natives_blob.bin',
152 '<(PRODUCT_DIR)/snapshot_blob.bin',
159 'test_suite_name': 'blink_heap_unittests',
161 ['v8_use_external_startup_data==1', {
162 'asset_location': '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets',
163 'additional_input_paths': [
164 '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets/natives_blob.bin',
165 '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets/snapshot_blob.bin',
168 '<(PRODUCT_DIR)/natives_blob.bin',
169 '<(PRODUCT_DIR)/snapshot_blob.bin',
174 'includes': [ '../../../../build/apk_test.gypi' ],
177 'target_name': 'blink_platform_unittests_apk',
180 '<(DEPTH)/base/base.gyp:base_java',
181 '<(DEPTH)/net/net.gyp:net_java',
182 'blink_platform_unittests',
185 'test_suite_name': 'blink_platform_unittests',
187 'includes': [ '../../../../build/apk_test.gypi' ],
190 ['test_isolation_mode != "noop"', {
193 'target_name': 'blink_heap_unittests_run',
196 'blink_heap_unittests',
199 '../../../../build/isolate.gypi',
202 'blink_heap_unittests.isolate',
206 'target_name': 'blink_platform_unittests_run',
209 'blink_platform_unittests',
212 '../../../../build/isolate.gypi',
215 'blink_platform_unittests.isolate',