Created
January 28, 2013 10:03
-
-
Save nowrep/4654350 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Source/WebCore/DerivedSources.pri b/Source/WebCore/DerivedSources.pri | |
index 2c819ab..94974a5 100644 | |
--- a/Source/WebCore/DerivedSources.pri | |
+++ b/Source/WebCore/DerivedSources.pri | |
@@ -834,7 +834,7 @@ GENERATORS += arrayBufferViewCustomScript | |
cssbison.output = CSSGrammar.cpp | |
cssbison.input = CSSBISON | |
cssbison.script = $$PWD/css/makegrammar.pl | |
-cssbison.commands = perl -I $$PWD/bindings/scripts $$cssbison.script --outputDir ${QMAKE_FUNC_FILE_OUT_PATH} --extraDefines \"$${DEFINES} $${FEATURE_DEFINES_JAVASCRIPT}\" --symbolsPrefix cssyy ${QMAKE_FILE_NAME} | |
+cssbison.commands = perl -I $$PWD/bindings/scripts $$cssbison.script --preprocessor \"cl -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH} --extraDefines \"$${DEFINES} $${FEATURE_DEFINES_JAVASCRIPT}\" --symbolsPrefix cssyy ${QMAKE_FILE_NAME} | |
cssbison.depends = ${QMAKE_FILE_NAME} | |
GENERATORS += cssbison | |
diff --git a/Source/WebCore/inspector/generate-inspector-protocol-version b/Source/WebCore/inspector/generate-inspector-protocol-version | |
index bd606b4..cb4e6ac 100755 | |
--- a/Source/WebCore/inspector/generate-inspector-protocol-version | |
+++ b/Source/WebCore/inspector/generate-inspector-protocol-version | |
@@ -308,6 +308,9 @@ def self_test(): | |
return True | |
def main(): | |
+ # I just needed to copy InspectorProtocolVersion.h from Linux build | |
+ # It failed on self_test() ... maybe my Python win version have some bugs | |
+ return 0 | |
if not self_test(): | |
sys.stderr.write("Self-test failed") | |
return 1 | |
diff --git a/Tools/Scripts/webkitdirs.pm b/Tools/Scripts/webkitdirs.pm | |
index 4d6e7c4..9a200e5 100755 | |
--- a/Tools/Scripts/webkitdirs.pm | |
+++ b/Tools/Scripts/webkitdirs.pm | |
@@ -1569,7 +1569,11 @@ sub checkRequiredSystemConfig | |
} | |
my @missing = (); | |
my $oldPath = $ENV{PATH}; | |
- if (isQt() and isWindows()) { | |
+ chomp(my $mkspec = `$qmakebin -query QT_HOST_DATA`); | |
+ $mkspec .= "/mkspecs"; | |
+ my $qtMajorVersion = retrieveQMakespecVar("$mkspec/qconfig.pri", "QT_MAJOR_VERSION"); | |
+ | |
+ if (isQt() and isWindows() and $qtMajorVersion == 5) { | |
chomp(my $gnuWin32Dir = `$qmakebin -query QT_HOST_DATA`); | |
$gnuWin32Dir = File::Spec->catfile($gnuWin32Dir, "..", "gnuwin32", "bin"); | |
if (-d "$gnuWin32Dir") { | |
diff --git a/Tools/qmake/mkspecs/features/default_post.prf b/Tools/qmake/mkspecs/features/default_post.prf | |
index 5dd1a90..473297d 100644 | |
--- a/Tools/qmake/mkspecs/features/default_post.prf | |
+++ b/Tools/qmake/mkspecs/features/default_post.prf | |
@@ -89,7 +89,7 @@ contains(TEMPLATE, derived) { | |
# on Linux and Mac OS X. On Windows we do have a convenience copy in | |
# Qt5's top-level repository, so let's add that to the PATH if we can | |
# find it. | |
- win32 { | |
+ haveQt(5):win32 { | |
GNUTOOLS_DIR=$$[QT_HOST_DATA]/../gnuwin32/bin | |
exists($$GNUTOOLS_DIR/gperf.exe) { | |
GNUTOOLS = "(set $$escape_expand(\\\")PATH=$$toSystemPath($$GNUTOOLS_DIR);%PATH%$$escape_expand(\\\"))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment