mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
6a395d9a29
This patch enables experimental QML support in Qt5. Only the QtQuick plugin is available yet. Currently runs best on Linux and has some problems on NOVA and Fiasco.OC. Fixes #979.
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
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
|
|
|
|
QTQUICK_INSTALL_DIR := $(BUILD_BASE_DIR)/bin/qt5_fs/qt5/qml/QtQuick.2
|
|
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)
|
|
$(VERBOSE)cp $(REP_DIR)/contrib/$(QT5)/qtdeclarative/src/imports/qtquick2/qmldir $(QTQUICK_INSTALL_DIR)
|
|
|
|
$(QTQUICK_PLUGIN): $(QTQUICK_INSTALL_DIR)
|
|
$(VERBOSE)ln -sf $(BUILD_BASE_DIR)/bin/$(QTQUICK_PLUGIN_NAME) $(QTQUICK_INSTALL_DIR)/$(QTQUICK_PLUGIN_NAME)
|
|
|
|
all: $(QTQUICK_QMLDIR) $(QTQUICK_PLUGIN)
|
|
|
|
#
|
|
# unfortunately, these clean rules don't trigger
|
|
#
|
|
|
|
clean-qtquick_install_dir:
|
|
rm -rf $(QTQUICK_INSTALL_DIR)
|
|
|
|
clean: clean-qtquick_install_dir
|
|
|