aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qmltyperegistrar/qmltypes.prf9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qmltyperegistrar/qmltypes.prf b/src/qmltyperegistrar/qmltypes.prf
index 18fd089c0a..e02d425f2a 100644
--- a/src/qmltyperegistrar/qmltypes.prf
+++ b/src/qmltyperegistrar/qmltypes.prf
@@ -29,9 +29,12 @@ isEmpty(QML_IMPORT_MINOR_VERSION) {
QML_IMPORT_MINOR_VERSION = 0
}
+TARGET_BASENAME = $$lower($$basename(TARGET))
+TARGET_BASENAME ~= s/\s/_/g
+
isEmpty(QMLTYPES_FILENAME) {
plugin: QMLTYPES_FILENAME = plugins.qmltypes
- else: QMLTYPES_FILENAME = $${TARGET}.qmltypes
+ else: QMLTYPES_FILENAME = $${TARGET_BASENAME}.qmltypes
}
qt_module_deps = $$replace(QT, -private$, '')
@@ -62,9 +65,9 @@ QML_TYPEREGISTRAR_FLAGS = \
!isEmpty(MODULE_PRIVATE_INCLUDES): QML_TYPEREGISTRAR_FLAGS += --private-includes
-METATYPES_JSON = $$lower($$basename(TARGET))_metatypes.json
+METATYPES_JSON = $${TARGET_BASENAME}_metatypes.json
-TYPEREGISTRATIONS = $$lower($$basename(TARGET))_qmltyperegistrations$${first(QMAKE_EXT_CPP)}
+TYPEREGISTRATIONS = $${TARGET_BASENAME}_qmltyperegistrations$${first(QMAKE_EXT_CPP)}
qmltyperegistrar_compiler.CONFIG += combine
qmltyperegistrar_compiler.commands = \