mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
458cb25d6c
This commit produces consistent tar archives. issue #5255
70 lines
2.4 KiB
Makefile
70 lines
2.4 KiB
Makefile
include $(call select_from_repositories,lib/import/import-qt5_qmake.mk)
|
|
|
|
QT5_PORT_LIBS = libQt5Core libQt5Gui libQt5Network libQt5Widgets
|
|
QT5_PORT_LIBS += libQt5Qml libQt5QmlModels libQt5Quick
|
|
QT5_PORT_LIBS += libQt5Svg
|
|
|
|
LIBS = libc libm mesa stdcxx $(QT5_PORT_LIBS)
|
|
|
|
INSTALL_LIBS = lib/libQt5VirtualKeyboard.lib.so \
|
|
plugins/platforminputcontexts/libqtvirtualkeyboardplugin.lib.so \
|
|
qml/QtQuick/VirtualKeyboard/libqtquickvirtualkeyboardplugin.lib.so \
|
|
qml/QtQuick/VirtualKeyboard/Settings/libqtquickvirtualkeyboardsettingsplugin.lib.so \
|
|
qml/QtQuick/VirtualKeyboard/Styles/libqtquickvirtualkeyboardstylesplugin.lib.so
|
|
|
|
BUILD_ARTIFACTS = $(notdir $(INSTALL_LIBS)) \
|
|
qt5_libqtvirtualkeyboardplugin.tar \
|
|
qt5_virtualkeyboard_qml.tar
|
|
|
|
build: qmake_prepared.tag
|
|
|
|
@#
|
|
@# run qmake
|
|
@#
|
|
|
|
$(VERBOSE)source env.sh && $(QMAKE) \
|
|
-qtconf qmake_root/mkspecs/$(QMAKE_PLATFORM)/qt.conf \
|
|
$(QT_DIR)/qtvirtualkeyboard/qtvirtualkeyboard.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
|
|
|
|
@#
|
|
@# strip libs and create symlinks in 'bin' and 'debug' directories
|
|
@#
|
|
|
|
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 && \
|
|
$(OBJCOPY) --add-gnu-debuglink=$$(basename $${LIB}).debug $$(basename $${LIB}).stripped; \
|
|
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
|
|
|
|
@#
|
|
@# create tar archives
|
|
@#
|
|
|
|
$(VERBOSE)tar chf $(PWD)/bin/qt5_libqtvirtualkeyboardplugin.tar $(TAR_OPT) --transform='s/\.stripped//' -C install qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.lib.so.stripped
|
|
$(VERBOSE)tar chf $(PWD)/bin/qt5_virtualkeyboard_qml.tar $(TAR_OPT) --exclude='*.lib.so' --transform='s/\.stripped//' -C install qt/qml
|
|
|
|
.PHONY: build
|
|
|
|
ifeq ($(called_from_lib_mk),yes)
|
|
all: build
|
|
endif
|