2011-04-27 10:05:43 +00:00
|
|
|
#####################################################################
|
|
|
|
# Main projectfile
|
|
|
|
#####################################################################
|
|
|
|
|
|
|
|
CONFIG += ordered
|
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
|
|
|
cross_compile: CONFIG += nostrip
|
|
|
|
|
2011-05-10 23:21:51 +00:00
|
|
|
module_qtbase_tests.subdir = tests
|
|
|
|
module_qtbase_tests.target = module-qtbase-tests
|
|
|
|
module_qtbase_tests.depends = module_qtbase_src
|
2011-05-25 02:40:25 +00:00
|
|
|
module_qtbase_tests.CONFIG = no_default_install
|
2011-05-10 23:21:51 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#process the projects
|
2011-05-25 23:19:38 +00:00
|
|
|
PROJECTS=$$eval($$list($$lower($$unique(QT_BUILD_PARTS))))
|
|
|
|
# note that the order matters for these blocks!
|
|
|
|
contains(PROJECTS, qmake) {
|
|
|
|
PROJECTS -= qmake
|
|
|
|
# nothing to be done
|
|
|
|
}
|
|
|
|
contains(PROJECTS, libs) {
|
|
|
|
PROJECTS -= libs
|
2012-06-01 14:37:42 +00:00
|
|
|
SUBDIRS += src
|
2011-05-25 23:19:38 +00:00
|
|
|
}
|
|
|
|
contains(PROJECTS, examples) {
|
|
|
|
PROJECTS -= examples
|
2012-02-24 13:35:56 +00:00
|
|
|
!fast:SUBDIRS += examples
|
2011-05-25 23:19:38 +00:00
|
|
|
}
|
|
|
|
contains(PROJECTS, tests) {
|
|
|
|
PROJECTS -= tests
|
2012-02-24 13:35:56 +00:00
|
|
|
!fast:SUBDIRS += module_qtbase_tests
|
2011-05-25 23:19:38 +00:00
|
|
|
}
|
|
|
|
!isEmpty(PROJECTS) {
|
|
|
|
message(Unknown PROJECTS: $$PROJECTS)
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
2012-01-23 20:25:30 +00:00
|
|
|
confclean.depends += clean
|
2011-04-27 10:05:43 +00:00
|
|
|
confclean.commands =
|
2012-01-23 20:25:30 +00:00
|
|
|
unix {
|
2011-04-27 10:05:43 +00:00
|
|
|
confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/ptrsize && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/notype && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/cups && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/psql && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/mysql && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/mysql_r && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/nis && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/iodbc && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/odbc && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/oci && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/tds && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/db2 && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/ibase && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/zlib && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/libjpeg && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/unix/libpng && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xcursor && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xrender && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xrandr && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xkb && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xinput && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/fontconfig && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xinerama && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/xshape && $(MAKE) distclean); \
|
|
|
|
(cd config.tests/x11/opengl && $(MAKE) distclean); \
|
|
|
|
$(DEL_FILE) config.tests/.qmake.cache; \
|
2011-05-10 18:39:35 +00:00
|
|
|
$(DEL_FILE) src/corelib/global/qconfig.h; \
|
|
|
|
$(DEL_FILE) src/corelib/global/qconfig.cpp; \
|
2011-04-27 10:05:43 +00:00
|
|
|
$(DEL_FILE) mkspecs/qconfig.pri; \
|
2012-03-20 21:02:21 +00:00
|
|
|
$(DEL_FILE) mkspecs/qdevice.pri; \
|
2011-11-22 06:58:30 +00:00
|
|
|
$(DEL_FILE) mkspecs/qmodule.pri; \
|
2011-04-27 10:05:43 +00:00
|
|
|
$(DEL_FILE) .qmake.cache; \
|
|
|
|
(cd qmake && $(MAKE) distclean);
|
|
|
|
}
|
|
|
|
win32 {
|
2011-05-10 18:39:35 +00:00
|
|
|
confclean.commands += -$(DEL_FILE) src\\corelib\\global\\qconfig.h $$escape_expand(\\n\\t) \
|
|
|
|
-$(DEL_FILE) src\\corelib\\global\\qconfig.cpp $$escape_expand(\\n\\t) \
|
2011-04-27 10:05:43 +00:00
|
|
|
-$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \
|
2012-03-20 21:02:21 +00:00
|
|
|
-$(DEL_FILE) mkspecs\\qdevice.pri $$escape_expand(\\n\\t) \
|
2011-11-22 06:58:30 +00:00
|
|
|
-$(DEL_FILE) mkspecs\\qmodule.pri $$escape_expand(\\n\\t) \
|
2011-04-27 10:05:43 +00:00
|
|
|
-$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \
|
|
|
|
(cd qmake && $(MAKE) distclean)
|
|
|
|
}
|
|
|
|
QMAKE_EXTRA_TARGETS += confclean
|
|
|
|
qmakeclean.commands += (cd qmake && $(MAKE) clean)
|
|
|
|
QMAKE_EXTRA_TARGETS += qmakeclean
|
|
|
|
CLEAN_DEPS += qmakeclean
|
|
|
|
|
|
|
|
CONFIG -= qt
|
|
|
|
|
|
|
|
### installations ####
|
|
|
|
|
|
|
|
#qmake
|
2012-02-28 19:57:38 +00:00
|
|
|
qmake.path = $$[QT_HOST_BINS]
|
2011-04-27 10:05:43 +00:00
|
|
|
win32 {
|
2012-03-02 20:32:02 +00:00
|
|
|
qmake.files = $$OUT_PWD/bin/qmake.exe
|
2011-04-27 10:05:43 +00:00
|
|
|
} else {
|
2012-03-02 20:32:02 +00:00
|
|
|
qmake.files = $$OUT_PWD/bin/qmake
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
INSTALLS += qmake
|
|
|
|
|
2011-04-07 14:40:33 +00:00
|
|
|
#syncqt
|
2012-02-28 19:57:38 +00:00
|
|
|
syncqt.path = $$[QT_HOST_BINS]
|
2012-03-02 20:32:02 +00:00
|
|
|
syncqt.files = $$OUT_PWD/bin/syncqt
|
|
|
|
win32:syncqt.files = $$OUT_PWD/bin/syncqt.bat
|
2011-04-07 14:40:33 +00:00
|
|
|
INSTALLS += syncqt
|
|
|
|
|
2011-07-25 12:07:54 +00:00
|
|
|
#qtmodule-configtests
|
2012-02-28 19:57:38 +00:00
|
|
|
configtests.path = $$[QT_HOST_BINS]
|
2012-03-02 20:32:02 +00:00
|
|
|
configtests.files = $$PWD/bin/qtmodule-configtests
|
2011-07-25 12:07:54 +00:00
|
|
|
INSTALLS += configtests
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#mkspecs
|
2012-02-28 19:57:38 +00:00
|
|
|
mkspecs.path = $$[QT_HOST_DATA]/mkspecs
|
2012-03-20 21:02:21 +00:00
|
|
|
mkspecs.files = $$OUT_PWD/mkspecs/qconfig.pri $$OUT_PWD/mkspecs/qmodule.pri $$OUT_PWD/mkspecs/qdevice.pri $$files($$PWD/mkspecs/*)
|
2012-03-02 20:32:02 +00:00
|
|
|
mkspecs.files -= $$PWD/mkspecs/modules
|
2012-01-31 17:36:18 +00:00
|
|
|
unix {
|
|
|
|
DEFAULT_QMAKESPEC = $$replace(QMAKESPEC, ^.*mkspecs/, )
|
|
|
|
DEFAULT_XQMAKESPEC = $$replace(XQMAKESPEC, ^.*mkspecs/, )
|
|
|
|
mkspecs.commands = \
|
|
|
|
$(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default-host $(INSTALL_ROOT)$$mkspecs.path/default; \
|
|
|
|
$(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default-host && \
|
|
|
|
$(SYMLINK) $$DEFAULT_XQMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
|
|
|
|
mkspecs.files -= $$PWD/mkspecs/default-host $$PWD/mkspecs/default
|
|
|
|
} else:!equals(OUT_PWD, $$PWD) {
|
2011-04-27 10:05:43 +00:00
|
|
|
# When shadow building on Windows, the default mkspec only exists in the build tree.
|
2012-01-31 17:36:18 +00:00
|
|
|
mkspecs.files += $$OUT_PWD/mkspecs/default-host $$OUT_PWD/mkspecs/default
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
INSTALLS += mkspecs
|
2012-02-08 06:36:42 +00:00
|
|
|
|
|
|
|
OTHER_FILES += \
|
|
|
|
configure \
|
|
|
|
header.BSD \
|
|
|
|
header.FDL \
|
|
|
|
header.LGPL \
|
|
|
|
header.LGPL-ONLY \
|
|
|
|
sync.profile
|