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

Side by Side Diff: third_party/WebKit/Source/core/BUILD.gn

Issue 2403583002: More changes to support hermetic Xcode toolchain in GN. (Closed)
Patch Set: More changes. 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
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/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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 script = "../build/scripts/make_css_tokenizer_codepoints.py" 712 script = "../build/scripts/make_css_tokenizer_codepoints.py"
713 713
714 outputs = [ 714 outputs = [
715 "$blink_core_output_dir/CSSTokenizerCodepoints.cpp", 715 "$blink_core_output_dir/CSSTokenizerCodepoints.cpp",
716 ] 716 ]
717 717
718 args = [ 718 args = [
719 "--output_dir", 719 "--output_dir",
720 rel_blink_core_gen_dir, 720 rel_blink_core_gen_dir,
721 ] 721 ]
722 if (!use_system_xcode) {
723 args += [
724 "--developer_dir",
725 hermetic_xcode_path,
726 ]
727 }
722 728
723 deps = make_core_generated_deps 729 deps = make_core_generated_deps
724 } 730 }
725 731
726 action("make_core_generated_css_primitive_value_unit_trie") { 732 action("make_core_generated_css_primitive_value_unit_trie") {
727 visibility = [] # Allow re-assignment of list. 733 visibility = [] # Allow re-assignment of list.
728 visibility = [ ":*" ] 734 visibility = [ ":*" ]
729 script = "../build/scripts/make_css_primitive_value_unit_trie.py" 735 script = "../build/scripts/make_css_primitive_value_unit_trie.py"
730 736
731 input_file = "css/CSSPrimitiveValueUnits.in" 737 input_file = "css/CSSPrimitiveValueUnits.in"
732 inputs = make_trie_helpers_files + [ 738 inputs = make_trie_helpers_files + [
733 input_file, 739 input_file,
734 "../build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl", 740 "../build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl",
735 ] 741 ]
736 outputs = [ 742 outputs = [
737 "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp", 743 "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp",
738 ] 744 ]
739 745
740 args = [ 746 args = [
741 rebase_path(input_file, root_build_dir), 747 rebase_path(input_file, root_build_dir),
742 "--output_dir", 748 "--output_dir",
743 rel_blink_core_gen_dir, 749 rel_blink_core_gen_dir,
744 ] 750 ]
751 if (!use_system_xcode) {
Nico 2016/10/08 19:03:37 do you need to check of is_mac (or (is_mac || is_i
erikchen 2016/10/10 19:20:57 It's not strictly necessary, but I think it makes
752 args += [
753 "--developer_dir",
754 hermetic_xcode_path,
755 ]
756 }
745 757
746 deps = make_core_generated_deps 758 deps = make_core_generated_deps
747 } 759 }
748 760
749 action("make_core_generated_html_element_lookup_trie") { 761 action("make_core_generated_html_element_lookup_trie") {
750 visibility = [] # Allow re-assignment of list. 762 visibility = [] # Allow re-assignment of list.
751 visibility = [ ":*" ] 763 visibility = [ ":*" ]
752 script = "../build/scripts/make_element_lookup_trie.py" 764 script = "../build/scripts/make_element_lookup_trie.py"
753 765
754 input_file = "html/HTMLTagNames.in" 766 input_file = "html/HTMLTagNames.in"
755 inputs = make_trie_helpers_files + [ 767 inputs = make_trie_helpers_files + [
756 input_file, 768 input_file,
757 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl", 769 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
758 "../build/scripts/templates/ElementLookupTrie.h.tmpl", 770 "../build/scripts/templates/ElementLookupTrie.h.tmpl",
759 ] 771 ]
760 outputs = [ 772 outputs = [
761 "$blink_core_output_dir/HTMLElementLookupTrie.cpp", 773 "$blink_core_output_dir/HTMLElementLookupTrie.cpp",
762 "$blink_core_output_dir/HTMLElementLookupTrie.h", 774 "$blink_core_output_dir/HTMLElementLookupTrie.h",
763 ] 775 ]
764 776
765 args = [ 777 args = [
766 rebase_path(input_file, root_build_dir), 778 rebase_path(input_file, root_build_dir),
767 "--output_dir", 779 "--output_dir",
768 rel_blink_core_gen_dir, 780 rel_blink_core_gen_dir,
769 ] 781 ]
782 if (!use_system_xcode) {
783 args += [
784 "--developer_dir",
785 hermetic_xcode_path,
786 ]
787 }
770 788
771 deps = make_core_generated_deps 789 deps = make_core_generated_deps
772 } 790 }
773 791
774 action("make_core_generated_origin_trials") { 792 action("make_core_generated_origin_trials") {
775 script = "../build/scripts/make_origin_trials.py" 793 script = "../build/scripts/make_origin_trials.py"
776 794
777 inputs = scripts_for_in_files + [ 795 inputs = scripts_for_in_files + [
778 "../build/scripts/make_origin_trials.py", 796 "../build/scripts/make_origin_trials.py",
779 "../platform/RuntimeEnabledFeatures.in", 797 "../platform/RuntimeEnabledFeatures.in",
780 "../build/scripts/templates/OriginTrials.cpp.tmpl", 798 "../build/scripts/templates/OriginTrials.cpp.tmpl",
781 "../build/scripts/templates/OriginTrials.h.tmpl", 799 "../build/scripts/templates/OriginTrials.h.tmpl",
782 ] 800 ]
783 outputs = [ 801 outputs = [
784 "$blink_core_output_dir/origin_trials/OriginTrials.cpp", 802 "$blink_core_output_dir/origin_trials/OriginTrials.cpp",
785 "$blink_core_output_dir/origin_trials/OriginTrials.h", 803 "$blink_core_output_dir/origin_trials/OriginTrials.h",
786 ] 804 ]
787 805
788 args = [ 806 args = [
789 rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir), 807 rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir),
790 "--output_dir", 808 "--output_dir",
791 "$rel_blink_core_gen_dir/origin_trials", 809 "$rel_blink_core_gen_dir/origin_trials",
792 ] 810 ]
811 if (!use_system_xcode) {
812 args += [
813 "--developer_dir",
814 hermetic_xcode_path,
815 ]
816 }
793 } 817 }
794 818
795 action_foreach("make_core_generated_bison") { 819 action_foreach("make_core_generated_bison") {
796 script = "../build/scripts/rule_bison.py" 820 script = "../build/scripts/rule_bison.py"
797 sources = [ 821 sources = [
798 "xml/XPathGrammar.y", 822 "xml/XPathGrammar.y",
799 ] 823 ]
800 outputs = [ 824 outputs = [
801 "$blink_core_output_dir/{{source_name_part}}.cpp", 825 "$blink_core_output_dir/{{source_name_part}}.cpp",
802 "$blink_core_output_dir/{{source_name_part}}.h", 826 "$blink_core_output_dir/{{source_name_part}}.h",
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 sources = [ 1283 sources = [
1260 "html/parser/HTMLPreloadScannerFuzzer.cpp", 1284 "html/parser/HTMLPreloadScannerFuzzer.cpp",
1261 "html/parser/TextResourceDecoderForFuzzing.h", 1285 "html/parser/TextResourceDecoderForFuzzing.h",
1262 ] 1286 ]
1263 seed_corpus = "//third_party/WebKit/LayoutTests/fast/parser" 1287 seed_corpus = "//third_party/WebKit/LayoutTests/fast/parser"
1264 deps = [ 1288 deps = [
1265 ":core", 1289 ":core",
1266 "../platform:blink_fuzzer_test_support", 1290 "../platform:blink_fuzzer_test_support",
1267 ] 1291 ]
1268 } 1292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698