1 #####################################################################
3 #####################################################################
7 cross_compile: CONFIG += nostrip
9 confclean.depends += clean
12 confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
13 (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
14 (cd config.tests/x11/notype && $(MAKE) distclean); \
15 (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
16 (cd config.tests/unix/cups && $(MAKE) distclean); \
17 (cd config.tests/unix/psql && $(MAKE) distclean); \
18 (cd config.tests/unix/mysql && $(MAKE) distclean); \
19 (cd config.tests/unix/mysql_r && $(MAKE) distclean); \
20 (cd config.tests/unix/nis && $(MAKE) distclean); \
21 (cd config.tests/unix/iodbc && $(MAKE) distclean); \
22 (cd config.tests/unix/odbc && $(MAKE) distclean); \
23 (cd config.tests/unix/oci && $(MAKE) distclean); \
24 (cd config.tests/unix/tds && $(MAKE) distclean); \
25 (cd config.tests/unix/db2 && $(MAKE) distclean); \
26 (cd config.tests/unix/ibase && $(MAKE) distclean); \
27 (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
28 (cd config.tests/unix/zlib && $(MAKE) distclean); \
29 (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
30 (cd config.tests/unix/libjpeg && $(MAKE) distclean); \
31 (cd config.tests/unix/libpng && $(MAKE) distclean); \
32 (cd config.tests/x11/xcursor && $(MAKE) distclean); \
33 (cd config.tests/x11/xrender && $(MAKE) distclean); \
34 (cd config.tests/x11/xrandr && $(MAKE) distclean); \
35 (cd config.tests/x11/xkb && $(MAKE) distclean); \
36 (cd config.tests/x11/xinput && $(MAKE) distclean); \
37 (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
38 (cd config.tests/x11/xinerama && $(MAKE) distclean); \
39 (cd config.tests/x11/xshape && $(MAKE) distclean); \
40 (cd config.tests/x11/opengl && $(MAKE) distclean); \
41 $(DEL_FILE) config.tests/.qmake.cache; \
42 $(DEL_FILE) src/corelib/global/qconfig.h; \
43 $(DEL_FILE) src/corelib/global/qconfig.cpp; \
44 $(DEL_FILE) mkspecs/qconfig.pri; \
45 $(DEL_FILE) mkspecs/qdevice.pri; \
46 $(DEL_FILE) mkspecs/qmodule.pri; \
47 $(DEL_FILE) .qmake.cache; \
48 (cd qmake && $(MAKE) distclean);
51 confclean.commands += -$(DEL_FILE) src\\corelib\\global\\qconfig.h $$escape_expand(\\n\\t) \
52 -$(DEL_FILE) src\\corelib\\global\\qconfig.cpp $$escape_expand(\\n\\t) \
53 -$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \
54 -$(DEL_FILE) mkspecs\\qdevice.pri $$escape_expand(\\n\\t) \
55 -$(DEL_FILE) mkspecs\\qmodule.pri $$escape_expand(\\n\\t) \
56 -$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \
57 (cd qmake && $(MAKE) distclean)
59 QMAKE_EXTRA_TARGETS += confclean
60 qmakeclean.commands += (cd qmake && $(MAKE) clean)
61 QMAKE_EXTRA_TARGETS += qmakeclean
62 CLEAN_DEPS += qmakeclean
66 ### installations ####
69 qmake.path = $$[QT_HOST_BINS]
70 equals(QMAKE_HOST.os, Windows) {
71 qmake.files = $$OUT_PWD/bin/qmake.exe
73 qmake.files = $$OUT_PWD/bin/qmake
78 syncqt.path = $$[QT_HOST_BINS]
79 syncqt.files = $$PWD/bin/syncqt
80 equals(QMAKE_HOST.os, Windows):syncqt.files += $$PWD/bin/syncqt.bat
84 mkspecs.path = $$[QT_HOST_DATA]/mkspecs
86 $$OUT_PWD/mkspecs/qconfig.pri $$OUT_PWD/mkspecs/qmodule.pri $$OUT_PWD/mkspecs/qdevice.pri \
87 $$files($$PWD/mkspecs/*) # $$OUT_PWD contains only symlinks under Unix
88 mkspecs.files -= $$PWD/mkspecs/modules
89 !equals(OUT_PWD, $$PWD) {
90 # When shadow building, the default mkspecs only exist in the build tree.
91 mkspecs.files += $$OUT_PWD/mkspecs/default-host $$OUT_PWD/mkspecs/default
93 !equals(QMAKE_HOST.os, Linux):!equals(QMAKE_HOST.os, Windows) {
94 # MacOS' (and maybe other Unixes') cp command is too daft to honor -f when copying symlinks.
95 mkspecs_pre.commands = rm -f $$[QT_HOST_DATA]/mkspecs/default-host $$[QT_HOST_DATA]/mkspecs/default
96 QMAKE_EXTRA_TARGETS += mkspecs_pre
97 mkspecs.depends += mkspecs_pre