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.gyp:content_shell_assets_copy', | 144 '<(DEPTH)/content/content_shell_and_tests.gyp:content_shell_
pak', |
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 ], |
148 'variables': { | 156 'variables': { |
149 'test_suite_name': 'webkit_unit_tests', | 157 'test_suite_name': 'webkit_unit_tests', |
150 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)w
ebkit_unit_tests<(SHARED_LIB_SUFFIX)', | 158 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)w
ebkit_unit_tests<(SHARED_LIB_SUFFIX)', |
151 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/ass
ets/content_shell.pak'], | 159 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/ass
ets/content_shell.pak'], |
152 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', | 160 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', |
153 'conditions': [ | 161 'conditions': [ |
154 ['v8_use_external_startup_data==1', { | 162 ['v8_use_external_startup_data==1', { |
155 'additional_input_paths': [ | 163 'additional_input_paths': [ |
156 '<(PRODUCT_DIR)/content_shell/assets/natives_blob_<(ar
ch_suffix).bin', | 164 '<(PRODUCT_DIR)/content_shell/assets/natives_blob.bin'
, |
157 '<(PRODUCT_DIR)/content_shell/assets/snapshot_blob_<(a
rch_suffix).bin', | 165 '<(PRODUCT_DIR)/content_shell/assets/snapshot_blob.bin
', |
158 ], | 166 ], |
159 }], | 167 }], |
160 ], | 168 ], |
161 }, | 169 }, |
162 'includes': [ | 170 'includes': [ '../../../../build/apk_test.gypi' ], |
163 '../../../../build/apk_test.gypi', | |
164 '../../../../build/android/v8_external_startup_data_arch_suffi
x.gypi', | |
165 ], | |
166 }], | 171 }], |
167 }], | 172 }], |
168 ['test_isolation_mode != "noop"', { | 173 ['test_isolation_mode != "noop"', { |
169 'targets': [ | 174 'targets': [ |
170 { | 175 { |
171 'target_name': 'webkit_unit_tests_run', | 176 'target_name': 'webkit_unit_tests_run', |
172 'type': 'none', | 177 'type': 'none', |
173 'dependencies': [ | 178 'dependencies': [ |
174 'webkit_unit_tests', | 179 'webkit_unit_tests', |
175 ], | 180 ], |
176 'includes': [ | 181 'includes': [ |
177 '../../../../build/isolate.gypi', | 182 '../../../../build/isolate.gypi', |
178 ], | 183 ], |
179 'sources': [ | 184 'sources': [ |
180 'webkit_unit_tests.isolate', | 185 'webkit_unit_tests.isolate', |
181 ], | 186 ], |
182 }, | 187 }, |
183 ], | 188 ], |
184 }], | 189 }], |
185 ], | 190 ], |
186 } | 191 } |
OLD | NEW |