qt55.qtbase: add makeQtWrapper
This commit is contained in:
parent
998f234d1a
commit
a122ca8ba3
@ -50,7 +50,21 @@ setQMakePath() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wrapQtProgram() {
|
wrapQtProgram() {
|
||||||
wrapProgram "$1" \
|
local prog="$1"
|
||||||
|
shift
|
||||||
|
wrapProgram "$prog" \
|
||||||
|
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
|
||||||
|
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
|
||||||
|
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
makeQtWrapper() {
|
||||||
|
local old="$1"
|
||||||
|
local new="$2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
makeWrapper "$old" "$new" \
|
||||||
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
|
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
|
||||||
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
|
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
|
||||||
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
|
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
|
||||||
|
Loading…
Reference in New Issue
Block a user