| OLD | NEW |
| (Empty) |
| 1 # | |
| 2 # Copyright (C) 2011 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 { | |
| 32 'includes': [ | |
| 33 '../bindings/bindings.gypi', | |
| 34 '../build/features.gypi', | |
| 35 '../build/scripts/scripts.gypi', | |
| 36 '../core/core.gypi', | |
| 37 '../modules/modules.gypi', | |
| 38 '../platform/blink_platform.gypi', | |
| 39 '../web/web.gypi', | |
| 40 '../wtf/wtf.gypi', | |
| 41 ], | |
| 42 'targets': [ | |
| 43 { | |
| 44 # GN version: //third_party/WebKit/Source/web:webkit_unit_tests | |
| 45 'target_name': 'webkit_unit_tests', | |
| 46 'type': 'executable', | |
| 47 'variables': { 'enable_wexit_time_destructors': 1, }, | |
| 48 'dependencies': [ | |
| 49 '../../public/blink.gyp:blink', | |
| 50 '../../public/blink.gyp:mojo_bindings', | |
| 51 '../config.gyp:unittest_config', | |
| 52 '../modules/modules.gyp:modules', | |
| 53 '../platform/blink_platform_tests.gyp:blink_platform_test_suppor
t', | |
| 54 '../wtf/wtf.gyp:wtf', | |
| 55 'web.gyp:blink_web_test_support', | |
| 56 '<(DEPTH)/base/base.gyp:base', | |
| 57 '<(DEPTH)/base/base.gyp:base_i18n', | |
| 58 '<(DEPTH)/base/base.gyp:test_support_base', | |
| 59 '<(DEPTH)/gpu/gpu.gyp:gpu_unittest_utils', | |
| 60 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 61 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 62 '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', | |
| 63 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', | |
| 64 '<(DEPTH)/url/url.gyp:url_lib', | |
| 65 '<(DEPTH)/v8/src/v8.gyp:v8', | |
| 66 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_conte
nt', | |
| 67 ], | |
| 68 'sources': [ | |
| 69 '../web/tests/RunAllTests.cpp', | |
| 70 '<@(bindings_unittest_files)', | |
| 71 '<@(core_unittest_files)', | |
| 72 '<@(modules_unittest_files)', | |
| 73 '<@(platform_web_unittest_files)', | |
| 74 '<@(web_unittest_files)', | |
| 75 ], | |
| 76 'include_dirs': [ | |
| 77 '../../public/web', | |
| 78 '../web', | |
| 79 'src', | |
| 80 ], | |
| 81 'defines': [ | |
| 82 'BLINK_IMPLEMENTATION=1', | |
| 83 'INSIDE_BLINK', | |
| 84 ], | |
| 85 'conditions': [ | |
| 86 ['component!="shared_library"', { | |
| 87 'dependencies': [ | |
| 88 '../core/core.gyp:webcore', | |
| 89 ], | |
| 90 }, { | |
| 91 'dependencies': [ | |
| 92 '../core/core.gyp:webcore_shared', | |
| 93 ], | |
| 94 }], | |
| 95 ['OS=="win" and component!="shared_library"', { | |
| 96 'configurations': { | |
| 97 'Debug_Base': { | |
| 98 'msvs_settings': { | |
| 99 'VCLinkerTool': { | |
| 100 'LinkIncremental': '<(msvs_large_module_debu
g_link_mode)', | |
| 101 }, | |
| 102 }, | |
| 103 }, | |
| 104 }, | |
| 105 }], | |
| 106 ['OS=="android"', { | |
| 107 'type': 'shared_library', | |
| 108 'dependencies': [ | |
| 109 '<(DEPTH)/testing/android/native_test.gyp:native_test_na
tive_code', | |
| 110 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forward
er2', | |
| 111 ], | |
| 112 }], | |
| 113 ['OS=="mac"', { | |
| 114 'include_dirs': [ | |
| 115 '../../public/web/mac', | |
| 116 ], | |
| 117 }], | |
| 118 ], | |
| 119 } | |
| 120 ], # targets | |
| 121 'conditions': [ | |
| 122 ['OS=="android" and gtest_target_type == "shared_library"', { | |
| 123 # Wrap libwebkit_unit_tests.so into an android apk for execution. | |
| 124 'targets': [{ | |
| 125 'target_name': 'webkit_unit_tests_apk', | |
| 126 'type': 'none', | |
| 127 'dependencies': [ | |
| 128 '<(DEPTH)/base/base.gyp:base_java', | |
| 129 '<(DEPTH)/content/content.gyp:content_shell_assets_copy', | |
| 130 '<(DEPTH)/net/net.gyp:net_java', | |
| 131 'webkit_unit_tests', | |
| 132 ], | |
| 133 'variables': { | |
| 134 'test_suite_name': 'webkit_unit_tests', | |
| 135 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)w
ebkit_unit_tests<(SHARED_LIB_SUFFIX)', | |
| 136 'additional_input_paths': ['<(asset_location)/content_shell.
pak'], | |
| 137 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', | |
| 138 'conditions': [ | |
| 139 ['v8_use_external_startup_data==1', { | |
| 140 'additional_input_paths': [ | |
| 141 '<(asset_location)/natives_blob_<(arch_suffix).bin', | |
| 142 '<(asset_location)/snapshot_blob_<(arch_suffix).bin', | |
| 143 ], | |
| 144 }], | |
| 145 ], | |
| 146 }, | |
| 147 'includes': [ | |
| 148 '../../../../build/apk_test.gypi', | |
| 149 '../../../../build/android/v8_external_startup_data_arch_suffi
x.gypi', | |
| 150 ], | |
| 151 }], | |
| 152 }], | |
| 153 ['test_isolation_mode != "noop"', { | |
| 154 'targets': [ | |
| 155 { | |
| 156 'target_name': 'webkit_unit_tests_run', | |
| 157 'type': 'none', | |
| 158 'dependencies': [ | |
| 159 'webkit_unit_tests', | |
| 160 ], | |
| 161 'includes': [ | |
| 162 '../../../../build/isolate.gypi', | |
| 163 ], | |
| 164 'sources': [ | |
| 165 'webkit_unit_tests.isolate', | |
| 166 ], | |
| 167 }, | |
| 168 ], | |
| 169 }], | |
| 170 ], | |
| 171 } | |
| 172 | |
| OLD | NEW |