2014-08-12 16:08:06 +00:00
|
|
|
#
|
|
|
|
# Build the tools using qmake
|
|
|
|
#
|
|
|
|
|
|
|
|
QMAKESPEC = $(QT5_CONTRIB_DIR)/qtbase/mkspecs/linux-g++
|
|
|
|
|
|
|
|
bootstrap/libQtBootstrap.a: bootstrap/Makefile
|
2017-05-22 12:50:09 +00:00
|
|
|
$(VERBOSE)QMAKESPEC=$(QMAKESPEC) $(MAKE) -C bootstrap \
|
2017-05-23 15:42:43 +00:00
|
|
|
DEFINES="-DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG"
|
2014-08-12 16:08:06 +00:00
|
|
|
|
|
|
|
moc/moc: bootstrap/libQtBootstrap.a moc/Makefile
|
2017-05-22 12:50:09 +00:00
|
|
|
$(VERBOSE)QMAKESPEC=$(QMAKESPEC) $(MAKE) -C moc \
|
2017-05-23 15:42:43 +00:00
|
|
|
DEFINES="-DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_MOC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_COMPRESS -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION"
|
2014-08-12 16:08:06 +00:00
|
|
|
|
|
|
|
rcc/rcc: bootstrap/libQtBootstrap.a rcc/Makefile
|
2017-05-22 12:50:09 +00:00
|
|
|
$(VERBOSE)QMAKESPEC=$(QMAKESPEC) $(MAKE) -C rcc \
|
2017-05-23 15:42:43 +00:00
|
|
|
DEFINES="-DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_RCC -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION"
|
2014-08-12 16:08:06 +00:00
|
|
|
|
|
|
|
uic/uic: bootstrap/libQtBootstrap.a uic/Makefile
|
2017-05-22 12:50:09 +00:00
|
|
|
$(VERBOSE)QMAKESPEC=$(QMAKESPEC) $(MAKE) -C uic \
|
2017-05-23 15:42:43 +00:00
|
|
|
DEFINES="-DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_UIC -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_UIC_CPP_GENERATOR -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION"
|
2014-08-12 16:08:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Rule to generate tool Makefiles from the respective pro files via qmake
|
|
|
|
#
|
|
|
|
# The second include path is required to resolve the Genode-specific
|
|
|
|
# 'gconfig.cpp' file. Even though this is a 'cpp' file, it is used via
|
|
|
|
# '#include'. So we have to make its location known to the 'INCLUDEPATH'.
|
|
|
|
#
|
|
|
|
%/Makefile: %.pro
|
2017-05-22 12:50:09 +00:00
|
|
|
$(VERBOSE)mkdir -p $*/.out
|
2014-08-12 16:08:06 +00:00
|
|
|
$(VERBOSE)QMAKESPEC=$(QMAKESPEC) qmake/bin/qmake -o $*/Makefile \
|
|
|
|
QT_BUILD_TREE=$(QT5_CONTRIB_DIR)/qtbase \
|
|
|
|
QT_CONFIG+=zlib \
|
2017-05-23 15:42:43 +00:00
|
|
|
QMAKE_CXXFLAGS=-std=c++11 \
|
2014-08-12 16:08:06 +00:00
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include \
|
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include \
|
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include/QtCore \
|
|
|
|
INCLUDEPATH+=$(REP_DIR)/src/lib/qt5/qtbase/src/corelib/global \
|
2017-05-23 15:42:43 +00:00
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include/QtCore/5.7.1 \
|
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include/QtCore/5.7.1/QtCore \
|
2014-08-12 16:08:06 +00:00
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include/QtXml \
|
2017-05-23 15:42:43 +00:00
|
|
|
INCLUDEPATH+=$(QT5_CONTRIB_DIR)/qtbase/include/QtXml/5.7.1/QtXml \
|
2014-08-12 16:08:06 +00:00
|
|
|
-after DESTDIR= \
|
|
|
|
-after "LIBS+=-lQtBootstrap -L../bootstrap" \
|
|
|
|
$^
|
|
|
|
|
|
|
|
vpath bootstrap.pro $(QT5_CONTRIB_DIR)/qtbase/src/tools/bootstrap
|
|
|
|
vpath moc.pro $(QT5_CONTRIB_DIR)/qtbase/src/tools/moc
|
|
|
|
vpath rcc.pro $(QT5_CONTRIB_DIR)/qtbase/src/tools/rcc
|
|
|
|
vpath uic.pro $(QT5_CONTRIB_DIR)/qtbase/src/tools/uic
|