Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: BUILD.gn

Issue 2417703003: parser fuzzer and parser shell should also work in component builds (Closed)
Patch Set: updates Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/parsing/parse-info.h » ('j') | src/parsing/parser.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 deps = [ 2382 deps = [
2383 ":v8", 2383 ":v8",
2384 ] 2384 ]
2385 2385
2386 public_deps = [ 2386 public_deps = [
2387 ":v8_libbase", 2387 ":v8_libbase",
2388 ":v8_libplatform", 2388 ":v8_libplatform",
2389 ] 2389 ]
2390 } 2390 }
2391 2391
2392 # Used by fuzzers that would require exposing too many symbols for a proper
2393 # component build.
2394 v8_source_set("fuzzer_support_nocomponent") {
2395 visibility = [ ":*" ] # Only targets in this file can depend on this.
2396
2397 sources = [
2398 "test/fuzzer/fuzzer-support.cc",
2399 "test/fuzzer/fuzzer-support.h",
2400 ]
2401
2402 configs = [ ":internal_config_base" ]
2403
2404 deps = [
2405 ":v8_maybe_snapshot",
2406 ]
2407
2408 if (is_component_build) {
2409 defines = [ "BUILDING_V8_SHARED" ]
2410 }
2411
2412 public_deps = [
2413 ":v8_libbase",
2414 ":v8_libplatform",
2415 ]
2416 }
2417
2418 v8_source_set("simple_fuzzer") { 2392 v8_source_set("simple_fuzzer") {
2419 sources = [ 2393 sources = [
2420 "test/fuzzer/fuzzer.cc", 2394 "test/fuzzer/fuzzer.cc",
2421 ] 2395 ]
2422 2396
2423 configs = [ ":internal_config_base" ] 2397 configs = [ ":internal_config_base" ]
2424 } 2398 }
2425 2399
2426 ############################################################################### 2400 ###############################################################################
2427 # Executables 2401 # Executables
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2644 "tools/parser-shell.cc", 2618 "tools/parser-shell.cc",
2645 "tools/shell-utils.h", 2619 "tools/shell-utils.h",
2646 ] 2620 ]
2647 2621
2648 configs = [ 2622 configs = [
2649 ":external_config", 2623 ":external_config",
2650 ":internal_config_base", 2624 ":internal_config_base",
2651 ] 2625 ]
2652 2626
2653 deps = [ 2627 deps = [
2628 ":v8",
2654 ":v8_libbase", 2629 ":v8_libbase",
2655 ":v8_libplatform", 2630 ":v8_libplatform",
2656 "//build/config/sanitizers:deps", 2631 "//build/config/sanitizers:deps",
2657 "//build/win:default_exe_manifest", 2632 "//build/win:default_exe_manifest",
2658 ] 2633 ]
2659 2634
2660 defines = []
2661
2662 if (is_component_build) {
2663 # v8_parser_shell can't be built against a shared library, so we
2664 # need to depend on the underlying static target in that case.
2665 deps += [ ":v8_maybe_snapshot" ]
2666 defines += [ "BUILDING_V8_SHARED" ]
2667 } else {
2668 deps += [ ":v8" ]
2669 }
2670
2671 if (v8_enable_i18n_support) { 2635 if (v8_enable_i18n_support) {
2672 deps += [ "//third_party/icu" ] 2636 deps += [ "//third_party/icu" ]
2673 } 2637 }
2674
2675 if (is_win) {
2676 # Suppress warnings about importing locally defined symbols.
2677 if (is_component_build) {
2678 ldflags = [
2679 "/ignore:4049",
2680 "/ignore:4217",
2681 ]
2682 }
2683 }
2684 } 2638 }
2685 2639
2686 if (want_v8_shell) { 2640 if (want_v8_shell) {
2687 v8_executable("v8_shell") { 2641 v8_executable("v8_shell") {
2688 sources = [ 2642 sources = [
2689 "samples/shell.cc", 2643 "samples/shell.cc",
2690 ] 2644 ]
2691 2645
2692 configs = [ 2646 configs = [
2693 # Note: don't use :internal_config here because this target will get 2647 # Note: don't use :internal_config here because this target will get
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2741 2695
2742 v8_fuzzer("json_fuzzer") { 2696 v8_fuzzer("json_fuzzer") {
2743 } 2697 }
2744 2698
2745 v8_source_set("parser_fuzzer") { 2699 v8_source_set("parser_fuzzer") {
2746 sources = [ 2700 sources = [
2747 "test/fuzzer/parser.cc", 2701 "test/fuzzer/parser.cc",
2748 ] 2702 ]
2749 2703
2750 deps = [ 2704 deps = [
2751 ":fuzzer_support_nocomponent", 2705 ":fuzzer_support",
2752 ] 2706 ]
2753 2707
2754 if (is_component_build) {
2755 defines = [ "BUILDING_V8_SHARED" ]
2756 }
2757
2758 configs = [ 2708 configs = [
2759 ":external_config", 2709 ":external_config",
2760 ":internal_config_base", 2710 ":internal_config_base",
2761 ] 2711 ]
2762 } 2712 }
2763 2713
2764 v8_fuzzer("parser_fuzzer") { 2714 v8_fuzzer("parser_fuzzer") {
2765 } 2715 }
2766 2716
2767 v8_source_set("regexp_fuzzer") { 2717 v8_source_set("regexp_fuzzer") {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
3007 ] 2957 ]
3008 2958
3009 configs = [ 2959 configs = [
3010 ":external_config", 2960 ":external_config",
3011 ":internal_config_base", 2961 ":internal_config_base",
3012 ] 2962 ]
3013 } 2963 }
3014 2964
3015 v8_fuzzer("wasm_data_section_fuzzer") { 2965 v8_fuzzer("wasm_data_section_fuzzer") {
3016 } 2966 }
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parse-info.h » ('j') | src/parsing/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698