2020-06-28 12:21:09 +00:00
|
|
|
include $(call select_from_repositories,lib/import/import-qt5_qmake.mk)
|
2017-07-26 12:46:22 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
QT5_PORT_LIBS = libQt5Core libQt5Gui libQt5Widgets
|
2017-07-26 12:46:22 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
LIBS = libc libm mesa stdcxx $(QT5_PORT_LIBS)
|
2017-07-26 12:46:22 +00:00
|
|
|
|
2023-10-18 06:52:24 +00:00
|
|
|
INSTALL_LIBS = lib/libQt5Svg.lib.so \
|
|
|
|
plugins/imageformats/libqsvg.lib.so
|
|
|
|
|
2024-02-20 03:47:44 +00:00
|
|
|
BUILD_ARTIFACTS = $(notdir $(INSTALL_LIBS)) \
|
|
|
|
qt5_libqsvg.tar
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
built.tag: qmake_prepared.tag
|
2017-07-26 12:46:22 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
@#
|
|
|
|
@# run qmake
|
|
|
|
@#
|
2017-07-26 12:46:22 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
$(VERBOSE)source env.sh && $(QMAKE) \
|
|
|
|
-qtconf qmake_root/mkspecs/$(QMAKE_PLATFORM)/qt.conf \
|
|
|
|
$(QT_DIR)/qtsvg/qtsvg.pro \
|
|
|
|
$(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_libqsvg.tar --transform='s/\.stripped//' -C install qt/plugins/imageformats/libqsvg.lib.so.stripped
|
|
|
|
|
|
|
|
@#
|
|
|
|
@# mark as done
|
|
|
|
@#
|
|
|
|
|
|
|
|
$(VERBOSE)touch $@
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(called_from_lib_mk),yes)
|
|
|
|
all: built.tag
|
|
|
|
endif
|