2020-06-28 12:21:09 +00:00
|
|
|
include $(call select_from_repositories,lib/import/import-qt5_qmake.mk)
|
|
|
|
|
|
|
|
QT5_PORT_LIBS = libQt5Core libQt5Gui libQt5Network libQt5Sql libQt5Test libQt5Widgets
|
|
|
|
|
|
|
|
LIBS = libc libm mesa stdcxx $(QT5_PORT_LIBS)
|
|
|
|
|
2022-06-29 21:03:21 +00:00
|
|
|
INSTALL_LIBS = lib/libQt5Qml.lib.so \
|
2022-08-23 09:14:51 +00:00
|
|
|
lib/libQt5QmlModels.lib.so \
|
|
|
|
lib/libQt5QmlWorkerScript.lib.so \
|
2022-06-29 21:03:21 +00:00
|
|
|
lib/libQt5Quick.lib.so \
|
|
|
|
lib/libQt5QuickParticles.lib.so \
|
|
|
|
lib/libQt5QuickShapes.lib.so \
|
|
|
|
lib/libQt5QuickTest.lib.so \
|
|
|
|
lib/libQt5QuickWidgets.lib.so \
|
2022-08-23 09:14:51 +00:00
|
|
|
qml/Qt/labs/animation/liblabsanimationplugin.lib.so \
|
2022-06-29 21:03:21 +00:00
|
|
|
qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.lib.so \
|
|
|
|
qml/Qt/labs/qmlmodels/liblabsmodelsplugin.lib.so \
|
|
|
|
qml/Qt/labs/settings/libqmlsettingsplugin.lib.so \
|
|
|
|
qml/Qt/labs/wavefrontmesh/libqmlwavefrontmeshplugin.lib.so \
|
|
|
|
qml/QtQml/Models.2/libmodelsplugin.lib.so \
|
|
|
|
qml/QtQml/StateMachine/libqtqmlstatemachine.lib.so \
|
2022-08-23 09:14:51 +00:00
|
|
|
qml/QtQml/WorkerScript.2/libworkerscriptplugin.lib.so \
|
|
|
|
qml/QtQml/libqmlplugin.lib.so \
|
2022-06-29 21:03:21 +00:00
|
|
|
qml/QtQuick.2/libqtquick2plugin.lib.so \
|
|
|
|
qml/QtQuick/Layouts/libqquicklayoutsplugin.lib.so \
|
|
|
|
qml/QtQuick/LocalStorage/libqmllocalstorageplugin.lib.so \
|
|
|
|
qml/QtQuick/Particles.2/libparticlesplugin.lib.so \
|
|
|
|
qml/QtQuick/Shapes/libqmlshapesplugin.lib.so \
|
|
|
|
qml/QtQuick/Window.2/libwindowplugin.lib.so \
|
|
|
|
qml/QtTest/libqmltestplugin.lib.so
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
built.tag: qmake_prepared.tag
|
|
|
|
|
|
|
|
@#
|
|
|
|
@# run qmake
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)source env.sh && $(QMAKE) \
|
|
|
|
-qtconf qmake_root/mkspecs/$(QMAKE_PLATFORM)/qt.conf \
|
|
|
|
$(QT_DIR)/qtdeclarative/qtdeclarative.pro \
|
|
|
|
-- \
|
|
|
|
-no-feature-qml-devtools \
|
2022-08-23 09:14:51 +00:00
|
|
|
-no-feature-qml-jit \
|
2020-06-28 12:21:09 +00:00
|
|
|
$(QT5_OUTPUT_FILTER)
|
|
|
|
|
|
|
|
@#
|
|
|
|
@# build
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)source env.sh && $(MAKE) sub-src $(QT5_OUTPUT_FILTER)
|
|
|
|
|
|
|
|
@#
|
|
|
|
@# install into local 'install' directory
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)$(MAKE) INSTALL_ROOT=$(CURDIR)/install sub-src-install_subtargets $(QT5_OUTPUT_FILTER)
|
|
|
|
|
|
|
|
$(VERBOSE)ln -sf .$(CURDIR)/qmake_root install/qt
|
|
|
|
|
|
|
|
@#
|
2022-06-29 21:03:21 +00:00
|
|
|
@# strip libs and create symlinks in 'bin' and 'debug' directories
|
2020-06-28 12:21:09 +00:00
|
|
|
@#
|
|
|
|
|
2022-06-29 21:03:21 +00:00
|
|
|
for LIB in $(INSTALL_LIBS); do \
|
|
|
|
cd $(CURDIR)/install/qt/$$(dirname $${LIB}) && \
|
|
|
|
$(STRIP) $$(basename $${LIB}) -o $$(basename $${LIB}).stripped; \
|
|
|
|
ln -sf $(CURDIR)/install/qt/$${LIB}.stripped $(PWD)/bin/$$(basename $${LIB}); \
|
|
|
|
ln -sf $(CURDIR)/install/qt/$${LIB} $(PWD)/debug/; \
|
|
|
|
done
|
2020-06-28 12:21:09 +00:00
|
|
|
|
|
|
|
@#
|
|
|
|
@# create tar archives
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)tar chf $(PWD)/bin/qt5_declarative_qml.tar --exclude='*.lib.so' --transform='s/\.stripped//' -C install qt/qml
|
|
|
|
|
|
|
|
@#
|
|
|
|
@# mark as done
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)touch $@
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(called_from_lib_mk),yes)
|
|
|
|
all: built.tag
|
|
|
|
endif
|