1 #####################################################################
3 #####################################################################
8 cross_compile: CONFIG += nostrip
10 module_qtbase_tests.subdir = tests
11 module_qtbase_tests.target = module-qtbase-tests
12 module_qtbase_tests.depends = module_qtbase_src
13 module_qtbase_tests.CONFIG = no_default_install
16 PROJECTS=$$eval($$list($$lower($$unique(QT_BUILD_PARTS))))
17 # note that the order matters for these blocks!
18 contains(PROJECTS, qmake) {
22 contains(PROJECTS, libs) {
26 contains(PROJECTS, examples) {
30 contains(PROJECTS, tests) {
32 SUBDIRS += module_qtbase_tests
35 message(Unknown PROJECTS: $$PROJECTS)
38 confclean.depends += clean
41 confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
42 (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
43 (cd config.tests/x11/notype && $(MAKE) distclean); \
44 (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
45 (cd config.tests/unix/cups && $(MAKE) distclean); \
46 (cd config.tests/unix/psql && $(MAKE) distclean); \
47 (cd config.tests/unix/mysql && $(MAKE) distclean); \
48 (cd config.tests/unix/mysql_r && $(MAKE) distclean); \
49 (cd config.tests/unix/nis && $(MAKE) distclean); \
50 (cd config.tests/unix/iodbc && $(MAKE) distclean); \
51 (cd config.tests/unix/odbc && $(MAKE) distclean); \
52 (cd config.tests/unix/oci && $(MAKE) distclean); \
53 (cd config.tests/unix/tds && $(MAKE) distclean); \
54 (cd config.tests/unix/db2 && $(MAKE) distclean); \
55 (cd config.tests/unix/ibase && $(MAKE) distclean); \
56 (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
57 (cd config.tests/unix/zlib && $(MAKE) distclean); \
58 (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
59 (cd config.tests/unix/libjpeg && $(MAKE) distclean); \
60 (cd config.tests/unix/libpng && $(MAKE) distclean); \
61 (cd config.tests/x11/xcursor && $(MAKE) distclean); \
62 (cd config.tests/x11/xrender && $(MAKE) distclean); \
63 (cd config.tests/x11/xrandr && $(MAKE) distclean); \
64 (cd config.tests/x11/xkb && $(MAKE) distclean); \
65 (cd config.tests/x11/xinput && $(MAKE) distclean); \
66 (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
67 (cd config.tests/x11/xinerama && $(MAKE) distclean); \
68 (cd config.tests/x11/xshape && $(MAKE) distclean); \
69 (cd config.tests/x11/opengl && $(MAKE) distclean); \
70 $(DEL_FILE) config.tests/.qmake.cache; \
71 $(DEL_FILE) src/corelib/global/qconfig.h; \
72 $(DEL_FILE) src/corelib/global/qconfig.cpp; \
73 $(DEL_FILE) mkspecs/qconfig.pri; \
74 $(DEL_FILE) mkspecs/qdevice.pri; \
75 $(DEL_FILE) mkspecs/qmodule.pri; \
76 $(DEL_FILE) .qmake.cache; \
77 (cd qmake && $(MAKE) distclean);
80 confclean.commands += -$(DEL_FILE) src\\corelib\\global\\qconfig.h $$escape_expand(\\n\\t) \
81 -$(DEL_FILE) src\\corelib\\global\\qconfig.cpp $$escape_expand(\\n\\t) \
82 -$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \
83 -$(DEL_FILE) mkspecs\\qdevice.pri $$escape_expand(\\n\\t) \
84 -$(DEL_FILE) mkspecs\\qmodule.pri $$escape_expand(\\n\\t) \
85 -$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \
86 (cd qmake && $(MAKE) distclean)
88 QMAKE_EXTRA_TARGETS += confclean
89 qmakeclean.commands += (cd qmake && $(MAKE) clean)
90 QMAKE_EXTRA_TARGETS += qmakeclean
91 CLEAN_DEPS += qmakeclean
95 ### installations ####
98 qmake.path = $$[QT_HOST_BINS]
100 qmake.files = $$OUT_PWD/bin/qmake.exe
102 qmake.files = $$OUT_PWD/bin/qmake
107 syncqt.path = $$[QT_HOST_BINS]
108 syncqt.files = $$OUT_PWD/bin/syncqt
109 win32:syncqt.files = $$OUT_PWD/bin/syncqt.bat
112 #qtmodule-configtests
113 configtests.path = $$[QT_HOST_BINS]
114 configtests.files = $$PWD/bin/qtmodule-configtests
115 INSTALLS += configtests
118 mkspecs.path = $$[QT_HOST_DATA]/mkspecs
119 mkspecs.files = $$OUT_PWD/mkspecs/qconfig.pri $$OUT_PWD/mkspecs/qmodule.pri $$OUT_PWD/mkspecs/qdevice.pri $$files($$PWD/mkspecs/*)
120 mkspecs.files -= $$PWD/mkspecs/modules
122 DEFAULT_QMAKESPEC = $$QMAKESPEC
123 DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
124 mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
125 mkspecs.files -= $$PWD/mkspecs/default
127 win32:!equals(OUT_PWD, $$PWD) {
128 # When shadow building on Windows, the default mkspec only exists in the build tree.
129 mkspecs.files += $$OUT_PWD/mkspecs/default