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