dedf6f6d74
Reason for revert: let's see whether it sticks this time Original issue's description: > Revert of Reland "Turn libbase into a component" (patchset #1 id:1 of https://codereview.chromium.org/2395553002/ ) > > Reason for revert: > Speculative revert due to very strange-looking win/dbg failures > which reference SignedDivisionByConstant: > > https://build.chromium.org/p/client.v8/builders/V8%20Win64%20-%20debug/builds/12736 > > Original issue's description: > > Reland "Turn libbase into a component" > > > > Original issue's description: > > > Turn libbase into a component > > > > > > This is a precondition for turning libplatform into a component > > > > > > BUG=v8:5412 > > > R=jgruber@chromium.org,machenbach@chromium.org > > > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_compile_ > > dbg_ng;master.tryserver.chromium.android:android_clang_dbg_recipe > > > > > > Committed: https://crrev.com/614e615775f732d71b5ee94ed29737d8de687104 > > > Cr-Commit-Position: refs/heads/master@{#39950} > > > > BUG=v8:5412 > > TBR=jgruber@chromium.org,machenbach@chromium.org > > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_compile_dbg_ng;master.tryserver.chromium.android:android_clang_dbg_recipe;master.tryserver.chromium.mac:mac_chromium_compile_dbg_ng > > > > Committed: https://crrev.com/17cb51254cafa932025e9980b60f89f756d411cb > > Cr-Commit-Position: refs/heads/master@{#39969} > > TBR=jgruber@chromium.org,machenbach@chromium.org,jochen@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=v8:5412 > > Committed: https://crrev.com/e75b9f6ed5da39e6c7a8d70cf48afbc9958afc85 > Cr-Commit-Position: refs/heads/master@{#40009} TBR=jgruber@chromium.org,machenbach@chromium.org,adamk@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=v8:5412 Review-Url: https://codereview.chromium.org/2399323002 Cr-Commit-Position: refs/heads/master@{#40068}
449 lines
10 KiB
Python
449 lines
10 KiB
Python
# Copyright 2016 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
{
|
|
'variables': {
|
|
'v8_code': 1,
|
|
},
|
|
'includes': ['../../gypfiles/toolchain.gypi', '../../gypfiles/features.gypi'],
|
|
'targets': [
|
|
{
|
|
'target_name': 'v8_simple_json_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'json_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'json_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'json.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_parser_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'parser_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'parser_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support_nocomponent',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'parser.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_regexp_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'regexp_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'regexp_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'regexp.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_asmjs_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_asmjs_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_asmjs_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-asmjs.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_code_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_code_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_code_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-code.cc',
|
|
'../common/wasm/test-signatures.h',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_data_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_data_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_data_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-data-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_function_sigs_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_function_sigs_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_function_sigs_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-function-sigs-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_globals_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_globals_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_globals_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-globals-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_imports_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_imports_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_imports_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-imports-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_memory_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_memory_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_memory_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-memory-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_names_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_names_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_names_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-names-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'v8_simple_wasm_types_section_fuzzer',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'wasm_types_section_fuzzer_lib',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [
|
|
'fuzzer.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wasm_types_section_fuzzer_lib',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'fuzzer_support',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'wasm-types-section.cc',
|
|
'../common/wasm/wasm-module-runner.cc',
|
|
'../common/wasm/wasm-module-runner.h',
|
|
'wasm-section-fuzzers.cc',
|
|
'wasm-section-fuzzers.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'fuzzer_support',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'../../src/v8.gyp:v8',
|
|
'../../src/v8.gyp:v8_libbase',
|
|
'../../src/v8.gyp:v8_libplatform',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'fuzzer-support.cc',
|
|
'fuzzer-support.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'fuzzer_support_nocomponent',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'../../src/v8.gyp:v8_libbase',
|
|
'../../src/v8.gyp:v8_libplatform',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'fuzzer-support.cc',
|
|
'fuzzer-support.h',
|
|
],
|
|
'conditions': [
|
|
['component=="shared_library"', {
|
|
# fuzzers can't be built against a shared library, so we need to
|
|
# depend on the underlying static target in that case.
|
|
'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'],
|
|
}, {
|
|
'dependencies': ['../../src/v8.gyp:v8'],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
'conditions': [
|
|
['test_isolation_mode != "noop"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'fuzzer_run',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'v8_simple_json_fuzzer',
|
|
'v8_simple_parser_fuzzer',
|
|
'v8_simple_regexp_fuzzer',
|
|
'v8_simple_wasm_fuzzer',
|
|
'v8_simple_wasm_asmjs_fuzzer',
|
|
],
|
|
'includes': [
|
|
'../../gypfiles/isolate.gypi',
|
|
],
|
|
'sources': [
|
|
'fuzzer.isolate',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
],
|
|
}
|