genode/repos/libports/lib/mk/qt5_qtquick2plugin.mk

46 lines
976 B
Makefile
Raw Normal View History

2018-04-24 10:40:22 +00:00
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
SHARED_LIB = yes
include $(REP_DIR)/lib/mk/qt5_qtquick2plugin_generated.inc
QT_DEFINES += -UQT_STATICPLUGIN
include $(REP_DIR)/lib/mk/qt5.inc
2018-04-24 10:40:22 +00:00
LIBS += qt5_core qt5_gui qt5_qml qt5_quick
# install the QML plugin
2018-04-24 10:40:22 +00:00
QML_PLUGIN_NAME := qt5_qtquick2plugin
QML_INSTALL_DIR := qt/qml/QtQuick.2
2018-04-24 10:40:22 +00:00
QML_PLUGIN := $(QML_INSTALL_DIR)/$(QML_PLUGIN_NAME).lib.so
TAR_ARCHIVE := $(BUILD_BASE_DIR)/bin/$(QML_PLUGIN_NAME).tar
2018-04-24 10:40:22 +00:00
$(QML_INSTALL_DIR):
$(VERBOSE)mkdir -p $@
2018-04-24 10:40:22 +00:00
$(QML_PLUGIN): $(QML_INSTALL_DIR) $(QML_PLUGIN_NAME).lib.so.stripped
$(VERBOSE)cp $(QML_PLUGIN_NAME).lib.so.stripped $@
2018-04-24 10:40:22 +00:00
$(TAR_ARCHIVE): $(QML_PLUGIN)
$(VERBOSE)tar cf $@ qt
2017-03-13 14:46:41 +00:00
ifneq ($(call select_from_ports,qt5),)
2018-04-24 10:40:22 +00:00
$(QML_PLUGIN_NAME).lib.tag: $(TAR_ARCHIVE)
2017-03-13 14:46:41 +00:00
endif
#
# unfortunately, these clean rules don't trigger
#
2018-04-24 10:40:22 +00:00
clean-tar_archive:
rm -rf $(TAR_ARCHIVE)
2018-04-24 10:40:22 +00:00
clean: clean-tar_archive
CC_CXX_WARN_STRICT =