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

Side by Side Diff: BUILD.gn

Issue 2360983002: Enable component builds for fuzzers (Closed)
Patch Set: Rebase 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/assert-scope.h » ('j') | no next file with comments »
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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 visibility = [ ":*" ] # Only targets in this file can depend on this. 2328 visibility = [ ":*" ] # Only targets in this file can depend on this.
2329 2329
2330 sources = [ 2330 sources = [
2331 "test/fuzzer/fuzzer-support.cc", 2331 "test/fuzzer/fuzzer-support.cc",
2332 "test/fuzzer/fuzzer-support.h", 2332 "test/fuzzer/fuzzer-support.h",
2333 ] 2333 ]
2334 2334
2335 configs = [ ":internal_config_base" ] 2335 configs = [ ":internal_config_base" ]
2336 2336
2337 deps = [ 2337 deps = [
2338 ":v8",
2339 ]
2340
2341 public_deps = [
2342 ":v8_libplatform",
2343 ]
2344 }
2345
2346 # Used by fuzzers that would require exposing too many symbols for a proper
2347 # component build.
2348 v8_source_set("fuzzer_support_nocomponent") {
2349 visibility = [ ":*" ] # Only targets in this file can depend on this.
2350
2351 sources = [
2352 "test/fuzzer/fuzzer-support.cc",
2353 "test/fuzzer/fuzzer-support.h",
2354 ]
2355
2356 configs = [ ":internal_config_base" ]
2357
2358 deps = [
2338 ":v8_maybe_snapshot", 2359 ":v8_maybe_snapshot",
2339 ] 2360 ]
2340 2361
2341 public_deps = [ 2362 public_deps = [
2342 ":v8_libplatform", 2363 ":v8_libplatform",
2343 ] 2364 ]
2344 } 2365 }
2345 2366
2346 v8_source_set("simple_fuzzer") { 2367 v8_source_set("simple_fuzzer") {
2347 sources = [ 2368 sources = [
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2645 2666
2646 v8_source_set("json_fuzzer") { 2667 v8_source_set("json_fuzzer") {
2647 sources = [ 2668 sources = [
2648 "test/fuzzer/json.cc", 2669 "test/fuzzer/json.cc",
2649 ] 2670 ]
2650 2671
2651 deps = [ 2672 deps = [
2652 ":fuzzer_support", 2673 ":fuzzer_support",
2653 ] 2674 ]
2654 2675
2655 configs = [ ":internal_config" ] 2676 configs = [
2677 ":external_config",
2678 ":internal_config_base",
2679 ]
2656 } 2680 }
2657 2681
2658 v8_fuzzer("json_fuzzer") { 2682 v8_fuzzer("json_fuzzer") {
2659 } 2683 }
2660 2684
2661 v8_source_set("parser_fuzzer") { 2685 v8_source_set("parser_fuzzer") {
2662 sources = [ 2686 sources = [
2663 "test/fuzzer/parser.cc", 2687 "test/fuzzer/parser.cc",
2664 ] 2688 ]
2665 2689
2666 deps = [ 2690 deps = [
2667 ":fuzzer_support", 2691 ":fuzzer_support_nocomponent",
2668 ] 2692 ]
2669 2693
2670 configs = [ ":internal_config" ] 2694 configs = [
2695 ":external_config",
2696 ":internal_config_base",
2697 ]
2671 } 2698 }
2672 2699
2673 v8_fuzzer("parser_fuzzer") { 2700 v8_fuzzer("parser_fuzzer") {
2674 } 2701 }
2675 2702
2676 v8_source_set("regexp_fuzzer") { 2703 v8_source_set("regexp_fuzzer") {
2677 sources = [ 2704 sources = [
2678 "test/fuzzer/regexp.cc", 2705 "test/fuzzer/regexp.cc",
2679 ] 2706 ]
2680 2707
2681 deps = [ 2708 deps = [
2682 ":fuzzer_support", 2709 ":fuzzer_support",
2683 ] 2710 ]
2684 2711
2685 configs = [ ":internal_config" ] 2712 configs = [
2713 ":external_config",
2714 ":internal_config_base",
2715 ]
2686 } 2716 }
2687 2717
2688 v8_fuzzer("regexp_fuzzer") { 2718 v8_fuzzer("regexp_fuzzer") {
2689 } 2719 }
2690 2720
2691 v8_source_set("wasm_module_runner") { 2721 v8_source_set("wasm_module_runner") {
2692 sources = [ 2722 sources = [
2693 "test/common/wasm/wasm-module-runner.cc", 2723 "test/common/wasm/wasm-module-runner.cc",
2694 "test/common/wasm/wasm-module-runner.h", 2724 "test/common/wasm/wasm-module-runner.h",
2695 ] 2725 ]
2696 2726
2697 configs = [ ":internal_config" ] 2727 configs = [
2728 ":external_config",
2729 ":internal_config_base",
2730 ]
2698 } 2731 }
2699 2732
2700 v8_source_set("wasm_fuzzer") { 2733 v8_source_set("wasm_fuzzer") {
2701 sources = [ 2734 sources = [
2702 "test/fuzzer/wasm.cc", 2735 "test/fuzzer/wasm.cc",
2703 ] 2736 ]
2704 2737
2705 deps = [ 2738 deps = [
2706 ":fuzzer_support", 2739 ":fuzzer_support",
2707 ":wasm_module_runner", 2740 ":wasm_module_runner",
2708 ] 2741 ]
2709 2742
2710 configs = [ ":internal_config" ] 2743 configs = [
2744 ":external_config",
2745 ":internal_config_base",
2746 ]
2711 } 2747 }
2712 2748
2713 v8_fuzzer("wasm_fuzzer") { 2749 v8_fuzzer("wasm_fuzzer") {
2714 } 2750 }
2715 2751
2716 v8_source_set("wasm_asmjs_fuzzer") { 2752 v8_source_set("wasm_asmjs_fuzzer") {
2717 sources = [ 2753 sources = [
2718 "test/fuzzer/wasm-asmjs.cc", 2754 "test/fuzzer/wasm-asmjs.cc",
2719 ] 2755 ]
2720 2756
2721 deps = [ 2757 deps = [
2722 ":fuzzer_support", 2758 ":fuzzer_support",
2723 ":wasm_module_runner", 2759 ":wasm_module_runner",
2724 ] 2760 ]
2725 2761
2726 configs = [ ":internal_config" ] 2762 configs = [
2763 ":external_config",
2764 ":internal_config_base",
2765 ]
2727 } 2766 }
2728 2767
2729 v8_fuzzer("wasm_asmjs_fuzzer") { 2768 v8_fuzzer("wasm_asmjs_fuzzer") {
2730 } 2769 }
2731 2770
2732 v8_source_set("wasm_code_fuzzer") { 2771 v8_source_set("wasm_code_fuzzer") {
2733 sources = [ 2772 sources = [
2734 "test/fuzzer/wasm-code.cc", 2773 "test/fuzzer/wasm-code.cc",
2735 ] 2774 ]
2736 2775
2737 deps = [ 2776 deps = [
2738 ":fuzzer_support", 2777 ":fuzzer_support",
2739 ":wasm_module_runner", 2778 ":wasm_module_runner",
2740 ] 2779 ]
2741 2780
2742 configs = [ ":internal_config" ] 2781 configs = [
2782 ":external_config",
2783 ":internal_config_base",
2784 ]
2743 } 2785 }
2744 2786
2745 v8_fuzzer("wasm_code_fuzzer") { 2787 v8_fuzzer("wasm_code_fuzzer") {
2746 } 2788 }
2747 2789
2748 v8_source_set("lib_wasm_section_fuzzer") { 2790 v8_source_set("lib_wasm_section_fuzzer") {
2749 sources = [ 2791 sources = [
2750 "test/fuzzer/wasm-section-fuzzers.cc", 2792 "test/fuzzer/wasm-section-fuzzers.cc",
2751 "test/fuzzer/wasm-section-fuzzers.h", 2793 "test/fuzzer/wasm-section-fuzzers.h",
2752 ] 2794 ]
2753 2795
2754 configs = [ ":internal_config" ] 2796 configs = [
2797 ":external_config",
2798 ":internal_config_base",
2799 ]
2755 } 2800 }
2756 2801
2757 v8_source_set("wasm_types_section_fuzzer") { 2802 v8_source_set("wasm_types_section_fuzzer") {
2758 sources = [ 2803 sources = [
2759 "test/fuzzer/wasm-types-section.cc", 2804 "test/fuzzer/wasm-types-section.cc",
2760 ] 2805 ]
2761 2806
2762 deps = [ 2807 deps = [
2763 ":fuzzer_support", 2808 ":fuzzer_support",
2764 ":lib_wasm_section_fuzzer", 2809 ":lib_wasm_section_fuzzer",
2765 ":wasm_module_runner", 2810 ":wasm_module_runner",
2766 ] 2811 ]
2767 2812
2768 configs = [ ":internal_config" ] 2813 configs = [
2814 ":external_config",
2815 ":internal_config_base",
2816 ]
2769 } 2817 }
2770 2818
2771 v8_fuzzer("wasm_types_section_fuzzer") { 2819 v8_fuzzer("wasm_types_section_fuzzer") {
2772 } 2820 }
2773 2821
2774 v8_source_set("wasm_names_section_fuzzer") { 2822 v8_source_set("wasm_names_section_fuzzer") {
2775 sources = [ 2823 sources = [
2776 "test/fuzzer/wasm-names-section.cc", 2824 "test/fuzzer/wasm-names-section.cc",
2777 ] 2825 ]
2778 2826
2779 deps = [ 2827 deps = [
2780 ":fuzzer_support", 2828 ":fuzzer_support",
2781 ":lib_wasm_section_fuzzer", 2829 ":lib_wasm_section_fuzzer",
2782 ":wasm_module_runner", 2830 ":wasm_module_runner",
2783 ] 2831 ]
2784 2832
2785 configs = [ ":internal_config" ] 2833 configs = [
2834 ":external_config",
2835 ":internal_config_base",
2836 ]
2786 } 2837 }
2787 2838
2788 v8_fuzzer("wasm_names_section_fuzzer") { 2839 v8_fuzzer("wasm_names_section_fuzzer") {
2789 } 2840 }
2790 2841
2791 v8_source_set("wasm_globals_section_fuzzer") { 2842 v8_source_set("wasm_globals_section_fuzzer") {
2792 sources = [ 2843 sources = [
2793 "test/fuzzer/wasm-globals-section.cc", 2844 "test/fuzzer/wasm-globals-section.cc",
2794 ] 2845 ]
2795 2846
2796 deps = [ 2847 deps = [
2797 ":fuzzer_support", 2848 ":fuzzer_support",
2798 ":lib_wasm_section_fuzzer", 2849 ":lib_wasm_section_fuzzer",
2799 ":wasm_module_runner", 2850 ":wasm_module_runner",
2800 ] 2851 ]
2801 2852
2802 configs = [ ":internal_config" ] 2853 configs = [
2854 ":external_config",
2855 ":internal_config_base",
2856 ]
2803 } 2857 }
2804 2858
2805 v8_fuzzer("wasm_globals_section_fuzzer") { 2859 v8_fuzzer("wasm_globals_section_fuzzer") {
2806 } 2860 }
2807 2861
2808 v8_source_set("wasm_imports_section_fuzzer") { 2862 v8_source_set("wasm_imports_section_fuzzer") {
2809 sources = [ 2863 sources = [
2810 "test/fuzzer/wasm-imports-section.cc", 2864 "test/fuzzer/wasm-imports-section.cc",
2811 ] 2865 ]
2812 2866
2813 deps = [ 2867 deps = [
2814 ":fuzzer_support", 2868 ":fuzzer_support",
2815 ":lib_wasm_section_fuzzer", 2869 ":lib_wasm_section_fuzzer",
2816 ":wasm_module_runner", 2870 ":wasm_module_runner",
2817 ] 2871 ]
2818 2872
2819 configs = [ ":internal_config" ] 2873 configs = [
2874 ":external_config",
2875 ":internal_config_base",
2876 ]
2820 } 2877 }
2821 2878
2822 v8_fuzzer("wasm_imports_section_fuzzer") { 2879 v8_fuzzer("wasm_imports_section_fuzzer") {
2823 } 2880 }
2824 2881
2825 v8_source_set("wasm_function_sigs_section_fuzzer") { 2882 v8_source_set("wasm_function_sigs_section_fuzzer") {
2826 sources = [ 2883 sources = [
2827 "test/fuzzer/wasm-function-sigs-section.cc", 2884 "test/fuzzer/wasm-function-sigs-section.cc",
2828 ] 2885 ]
2829 2886
2830 deps = [ 2887 deps = [
2831 ":fuzzer_support", 2888 ":fuzzer_support",
2832 ":lib_wasm_section_fuzzer", 2889 ":lib_wasm_section_fuzzer",
2833 ":wasm_module_runner", 2890 ":wasm_module_runner",
2834 ] 2891 ]
2835 2892
2836 configs = [ ":internal_config" ] 2893 configs = [
2894 ":external_config",
2895 ":internal_config_base",
2896 ]
2837 } 2897 }
2838 2898
2839 v8_fuzzer("wasm_function_sigs_section_fuzzer") { 2899 v8_fuzzer("wasm_function_sigs_section_fuzzer") {
2840 } 2900 }
2841 2901
2842 v8_source_set("wasm_memory_section_fuzzer") { 2902 v8_source_set("wasm_memory_section_fuzzer") {
2843 sources = [ 2903 sources = [
2844 "test/fuzzer/wasm-memory-section.cc", 2904 "test/fuzzer/wasm-memory-section.cc",
2845 ] 2905 ]
2846 2906
2847 deps = [ 2907 deps = [
2848 ":fuzzer_support", 2908 ":fuzzer_support",
2849 ":lib_wasm_section_fuzzer", 2909 ":lib_wasm_section_fuzzer",
2850 ":wasm_module_runner", 2910 ":wasm_module_runner",
2851 ] 2911 ]
2852 2912
2853 configs = [ ":internal_config" ] 2913 configs = [
2914 ":external_config",
2915 ":internal_config_base",
2916 ]
2854 } 2917 }
2855 2918
2856 v8_fuzzer("wasm_memory_section_fuzzer") { 2919 v8_fuzzer("wasm_memory_section_fuzzer") {
2857 } 2920 }
2858 2921
2859 v8_source_set("wasm_data_section_fuzzer") { 2922 v8_source_set("wasm_data_section_fuzzer") {
2860 sources = [ 2923 sources = [
2861 "test/fuzzer/wasm-data-section.cc", 2924 "test/fuzzer/wasm-data-section.cc",
2862 ] 2925 ]
2863 2926
2864 deps = [ 2927 deps = [
2865 ":fuzzer_support", 2928 ":fuzzer_support",
2866 ":lib_wasm_section_fuzzer", 2929 ":lib_wasm_section_fuzzer",
2867 ":wasm_module_runner", 2930 ":wasm_module_runner",
2868 ] 2931 ]
2869 2932
2870 configs = [ ":internal_config" ] 2933 configs = [
2934 ":external_config",
2935 ":internal_config_base",
2936 ]
2871 } 2937 }
2872 2938
2873 v8_fuzzer("wasm_data_section_fuzzer") { 2939 v8_fuzzer("wasm_data_section_fuzzer") {
2874 } 2940 }
OLDNEW
« no previous file with comments | « no previous file | src/assert-scope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698