2014-02-11 11:49:18 +00:00
|
|
|
# Extra target for running windeployqt
|
|
|
|
qtPrepareTool(QMAKE_WINDEPLOYQT, windeployqt)
|
|
|
|
build_pass {
|
|
|
|
load(resolve_target)
|
|
|
|
|
2014-04-29 18:15:21 +00:00
|
|
|
isEmpty(WINDEPLOYQT_OPTIONS): WINDEPLOYQT_OPTIONS = -qmldir $$shell_quote($$system_path($$_PRO_FILE_PWD_))
|
|
|
|
WINDEPLOYQT_TARGET = $$shell_quote($$system_path($$QMAKE_RESOLVED_TARGET))
|
|
|
|
WINDEPLOYQT_OUTPUT = $$shell_quote($$system_path($$dirname(QMAKE_RESOLVED_TARGET)/$$basename(TARGET).windeployqt))
|
2014-02-11 11:49:18 +00:00
|
|
|
windeployqt.target = windeployqt
|
|
|
|
windeployqt.commands = $$QMAKE_WINDEPLOYQT $$WINDEPLOYQT_OPTIONS -list target $$WINDEPLOYQT_TARGET > $$WINDEPLOYQT_OUTPUT
|
|
|
|
|
|
|
|
windeployqt_clean.commands = if exist $$WINDEPLOYQT_OUTPUT for /f %i in ($$WINDEPLOYQT_OUTPUT) do $$QMAKE_DEL_FILE %~fi && $$QMAKE_DEL_DIR %~pi
|
|
|
|
QMAKE_EXTRA_TARGETS += windeployqt_clean
|
|
|
|
DISTCLEAN_DEPS += windeployqt_clean
|
|
|
|
QMAKE_DISTCLEAN += $$WINDEPLOYQT_OUTPUT
|
|
|
|
} else {
|
|
|
|
windeployqt.CONFIG += recursive
|
2015-01-06 08:46:38 +00:00
|
|
|
windeployqt_clean.CONFIG += recursive
|
2014-02-11 11:49:18 +00:00
|
|
|
}
|
2015-01-06 08:46:38 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += windeployqt windeployqt_clean
|