2013-11-25 18:03:06 +00:00
|
|
|
include $(REP_DIR)/lib/import/import-qt5_qtquick2plugin.mk
|
|
|
|
|
|
|
|
SHARED_LIB = yes
|
|
|
|
|
|
|
|
include $(REP_DIR)/lib/mk/qt5_qtquick2plugin_generated.inc
|
|
|
|
|
|
|
|
QT_DEFINES += -UQT_STATICPLUGIN
|
|
|
|
|
|
|
|
include $(REP_DIR)/lib/mk/qt5.inc
|
|
|
|
|
|
|
|
LIBS += qt5_qml
|
|
|
|
|
|
|
|
# install the QtQuick QML plugin
|
|
|
|
|
2014-08-12 16:08:06 +00:00
|
|
|
QTQUICK_INSTALL_DIR := $(BUILD_BASE_DIR)/bin/qt5_fs/qt/qml/QtQuick.2
|
2013-11-25 18:03:06 +00:00
|
|
|
QTQUICK_QMLDIR := $(QTQUICK_INSTALL_DIR)/qmldir
|
|
|
|
QTQUICK_PLUGIN_NAME := qt5_qtquick2plugin.lib.so
|
|
|
|
QTQUICK_PLUGIN := $(QTQUICK_INSTALL_DIR)/$(QTQUICK_PLUGIN_NAME)
|
|
|
|
|
|
|
|
$(QTQUICK_INSTALL_DIR):
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
|
|
|
|
$(QTQUICK_QMLDIR): $(QTQUICK_INSTALL_DIR)
|
2014-08-12 16:08:06 +00:00
|
|
|
$(VERBOSE)cp $(QT5_CONTRIB_DIR)/qtdeclarative/src/imports/qtquick2/qmldir $(QTQUICK_INSTALL_DIR)
|
2013-11-25 18:03:06 +00:00
|
|
|
|
|
|
|
$(QTQUICK_PLUGIN): $(QTQUICK_INSTALL_DIR)
|
|
|
|
$(VERBOSE)ln -sf $(BUILD_BASE_DIR)/bin/$(QTQUICK_PLUGIN_NAME) $(QTQUICK_INSTALL_DIR)/$(QTQUICK_PLUGIN_NAME)
|
|
|
|
|
2017-03-13 14:46:41 +00:00
|
|
|
ifneq ($(call select_from_ports,qt5),)
|
2013-11-25 18:03:06 +00:00
|
|
|
all: $(QTQUICK_QMLDIR) $(QTQUICK_PLUGIN)
|
2017-03-13 14:46:41 +00:00
|
|
|
endif
|
2013-11-25 18:03:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# unfortunately, these clean rules don't trigger
|
|
|
|
#
|
|
|
|
|
|
|
|
clean-qtquick_install_dir:
|
|
|
|
rm -rf $(QTQUICK_INSTALL_DIR)
|
|
|
|
|
|
|
|
clean: clean-qtquick_install_dir
|