OLD | NEW |
1 # | 1 # |
2 # Copyright (C) 2011 Google Inc. All rights reserved. | 2 # Copyright (C) 2011 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 'cflags_cc': ['-Wno-c++0x-compat'], | 134 'cflags_cc': ['-Wno-c++0x-compat'], |
135 }, | 135 }, |
136 }], | 136 }], |
137 ['OS=="android" and gtest_target_type == "shared_library"', { | 137 ['OS=="android" and gtest_target_type == "shared_library"', { |
138 # Wrap libwebkit_unit_tests.so into an android apk for execution. | 138 # Wrap libwebkit_unit_tests.so into an android apk for execution. |
139 'targets': [{ | 139 'targets': [{ |
140 'target_name': 'webkit_unit_tests_apk', | 140 'target_name': 'webkit_unit_tests_apk', |
141 'type': 'none', | 141 'type': 'none', |
142 'dependencies': [ | 142 'dependencies': [ |
143 '<(DEPTH)/base/base.gyp:base_java', | 143 '<(DEPTH)/base/base.gyp:base_java', |
144 '<(DEPTH)/content/content_shell_and_tests.gyp:content_shell_
pak', | 144 '<(DEPTH)/content/content.gyp:content_shell_assets_copy', |
145 '<(DEPTH)/net/net.gyp:net_java', | 145 '<(DEPTH)/net/net.gyp:net_java', |
146 'webkit_unit_tests', | 146 'webkit_unit_tests', |
147 ], | 147 ], |
148 'conditions': [ | |
149 ['v8_use_external_startup_data==1', { | |
150 'dependencies': [ | |
151 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_external_snapshot', | |
152 '<(DEPTH)/content/content.gyp:content_v8_external_data', | |
153 ], | |
154 }], | |
155 ], | |
156 'variables': { | 148 'variables': { |
157 'test_suite_name': 'webkit_unit_tests', | 149 'test_suite_name': 'webkit_unit_tests', |
158 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)w
ebkit_unit_tests<(SHARED_LIB_SUFFIX)', | 150 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)w
ebkit_unit_tests<(SHARED_LIB_SUFFIX)', |
159 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/ass
ets/content_shell.pak'], | 151 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/ass
ets/content_shell.pak'], |
160 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', | 152 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', |
161 'conditions': [ | 153 'conditions': [ |
162 ['v8_use_external_startup_data==1', { | 154 ['v8_use_external_startup_data==1', { |
163 'additional_input_paths': [ | 155 'additional_input_paths': [ |
164 '<(PRODUCT_DIR)/content_shell/assets/natives_blob.bin'
, | 156 '<(PRODUCT_DIR)/content_shell/assets/natives_blob_<(ar
ch_suffix).bin', |
165 '<(PRODUCT_DIR)/content_shell/assets/snapshot_blob.bin
', | 157 '<(PRODUCT_DIR)/content_shell/assets/snapshot_blob_<(a
rch_suffix).bin', |
166 ], | 158 ], |
167 }], | 159 }], |
168 ], | 160 ], |
169 }, | 161 }, |
170 'includes': [ '../../../../build/apk_test.gypi' ], | 162 'includes': [ |
| 163 '../../../../build/apk_test.gypi', |
| 164 '../../../../build/android/v8_external_startup_data_arch_suffi
x.gypi', |
| 165 ], |
171 }], | 166 }], |
172 }], | 167 }], |
173 ['test_isolation_mode != "noop"', { | 168 ['test_isolation_mode != "noop"', { |
174 'targets': [ | 169 'targets': [ |
175 { | 170 { |
176 'target_name': 'webkit_unit_tests_run', | 171 'target_name': 'webkit_unit_tests_run', |
177 'type': 'none', | 172 'type': 'none', |
178 'dependencies': [ | 173 'dependencies': [ |
179 'webkit_unit_tests', | 174 'webkit_unit_tests', |
180 ], | 175 ], |
181 'includes': [ | 176 'includes': [ |
182 '../../../../build/isolate.gypi', | 177 '../../../../build/isolate.gypi', |
183 ], | 178 ], |
184 'sources': [ | 179 'sources': [ |
185 'webkit_unit_tests.isolate', | 180 'webkit_unit_tests.isolate', |
186 ], | 181 ], |
187 }, | 182 }, |
188 ], | 183 ], |
189 }], | 184 }], |
190 ], | 185 ], |
191 } | 186 } |
OLD | NEW |