Remove whitespace for file names generated from TARGET
Task-number: QTBUG-84492 Pick-to: 5.15 Change-Id: I70e79b7a57949e8dfd3781967e775bdea8822e0c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
4c5f6eb74c
commit
1e17d0e9d7
@ -24,7 +24,10 @@ moc_json_source.depends = $${MOC_JSON_CPP_BASE}${QMAKE_FILE_BASE}$${QMAKE_EXT_CP
|
|||||||
moc_json_source.commands = $$escape_expand(\\n) # force creation of rule
|
moc_json_source.commands = $$escape_expand(\\n) # force creation of rule
|
||||||
moc_json_source.variable_out = MOC_JSON_FILES
|
moc_json_source.variable_out = MOC_JSON_FILES
|
||||||
|
|
||||||
MOC_COLLECT_JSON_OUTPUT = $$lower($$basename(TARGET))_metatypes.json
|
TARGET_BASENAME = $$lower($$basename(TARGET))
|
||||||
|
TARGET_BASENAME ~= s/\s/_/g
|
||||||
|
|
||||||
|
MOC_COLLECT_JSON_OUTPUT = $${TARGET_BASENAME}_metatypes.json
|
||||||
|
|
||||||
moc_collect_json.CONFIG += no_link combine target_predeps
|
moc_collect_json.CONFIG += no_link combine target_predeps
|
||||||
moc_collect_json.commands = $$MOC_COLLECT_JSON --collect-json -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
|
moc_collect_json.commands = $$MOC_COLLECT_JSON --collect-json -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
|
||||||
|
@ -131,7 +131,10 @@ import_plugins:qtConfig(static) {
|
|||||||
else: \
|
else: \
|
||||||
warning("Plugin class name could not be determined for plugin '$$plug'.")
|
warning("Plugin class name could not be determined for plugin '$$plug'.")
|
||||||
}
|
}
|
||||||
IMPORT_CPP = $$OUT_PWD/$$lower($$basename(TARGET))_plugin_import.cpp
|
TARGET_BASENAME = $$lower($$basename(TARGET))
|
||||||
|
TARGET_BASENAME ~= s/\s/_/g
|
||||||
|
|
||||||
|
IMPORT_CPP = $$OUT_PWD/$${TARGET_BASENAME}_plugin_import.cpp
|
||||||
write_file($$IMPORT_CPP, IMPORT_FILE_CONT)|error()
|
write_file($$IMPORT_CPP, IMPORT_FILE_CONT)|error()
|
||||||
GENERATED_SOURCES += $$IMPORT_CPP
|
GENERATED_SOURCES += $$IMPORT_CPP
|
||||||
QMAKE_DISTCLEAN += $$IMPORT_CPP
|
QMAKE_DISTCLEAN += $$IMPORT_CPP
|
||||||
@ -331,7 +334,10 @@ contains(all_qt_module_deps, qml): \
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QML_IMPORT_CPP = $$OUT_PWD/$$lower($$basename(TARGET))_qml_plugin_import.cpp
|
TARGET_BASENAME = $$lower($$basename(TARGET))
|
||||||
|
TARGET_BASENAME ~= s/\s/_/g
|
||||||
|
|
||||||
|
QML_IMPORT_CPP = $$OUT_PWD/$${TARGET_BASENAME}_qml_plugin_import.cpp
|
||||||
write_file($$QML_IMPORT_CPP, IMPORT_FILE_CONT)|error()
|
write_file($$QML_IMPORT_CPP, IMPORT_FILE_CONT)|error()
|
||||||
GENERATED_SOURCES += $$QML_IMPORT_CPP
|
GENERATED_SOURCES += $$QML_IMPORT_CPP
|
||||||
QMAKE_DISTCLEAN += $$QML_IMPORT_CPP
|
QMAKE_DISTCLEAN += $$QML_IMPORT_CPP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user