Changeset 195582 in webkit
- Timestamp:
- Jan 25, 2016 10:12:50 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r195512 r195582 1 2016-01-25 Alex Christensen <achristensen@webkit.org> 2 3 Fix internal Windows build 4 https://bugs.webkit.org/show_bug.cgi?id=153469 5 6 Reviewed by Brent Fulgham. 7 8 * Source/cmake/WebKitMacros.cmake: 9 Pass the GPERF_EXECUTABLE that we found to make-hash-tools.pl. 10 1 11 2016-01-23 Aaron Chu <arona.chu@gmail.com> 2 12 -
trunk/Source/WebCore/CMakeLists.txt
r195551 r195582 3488 3488 DEPENDS ${WEBCORE_DIR}/platform/network/create-http-header-name-table 3489 3489 WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR} 3490 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/platform/network/create-http-header-name-table ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in 3490 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/platform/network/create-http-header-name-table ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in "${GPERF_EXECUTABLE}" 3491 3491 VERBATIM) 3492 3492 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/HTTPHeaderNames.cpp) … … 3499 3499 WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR} 3500 3500 COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_PROPERTY_NAMES} > ${DERIVED_SOURCES_WEBCORE_DIR}/CSSPropertyNames.in 3501 COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${WEBCORE_DIR}/css/makeprop.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" 3501 COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${WEBCORE_DIR}/css/makeprop.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --gperf-executable "${GPERF_EXECUTABLE}" 3502 3502 VERBATIM) 3503 3503 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/CSSPropertyNames.cpp) … … 3527 3527 MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py 3528 3528 WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR} 3529 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in "${ FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"3529 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" 3530 3530 VERBATIM) 3531 3531 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp) … … 3534 3534 MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py 3535 3535 WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR} 3536 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in "${ FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"3536 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" 3537 3537 VERBATIM) 3538 3538 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoElementTypeMap.cpp) -
trunk/Source/WebCore/ChangeLog
r195580 r195582 1 2016-01-25 Alex Christensen <achristensen@webkit.org> 2 3 Fix internal Windows build 4 https://bugs.webkit.org/show_bug.cgi?id=153469 5 6 Reviewed by Brent Fulgham. 7 8 * CMakeLists.txt: 9 Pass the GPERF_EXECUTABLE that we found to perl scripts so they can use it instead of just calling gperf. 10 This is needed for builds where gperf is not in the PATH. 11 * DerivedSources.make: 12 Pass "gperf" as the gperf command to retain existing functionality on mac. 13 * bindings/scripts/preprocess-idls.pl: 14 (CygwinPathIfNeeded): 15 * bindings/scripts/preprocessor.pm: 16 (applyPreprocessor): 17 Add /cygdrive/c/cygwin/bin to the PATH before calling cygpath. 18 This is needed for builds where we are using cygwin, but C:/cygwin/bin is not in the PATH. 19 * css/makeSelectorPseudoClassAndCompatibilityElementMap.py: 20 * css/makeSelectorPseudoElementsMap.py: 21 * css/makeprop.pl: 22 * platform/network/create-http-header-name-table: 23 Use the gperf executable passed in as a command line parameter if it is given. 24 1 25 2016-01-25 Simon Fraser <simon.fraser@apple.com> 2 26 -
trunk/Source/WebCore/DerivedSources.make
r195530 r195582 886 886 # CSS Selector pseudo type name to value map. 887 887 888 WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS := $(WebCore)/css/SelectorPseudoClassAndCompatibilityElementMap.in 889 SelectorPseudoClassAndCompatibilityElementMap.cpp : $(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py $(WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS) 890 $(PYTHON) "$(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py" $(WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS) "$(FEATURE_DEFINES)" 891 892 WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS := $(WebCore)/css/SelectorPseudoElementTypeMap.in 893 SelectorPseudoElementTypeMap.cpp : $(WebCore)/css/makeSelectorPseudoElementsMap.py $(WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS) 894 $(PYTHON) "$(WebCore)/css/makeSelectorPseudoElementsMap.py" $(WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS) "$(FEATURE_DEFINES)" 888 SelectorPseudoClassAndCompatibilityElementMap.cpp : $(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py $(WebCore)/css/SelectorPseudoClassAndCompatibilityElementMap.in 889 $(PYTHON) "$(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py" $(WebCore)/css/SelectorPseudoClassAndCompatibilityElementMap.in gperf "$(FEATURE_DEFINES)" 890 891 SelectorPseudoElementTypeMap.cpp : $(WebCore)/css/makeSelectorPseudoElementsMap.py $(WebCore)/css/SelectorPseudoElementTypeMap.in 892 $(PYTHON) "$(WebCore)/css/makeSelectorPseudoElementsMap.py" $(WebCore)/css/SelectorPseudoElementTypeMap.in gperf "$(FEATURE_DEFINES)" 895 893 896 894 # -------- … … 928 926 929 927 HTTPHeaderNames.h : platform/network/HTTPHeaderNames.in $(WebCore)/platform/network/create-http-header-name-table 930 $(PYTHON) $(WebCore)/platform/network/create-http-header-name-table $(WebCore)/platform/network/HTTPHeaderNames.in 928 $(PYTHON) $(WebCore)/platform/network/create-http-header-name-table $(WebCore)/platform/network/HTTPHeaderNames.in gperf 931 929 932 930 # -------- -
trunk/Source/WebCore/bindings/scripts/preprocess-idls.pl
r189934 r195582 176 176 } 177 177 178 my $cygwinPathAdded; 178 179 sub CygwinPathIfNeeded 179 180 { 180 181 my $path = shift; 181 182 if ($path && $Config{osname} eq "cygwin") { 183 if (not $cygwinPathAdded) { 184 $ENV{PATH} = "$ENV{PATH}:/cygdrive/c/cygwin/bin"; 185 $cygwinPathAdded = 1; 186 } 182 187 chomp($path = `cygpath -u '$path'`); 183 188 $path =~ s/[\r\n]//; -
trunk/Source/WebCore/bindings/scripts/preprocessor.pm
r189985 r195582 77 77 my $pid = 0; 78 78 if ($Config{osname} eq "cygwin") { 79 $ENV{PATH} = "$ENV{PATH}:/cygdrive/c/cygwin/bin"; 79 80 my @preprocessorAndFlags; 80 81 if ($preprocessor eq "/usr/bin/gcc") { -
trunk/Source/WebCore/css/makeSelectorPseudoClassAndCompatibilityElementMap.py
r195452 r195582 208 208 output_file.close() 209 209 210 gperf_command = 'gperf'210 gperf_command = sys.argv[2] 211 211 if 'GPERF' in os.environ: 212 212 gperf_command = os.environ['GPERF'] -
trunk/Source/WebCore/css/makeSelectorPseudoElementsMap.py
r172093 r195582 203 203 output_file.close() 204 204 205 gperf_command = 'gperf'205 gperf_command = sys.argv[2] 206 206 if 'GPERF' in os.environ: 207 207 gperf_command = os.environ['GPERF'] -
trunk/Source/WebCore/css/makeprop.pl
r191178 r195582 30 30 my $defines; 31 31 my $preprocessor; 32 my $gperf; 32 33 GetOptions('defines=s' => \$defines, 33 'preprocessor=s' => \$preprocessor); 34 'preprocessor=s' => \$preprocessor, 35 'gperf-executable=s' => \$gperf); 34 36 35 37 my @NAMES = applyPreprocessor("CSSPropertyNames.in", $defines, $preprocessor); … … 1047 1049 close SHORTHANDS_CPP; 1048 1050 1049 my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf"; 1051 if (not $gperf) { 1052 $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf"; 1053 } 1050 1054 system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSPropertyNames.gperf --output-file=CSSPropertyNames.cpp") == 0 || die "calling gperf failed: $?"; -
trunk/Source/WebCore/platform/network/create-http-header-name-table
r179861 r195582 33 33 program_name = os.path.basename(__file__) 34 34 if len(sys.argv) < 2: 35 sys.stderr.write("Usage: %s INPUT_FILE \n" % program_name)35 sys.stderr.write("Usage: %s INPUT_FILE GPERF_EXECUTABLE\n" % program_name) 36 36 exit(1) 37 37 … … 239 239 header_file.close() 240 240 241 gperf = os.getenv('GPERF') or 'gperf'241 gperf = os.getenv('GPERF') or sys.argv[2] 242 242 243 243 if os.system('%s --key-positions="*" -D -n -s 2 HTTPHeaderNames.gperf --output-file=HTTPHeaderNames.cpp' % gperf): -
trunk/Source/cmake/WebKitMacros.cmake
r192312 r195582 222 222 OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/${_name}.cpp ${_hash_tools_h} 223 223 MAIN_DEPENDENCY ${_source}.gperf 224 COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/make-hash-tools.pl ${DERIVED_SOURCES_WEBCORE_DIR} ${_source}.gperf 224 COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/make-hash-tools.pl ${DERIVED_SOURCES_WEBCORE_DIR} ${_source}.gperf ${GPERF_EXECUTABLE} 225 225 VERBATIM) 226 226
Note: See TracChangeset
for help on using the changeset viewer.