2020-06-28 12:21:09 +00:00
|
|
|
include $(call select_from_repositories,lib/import/import-qt5_qmake.mk)
|
|
|
|
|
|
|
|
LIBS = base libc libm stdcxx qt5_component egl mesa qoost
|
|
|
|
|
2023-10-18 06:52:24 +00:00
|
|
|
INSTALL_LIBS = lib/libQt5Core.lib.so \
|
|
|
|
lib/libQt5Gui.lib.so \
|
|
|
|
lib/libQt5Network.lib.so \
|
|
|
|
lib/libQt5PrintSupport.lib.so \
|
|
|
|
lib/libQt5Sql.lib.so \
|
|
|
|
lib/libQt5Test.lib.so \
|
|
|
|
lib/libQt5Widgets.lib.so \
|
|
|
|
lib/libQt5Xml.lib.so \
|
|
|
|
plugins/platforms/libqgenode.lib.so \
|
|
|
|
plugins/imageformats/libqjpeg.lib.so \
|
|
|
|
plugins/sqldrivers/libqsqlite.lib.so
|
|
|
|
|
2024-02-20 03:47:44 +00:00
|
|
|
BUILD_ARTIFACTS = $(notdir $(INSTALL_LIBS)) \
|
|
|
|
qt5_libqgenode.tar \
|
|
|
|
qt5_libqjpeg.tar \
|
|
|
|
qt5_libqsqlite.tar
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
built.tag: qmake_prepared.tag qmake_root/lib/ld.lib.so
|
|
|
|
|
|
|
|
@#
|
|
|
|
@# run qmake
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)source env.sh && $(QMAKE) \
|
|
|
|
-qtconf qmake_root/mkspecs/$(QMAKE_PLATFORM)/qt.conf \
|
|
|
|
$(QT_DIR)/qtbase/qtbase.pro \
|
|
|
|
-- \
|
|
|
|
-prefix /qt \
|
|
|
|
-xplatform $(QMAKE_PLATFORM) \
|
|
|
|
-qpa genode \
|
|
|
|
-opensource \
|
|
|
|
-confirm-license \
|
|
|
|
-no-pch \
|
|
|
|
-release \
|
2020-08-25 10:05:15 +00:00
|
|
|
-force-debug-info \
|
2020-06-28 12:21:09 +00:00
|
|
|
-no-strip \
|
|
|
|
-opengl desktop \
|
|
|
|
-no-feature-dbus \
|
|
|
|
-no-feature-networkinterface \
|
|
|
|
-no-feature-process \
|
2022-08-23 09:14:51 +00:00
|
|
|
-no-feature-relocatable \
|
2021-08-24 12:10:43 +00:00
|
|
|
-no-feature-vulkan \
|
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
|
|
|
|
|
|
|
|
@#
|
2023-10-18 06:52:24 +00:00
|
|
|
@# strip libs and create symlinks in 'bin' and 'debug' directories
|
2020-06-28 12:21:09 +00:00
|
|
|
@#
|
|
|
|
|
2023-10-18 06:52:24 +00:00
|
|
|
for LIB in $(INSTALL_LIBS); do \
|
|
|
|
cd $(CURDIR)/install/qt/$$(dirname $${LIB}) && \
|
|
|
|
$(OBJCOPY) --only-keep-debug $$(basename $${LIB}) $$(basename $${LIB}).debug && \
|
|
|
|
$(STRIP) $$(basename $${LIB}) -o $$(basename $${LIB}).stripped && \
|
2024-02-12 14:26:14 +00:00
|
|
|
$(OBJCOPY) --add-gnu-debuglink=$$(basename $${LIB}).debug $$(basename $${LIB}).stripped; \
|
2023-10-18 06:52:24 +00:00
|
|
|
ln -sf $(CURDIR)/install/qt/$${LIB}.stripped $(PWD)/bin/$$(basename $${LIB}); \
|
|
|
|
ln -sf $(CURDIR)/install/qt/$${LIB}.stripped $(PWD)/debug/$$(basename $${LIB}); \
|
|
|
|
ln -sf $(CURDIR)/install/qt/$${LIB}.debug $(PWD)/debug/; \
|
|
|
|
done
|
2020-06-28 12:21:09 +00:00
|
|
|
|
|
|
|
@#
|
|
|
|
@# create tar archives
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)tar chf $(PWD)/bin/qt5_libqgenode.tar --transform='s/\.stripped//' -C install qt/plugins/platforms/libqgenode.lib.so.stripped
|
|
|
|
$(VERBOSE)tar chf $(PWD)/bin/qt5_libqjpeg.tar --transform='s/\.stripped//' -C install qt/plugins/imageformats/libqjpeg.lib.so.stripped
|
2020-08-25 10:05:15 +00:00
|
|
|
$(VERBOSE)tar chf $(PWD)/bin/qt5_libqsqlite.tar --transform='s/\.stripped//' -C install qt/plugins/sqldrivers/libqsqlite.lib.so.stripped
|
2020-06-28 12:21:09 +00:00
|
|
|
|
|
|
|
@#
|
|
|
|
@# mark as done
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)touch $@
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(called_from_lib_mk),yes)
|
|
|
|
all: built.tag
|
|
|
|
endif
|