2011-04-27 10:05:43 +00:00
|
|
|
#####################################################################
|
|
|
|
# Main projectfile
|
|
|
|
#####################################################################
|
|
|
|
|
2012-07-03 19:26:36 +00:00
|
|
|
load(qt_parts)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-10-01 20:15:55 +00:00
|
|
|
SUBDIRS += qmake/qmake-aux.pro doc
|
2013-06-13 18:42:07 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
cross_compile: CONFIG += nostrip
|
|
|
|
|
2015-04-23 11:40:49 +00:00
|
|
|
confclean.depends += distclean
|
|
|
|
confclean.commands = echo The confclean target is obsolete. Please use distclean instead.
|
2011-04-27 10:05:43 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += confclean
|
2015-04-23 11:40:49 +00:00
|
|
|
|
|
|
|
qmake-clean.commands += (cd qmake && $(MAKE) clean)
|
|
|
|
QMAKE_EXTRA_TARGETS += qmake-clean
|
|
|
|
CLEAN_DEPS += qmake-clean
|
|
|
|
|
|
|
|
# We don't distclean qmake, as it may be needed for rebuilding Makefiles as a
|
|
|
|
# recursive distclean proceeds, including beyond qtbase.
|
|
|
|
DISTCLEAN_DEPS += qmake-clean
|
|
|
|
|
|
|
|
# Files created by configure.
|
|
|
|
# config.status (and configure.cache, which is the same for Windows)
|
|
|
|
# are omitted for convenience of rebuilds.
|
|
|
|
QMAKE_DISTCLEAN += \
|
|
|
|
config.summary \
|
|
|
|
config.tests/.qmake.cache \
|
|
|
|
mkspecs/qconfig.pri \
|
|
|
|
mkspecs/qdevice.pri \
|
2016-03-18 14:35:10 +00:00
|
|
|
mkspecs/qhost.pri \
|
2015-04-23 11:40:49 +00:00
|
|
|
mkspecs/qmodule.pri \
|
|
|
|
src/corelib/global/qconfig.h \
|
2016-07-20 10:44:16 +00:00
|
|
|
src/corelib/global/qconfig_p.h \
|
2015-04-23 11:40:49 +00:00
|
|
|
src/corelib/global/qconfig.cpp \
|
|
|
|
bin/qt.conf
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
CONFIG -= qt
|
|
|
|
|
|
|
|
### installations ####
|
|
|
|
|
2015-05-22 13:02:23 +00:00
|
|
|
#licheck
|
|
|
|
licheck.path = $$[QT_HOST_BINS]
|
|
|
|
licheck.files = $$PWD/bin/$$QT_LICHECK
|
2015-06-02 13:37:16 +00:00
|
|
|
!isEmpty(QT_LICHECK): INSTALLS += licheck
|
2015-05-22 13:02:23 +00:00
|
|
|
|
2015-11-09 08:15:25 +00:00
|
|
|
#fixqt4headers.pl
|
|
|
|
fixqt4headers.path = $$[QT_HOST_BINS]
|
|
|
|
fixqt4headers.files = $$PWD/bin/fixqt4headers.pl
|
|
|
|
INSTALLS += fixqt4headers
|
|
|
|
|
2011-04-07 14:40:33 +00:00
|
|
|
#syncqt
|
2012-02-28 19:57:38 +00:00
|
|
|
syncqt.path = $$[QT_HOST_BINS]
|
2013-05-10 16:21:27 +00:00
|
|
|
syncqt.files = $$PWD/bin/syncqt.pl
|
2011-04-07 14:40:33 +00:00
|
|
|
INSTALLS += syncqt
|
|
|
|
|
2013-02-07 15:32:30 +00:00
|
|
|
# If we are doing a prefix build, create a "module" pri which enables
|
|
|
|
# qtPrepareTool() to find the non-installed syncqt.
|
2013-05-14 08:44:57 +00:00
|
|
|
prefix_build|!equals(PWD, $$OUT_PWD) {
|
2013-02-07 15:32:30 +00:00
|
|
|
|
2014-04-29 18:15:21 +00:00
|
|
|
cmd = perl -w $$system_path($$PWD/bin/syncqt.pl)
|
2013-02-07 15:32:30 +00:00
|
|
|
|
|
|
|
TOOL_PRI = $$OUT_PWD/mkspecs/modules/qt_tool_syncqt.pri
|
|
|
|
|
2013-06-13 15:28:52 +00:00
|
|
|
TOOL_PRI_CONT = "QT_TOOL.syncqt.binary = $$val_escape(cmd)"
|
2013-02-07 15:32:30 +00:00
|
|
|
write_file($$TOOL_PRI, TOOL_PRI_CONT)|error("Aborting.")
|
|
|
|
|
|
|
|
# Then, inject the new tool into the current cache state
|
|
|
|
!contains(QMAKE_INTERNAL_INCLUDED_FILES, $$TOOL_PRI) { # before the actual include()!
|
|
|
|
added = $$TOOL_PRI
|
|
|
|
cache(QMAKE_INTERNAL_INCLUDED_FILES, add transient, added)
|
|
|
|
}
|
|
|
|
include($$TOOL_PRI)
|
2013-06-13 15:28:52 +00:00
|
|
|
cache(QT_TOOL.syncqt.binary, transient)
|
2013-02-07 15:32:30 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#mkspecs
|
2012-02-28 19:57:38 +00:00
|
|
|
mkspecs.path = $$[QT_HOST_DATA]/mkspecs
|
2012-07-02 10:29:12 +00:00
|
|
|
mkspecs.files = \
|
2016-08-26 19:19:12 +00:00
|
|
|
$$OUT_PWD/mkspecs/qconfig.pri $$OUT_PWD/mkspecs/qmodule.pri \
|
2016-03-18 14:35:10 +00:00
|
|
|
$$OUT_PWD/mkspecs/qdevice.pri $$OUT_PWD/mkspecs/qhost.pri \
|
2013-05-08 14:29:11 +00:00
|
|
|
$$files($$PWD/mkspecs/*)
|
2013-11-26 16:02:59 +00:00
|
|
|
mkspecs.files -= $$PWD/mkspecs/modules $$PWD/mkspecs/modules-inst
|
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
|