OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/dcheck_always_on.gni") | 7 import("//build/config/dcheck_always_on.gni") |
8 import("//build/config/mips.gni") | 8 import("//build/config/mips.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 | 10 |
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2395 visibility = [ ":*" ] # Only targets in this file can depend on this. | 2395 visibility = [ ":*" ] # Only targets in this file can depend on this. |
2396 | 2396 |
2397 sources = [ | 2397 sources = [ |
2398 "test/fuzzer/fuzzer-support.cc", | 2398 "test/fuzzer/fuzzer-support.cc", |
2399 "test/fuzzer/fuzzer-support.h", | 2399 "test/fuzzer/fuzzer-support.h", |
2400 ] | 2400 ] |
2401 | 2401 |
2402 configs = [ ":internal_config_base" ] | 2402 configs = [ ":internal_config_base" ] |
2403 | 2403 |
2404 deps = [ | 2404 deps = [ |
2405 ":v8_maybe_snapshot", | 2405 ":v8_maybe_snapshot", |
jgruber
2016/10/13 11:36:17
Just checking - the distinction between fuzzer_sup
jochen (gone - plz use gerrit)
2016/10/13 12:16:34
that's mostly because of missing export annotation
| |
2406 ] | 2406 ] |
2407 | 2407 |
2408 if (is_component_build) { | |
2409 defines = [ "BUILDING_V8_SHARED" ] | |
2410 } | |
2411 | |
2408 public_deps = [ | 2412 public_deps = [ |
2409 ":v8_libbase", | 2413 ":v8_libbase", |
2410 ":v8_libplatform", | 2414 ":v8_libplatform", |
2411 ] | 2415 ] |
2412 } | 2416 } |
2413 | 2417 |
2414 v8_source_set("simple_fuzzer") { | 2418 v8_source_set("simple_fuzzer") { |
2415 sources = [ | 2419 sources = [ |
2416 "test/fuzzer/fuzzer.cc", | 2420 "test/fuzzer/fuzzer.cc", |
2417 ] | 2421 ] |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2646 ":internal_config_base", | 2650 ":internal_config_base", |
2647 ] | 2651 ] |
2648 | 2652 |
2649 deps = [ | 2653 deps = [ |
2650 ":v8_libbase", | 2654 ":v8_libbase", |
2651 ":v8_libplatform", | 2655 ":v8_libplatform", |
2652 "//build/config/sanitizers:deps", | 2656 "//build/config/sanitizers:deps", |
2653 "//build/win:default_exe_manifest", | 2657 "//build/win:default_exe_manifest", |
2654 ] | 2658 ] |
2655 | 2659 |
2660 defines = [] | |
2661 | |
2656 if (is_component_build) { | 2662 if (is_component_build) { |
2657 # v8_parser_shell can't be built against a shared library, so we | 2663 # v8_parser_shell can't be built against a shared library, so we |
2658 # need to depend on the underlying static target in that case. | 2664 # need to depend on the underlying static target in that case. |
2659 deps += [ ":v8_maybe_snapshot" ] | 2665 deps += [ ":v8_maybe_snapshot" ] |
2666 defines += [ "BUILDING_V8_SHARED" ] | |
Michael Achenbach
2016/10/13 11:39:30
Is this reflected in gyp?
jochen (gone - plz use gerrit)
2016/10/13 12:16:34
parser shell just doesn't work in gyp/shared_libra
| |
2660 } else { | 2667 } else { |
2661 deps += [ ":v8" ] | 2668 deps += [ ":v8" ] |
2662 } | 2669 } |
2663 | 2670 |
2664 if (v8_enable_i18n_support) { | 2671 if (v8_enable_i18n_support) { |
2665 deps += [ "//third_party/icu" ] | 2672 deps += [ "//third_party/icu" ] |
2666 } | 2673 } |
2667 | 2674 |
2668 if (is_win) { | 2675 if (is_win) { |
2669 # Suppress warnings about importing locally defined symbols. | 2676 # Suppress warnings about importing locally defined symbols. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2737 | 2744 |
2738 v8_source_set("parser_fuzzer") { | 2745 v8_source_set("parser_fuzzer") { |
2739 sources = [ | 2746 sources = [ |
2740 "test/fuzzer/parser.cc", | 2747 "test/fuzzer/parser.cc", |
2741 ] | 2748 ] |
2742 | 2749 |
2743 deps = [ | 2750 deps = [ |
2744 ":fuzzer_support_nocomponent", | 2751 ":fuzzer_support_nocomponent", |
2745 ] | 2752 ] |
2746 | 2753 |
2754 if (is_component_build) { | |
2755 defines = [ "BUILDING_V8_SHARED" ] | |
2756 } | |
2757 | |
2747 configs = [ | 2758 configs = [ |
2748 ":external_config", | 2759 ":external_config", |
2749 ":internal_config_base", | 2760 ":internal_config_base", |
2750 ] | 2761 ] |
2751 } | 2762 } |
2752 | 2763 |
2753 v8_fuzzer("parser_fuzzer") { | 2764 v8_fuzzer("parser_fuzzer") { |
2754 } | 2765 } |
2755 | 2766 |
2756 v8_source_set("regexp_fuzzer") { | 2767 v8_source_set("regexp_fuzzer") { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2996 ] | 3007 ] |
2997 | 3008 |
2998 configs = [ | 3009 configs = [ |
2999 ":external_config", | 3010 ":external_config", |
3000 ":internal_config_base", | 3011 ":internal_config_base", |
3001 ] | 3012 ] |
3002 } | 3013 } |
3003 | 3014 |
3004 v8_fuzzer("wasm_data_section_fuzzer") { | 3015 v8_fuzzer("wasm_data_section_fuzzer") { |
3005 } | 3016 } |
OLD | NEW |