Skip to content

Commit

Permalink
Exclude the Qt version from patch files (#60)
Browse files Browse the repository at this point in the history
This should allow for both Qt 5.1.1 (for OSX) and Qt 5.5.1 (for
Windows) simultaneously.
  • Loading branch information
pcolby committed Dec 3, 2015
1 parent 2ccf6db commit 058a908
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ if not exist "%SRC_DIR%\qtbase\qmake\generators\win32\winmakefile.ori" (
copy "%SRC_DIR%\qtbase\qmake\generators\win32\winmakefile.cpp"^
"%SRC_DIR%\qtbase\qmake\generators\win32\winmakefile.ori"
)
"%PATCH%" -N -p0 -i qnetworkaccessmanager.patch
"%PATCH%" -d "%SRC_DIR%" -N -p0 -i qnetworkaccessmanager.patch
if errorlevel 1 pause
"%PATCH%" -N -p0 -i winmakefile.patch
"%PATCH%" -d "%SRC_DIR%" -N -p0 -i winmakefile.patch
if errorlevel 1 pause

:: Create the build directory, if not already.
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function patchSource {
fi
echo "Applying qnetworkaccessmanager.patch"
"$SED" -e '1,2 s/\\/\//g' "$SELF_DIR/qnetworkaccessmanager.patch" | \
"$PATCH" --forward --strip 0
"$PATCH" --directory "$SELF_DIR/$QT_NAME" --forward --strip 0
if [ $? -eq 1 ]; then
echo 'Assuming patch is already applied and continuing.'
fi
Expand Down
4 changes: 2 additions & 2 deletions qnetworkaccessmanager.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- qt-everywhere-opensource-src-5.1.1\qtbase\src\network\access\qnetworkaccessmanager.cpp Mon Aug 26 04:03:34 2013
+++ qt-everywhere-opensource-src-5.1.1\qtbase\src\network\access\qnetworkaccessmanager.new Wed Oct 8 19:36:54 2014
--- qtbase\src\network\access\qnetworkaccessmanager.cpp Mon Aug 26 04:03:34 2013
+++ qtbase\src\network\access\qnetworkaccessmanager.new Wed Oct 8 19:36:54 2014
@@ -71,6 +71,8 @@

#include "qthread.h"
Expand Down
4 changes: 2 additions & 2 deletions winmakefile.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- qt-everywhere-opensource-src-5.1.1\qtbase\qmake\generators\win32\winmakefile.cpp Mon Aug 26 04:04:06 2013
+++ qt-everywhere-opensource-src-5.1.1\qtbase\qmake\generators\win32\winmakefile.new Wed Oct 8 17:41:01 2014
--- qtbase\qmake\generators\win32\winmakefile.cpp Mon Aug 26 04:04:06 2013
+++ qtbase\qmake\generators\win32\winmakefile.new Wed Oct 8 17:41:01 2014
@@ -465,6 +465,7 @@
ts << "\t\t\t\tVALUE \"CompanyName\", \"" << companyName << "\\0\"\n";
ts << "\t\t\t\tVALUE \"FileDescription\", \"" << description << "\\0\"\n";
Expand Down

0 comments on commit 058a908

Please sign in to comment.