diff options
author | Kai Koehne <kai.koehne@qt.io> | 2020-05-28 18:02:18 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-06-02 12:59:18 +0200 |
commit | baff6585c0a3f3aeec4f076d04d5b300a08ca5f1 (patch) | |
tree | fc5242bcf02adbb1b6928e5ccb26ac51eedfa902 /src/qmltyperegistrar/qmltypes.prf | |
parent | 768b0f2adefffced84aadd4f44b07e8dedbb8f72 (diff) |
Remove whitespace for file names generated from TARGET
Task-number: QTBUG-84492
Pick-to: 5.15
Change-Id: Ieeec677634fb6d2f43ba1aeb3432a60cd5502894
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/qmltyperegistrar/qmltypes.prf')
-rw-r--r-- | src/qmltyperegistrar/qmltypes.prf | 9 |
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 = \ |