summaryrefslogtreecommitdiffstats
path: root/qmake/qmake-aux.pro
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-01-03 16:40:30 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-01-06 20:09:08 +0000
commit52d64fca662d0e488801fc40dffdc0a732cfdbd5 (patch)
treef50f35fa5df16dca9e43ac95d23cb7c39422dd5d /qmake/qmake-aux.pro
parent17b6967f6811cb3adeb8c7eb79a422d2c10ee0d1 (diff)
revert to building qmake with qconfig.cpp
turns out that just appending builtin-qt.conf isn't a good idea: executable-editing tools (objcopy, prelink, etc.) will happily drop the "attachment". a safe method would be adding a proper section to the executable, but there doesn't appear to be an objcopy equivalent in msvc, and using entirely different methods of embedding the file with different toolchains seems like a rather bad idea. so instead go back to the old method of building qmake with a generated qconfig.cpp. of course, as said file is now created by qmake itself, we have to compile qlibraryinfo.cpp a second time, and link a second qmake executable. Task-number: QTBUG-57803 Change-Id: I9e232693550aa870cec154e49cc06add13017cc2 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'qmake/qmake-aux.pro')
-rw-r--r--qmake/qmake-aux.pro8
1 files changed, 2 insertions, 6 deletions
diff --git a/qmake/qmake-aux.pro b/qmake/qmake-aux.pro
index 357ebc7367..f432fab05d 100644
--- a/qmake/qmake-aux.pro
+++ b/qmake/qmake-aux.pro
@@ -9,14 +9,10 @@ win32: EXTENSION = .exe
!build_pass {
qmake_exe.target = $$OUT_PWD/qmake$$EXTENSION
- qmake_exe.depends = ../bin/qmake$$EXTENSION builtin-qt.conf
- equals(QMAKE_DIR_SEP, /): \
- qmake_exe.commands = cat ../bin/qmake$$EXTENSION builtin-qt.conf > qmake$$EXTENSION && chmod +x qmake$$EXTENSION
- else: \
- qmake_exe.commands = copy /B ..\bin\qmake$$EXTENSION + builtin-qt.conf qmake$$EXTENSION
+ qmake_exe.commands = $(MAKE) binary
+ qmake_exe.CONFIG = phony
QMAKE_EXTRA_TARGETS += qmake_exe
- QMAKE_CLEAN += builtin-qt.conf
QMAKE_DISTCLEAN += qmake$$EXTENSION
first.depends += qmake_exe