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/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
6 import("//build/toolchain/toolchain.gni") | 6 import("//build/toolchain/toolchain.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/split_static_library.gni") | 8 import("//build/split_static_library.gni") |
9 import("//testing/libfuzzer/fuzzer_test.gni") | 9 import("//testing/libfuzzer/fuzzer_test.gni") |
10 import("//third_party/WebKit/Source/bindings/bindings.gni") | 10 import("//third_party/WebKit/Source/bindings/bindings.gni") |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 rel_blink_core_gen_dir, | 839 rel_blink_core_gen_dir, |
840 bison_exe, | 840 bison_exe, |
841 ] | 841 ] |
842 if (is_mac && !use_system_xcode) { | 842 if (is_mac && !use_system_xcode) { |
843 args += [ hermetic_xcode_path ] | 843 args += [ hermetic_xcode_path ] |
844 } | 844 } |
845 | 845 |
846 deps = make_core_generated_deps | 846 deps = make_core_generated_deps |
847 } | 847 } |
848 | 848 |
| 849 # Targets from above that generate outputs that need to be compiled. |
| 850 # All sources declared as outputs from these targets will be compiled into one |
| 851 # target. |
| 852 targets_generating_sources = [ |
| 853 ":make_core_generated_bison", |
| 854 ":make_core_generated_css_primitive_value_unit_trie", |
| 855 ":make_core_generated_css_property_metadata", |
| 856 ":make_core_generated_computed_style_base", |
| 857 ":make_core_generated_css_property_names", |
| 858 ":make_core_generated_cssom_types", |
| 859 ":make_core_generated_event_factory", |
| 860 ":make_core_generated_event_names", |
| 861 ":make_core_generated_event_target_names", |
| 862 ":make_core_generated_event_type_names", |
| 863 ":make_core_generated_fetch_initiator_type_names", |
| 864 ":make_core_generated_html_element_factory", |
| 865 ":make_core_generated_html_element_lookup_trie", |
| 866 ":make_core_generated_html_entity_table", |
| 867 ":make_core_generated_html_tokenizer_names", |
| 868 ":make_core_generated_input_mode_names", |
| 869 ":make_core_generated_input_type_names", |
| 870 ":make_core_generated_math_ml_names", |
| 871 ":make_core_generated_media_feature_names", |
| 872 ":make_core_generated_media_type_names", |
| 873 ":make_core_generated_origin_trials", |
| 874 ":make_core_generated_style_builder", |
| 875 ":make_core_generated_style_property_shorthand", |
| 876 ":make_core_generated_svg_names", |
| 877 ":make_core_generated_xlink_names", |
| 878 ":make_core_generated_xml_names", |
| 879 ":make_core_generated_xml_ns_names", |
| 880 ":make_core_generated_private_script", |
| 881 ":make_core_generated_html_element_type_helpers", |
| 882 ":make_core_generated_css_value_keywords", |
| 883 ":make_core_generated_media_features", |
| 884 ":make_core_generated_svg_element_type_helpers", |
| 885 ":make_core_generated_private_script_for_testing", |
| 886 ] |
| 887 |
| 888 group("all_generators") { |
| 889 public_deps = targets_generating_sources |
| 890 public_deps += [ |
| 891 # This target's generated source is #included into another source file. |
| 892 # So we don't want to list it in the "generating sources" list above, |
| 893 # but it does need to be listed as a dependency here. |
| 894 ":make_core_generated_css_tokenizer_codepoints", |
| 895 ] |
| 896 } |
| 897 |
849 # Compiles the code generated by the targets above. | 898 # Compiles the code generated by the targets above. |
850 target(core_link_small_target_type, "core_generated") { | 899 target(core_link_small_target_type, "core_generated") { |
851 sources = bindings_core_v8_files | 900 sources = bindings_core_v8_files |
852 | 901 |
853 # Targets from above that generate outputs that need to be compiled. | |
854 # All sources declared as outputs from these targets will be compiled into thi
s | |
855 # target. | |
856 targets_generating_sources = [ | |
857 ":make_core_generated_bison", | |
858 ":make_core_generated_css_primitive_value_unit_trie", | |
859 ":make_core_generated_css_property_metadata", | |
860 ":make_core_generated_computed_style_base", | |
861 ":make_core_generated_css_property_names", | |
862 ":make_core_generated_cssom_types", | |
863 ":make_core_generated_event_factory", | |
864 ":make_core_generated_event_names", | |
865 ":make_core_generated_event_target_names", | |
866 ":make_core_generated_event_type_names", | |
867 ":make_core_generated_fetch_initiator_type_names", | |
868 ":make_core_generated_html_element_factory", | |
869 ":make_core_generated_html_element_lookup_trie", | |
870 ":make_core_generated_html_entity_table", | |
871 ":make_core_generated_html_tokenizer_names", | |
872 ":make_core_generated_input_mode_names", | |
873 ":make_core_generated_input_type_names", | |
874 ":make_core_generated_math_ml_names", | |
875 ":make_core_generated_media_feature_names", | |
876 ":make_core_generated_media_type_names", | |
877 ":make_core_generated_origin_trials", | |
878 ":make_core_generated_style_builder", | |
879 ":make_core_generated_style_property_shorthand", | |
880 ":make_core_generated_svg_names", | |
881 ":make_core_generated_xlink_names", | |
882 ":make_core_generated_xml_names", | |
883 ":make_core_generated_xml_ns_names", | |
884 ":make_core_generated_private_script", | |
885 ":make_core_generated_html_element_type_helpers", | |
886 ":make_core_generated_css_value_keywords", | |
887 ":make_core_generated_media_features", | |
888 ":make_core_generated_svg_element_type_helpers", | |
889 ":make_core_generated_private_script_for_testing", | |
890 ] | |
891 | |
892 # Add all sources generated by the targets above. | 902 # Add all sources generated by the targets above. |
893 foreach(current, targets_generating_sources) { | 903 foreach(current, targets_generating_sources) { |
894 sources += get_target_outputs(current) | 904 sources += get_target_outputs(current) |
895 } | 905 } |
896 public_deps = targets_generating_sources | 906 public_deps = [ |
897 public_deps += [ | 907 ":all_generators", |
898 # This target's generated source is #included into another source file. | |
899 # So we don't want to list it in the "generating sources" list above, | |
900 # but it does need to be listed as a dependency here. | |
901 ":make_core_generated_css_tokenizer_codepoints", | |
902 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_impl", | 908 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_impl", |
903 ] | 909 ] |
904 | 910 |
905 configs -= core_config_remove | 911 configs -= core_config_remove |
906 configs += core_config_add + [ "..:inside_blink" ] | 912 configs += core_config_add + [ "..:inside_blink" ] |
907 | 913 |
908 # Dependencies required to compile the sources. | 914 # Dependencies required to compile the sources. |
909 public_deps += [ | 915 public_deps += [ |
910 ":prerequisites", | 916 ":prerequisites", |
911 "//gin", | 917 "//gin", |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 sources = [ | 1309 sources = [ |
1304 "html/parser/HTMLPreloadScannerFuzzer.cpp", | 1310 "html/parser/HTMLPreloadScannerFuzzer.cpp", |
1305 "html/parser/TextResourceDecoderForFuzzing.h", | 1311 "html/parser/TextResourceDecoderForFuzzing.h", |
1306 ] | 1312 ] |
1307 seed_corpus = "//third_party/WebKit/LayoutTests/fast/parser" | 1313 seed_corpus = "//third_party/WebKit/LayoutTests/fast/parser" |
1308 deps = [ | 1314 deps = [ |
1309 ":core", | 1315 ":core", |
1310 "../platform:blink_fuzzer_test_support", | 1316 "../platform:blink_fuzzer_test_support", |
1311 ] | 1317 ] |
1312 } | 1318 } |
OLD | NEW |