summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-06 14:00:35 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-06 14:00:35 +0800
commit28f9f5e32499d6c3ce8e720d832a8ed19aeb9409 (patch)
tree10bb37f78dd0704e2f561a4ee3bd437aa3eef35d
parent557f670bbf132f2abc7e79f9db923e49aa781602 (diff)
To make it work on wasm
because the plugin is static (on iOS too, but not yet tested) The plugin seems to be loaded, but it doesn't seem to cause any effect.
-rw-r--r--Bootstrap.hxx2
-rw-r--r--qmldir1
-rw-r--r--qootstrap.pro1
3 files changed, 3 insertions, 1 deletions
diff --git a/Bootstrap.hxx b/Bootstrap.hxx
index eecbda6..828a031 100644
--- a/Bootstrap.hxx
+++ b/Bootstrap.hxx
@@ -7,7 +7,7 @@
class Qootstrap : public QQmlEngineExtensionPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
+ Q_PLUGIN_METADATA(IID "org.darapsa.Qootstrap")
};
class Bootstrap : public QObject
diff --git a/qmldir b/qmldir
index 8850490..ca06b67 100644
--- a/qmldir
+++ b/qmldir
@@ -1,2 +1,3 @@
module Bootstrap
plugin qootstrap
+classname Qootstrap
diff --git a/qootstrap.pro b/qootstrap.pro
index c3236cf..ecbd49c 100644
--- a/qootstrap.pro
+++ b/qootstrap.pro
@@ -1,5 +1,6 @@
TEMPLATE = lib
CONFIG += plugin qmltypes
+wasm: CONFIG += static
QT += qml
QML_IMPORT_NAME = Bootstrap