aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/bld_qtcreator_plugins.py
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-05-02 16:28:09 +0200
committerEike Ziller <eike.ziller@qt.io>2017-05-08 07:26:45 +0000
commit00cc39f4e8271d7e210fa4889fd85caa73e79f84 (patch)
tree93df743295ff80a1c3d30a1b35451763b923cc01 /packaging-tools/bld_qtcreator_plugins.py
parent23f16981170ba67cc6bab70ea85e48bc7a54b87e (diff)
Qt Creator: Support running 'deploy' target for plugins
Change-Id: I772a391ad0cd92627f9af450a8cb4e35f6ff15ea Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'packaging-tools/bld_qtcreator_plugins.py')
-rwxr-xr-xpackaging-tools/bld_qtcreator_plugins.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging-tools/bld_qtcreator_plugins.py b/packaging-tools/bld_qtcreator_plugins.py
index 2228cc99e..50d676abb 100755
--- a/packaging-tools/bld_qtcreator_plugins.py
+++ b/packaging-tools/bld_qtcreator_plugins.py
@@ -51,7 +51,7 @@ import sys
# own imports
from threadedwork import ThreadedWork
-from bld_utils import runBuildCommand, runCommand, stripVars
+from bld_utils import runBuildCommand, runInstallCommand, runCommand, stripVars
import bldinstallercommon
from bld_qtcreator import add_common_commandline_arguments, patch_qt_pri_files, qmake_binary, get_common_environment
@@ -76,6 +76,7 @@ def parse_arguments():
parser.add_argument('--deploy-command', help='Command to execute for custom deployment before deploying and packaging the target directory.'
+ 'The command gets the Qt prefix and plugin target directory as command line parameters. Pass multiple times for commands that have arguments.',
action='append', default=[])
+ parser.add_argument('--deploy', help='Run "make deploy" for additional deployment to IDE_OUTPUT_PATH.', action='store_true')
parser.add_argument('--out-dev', help='Target 7z file name for plugin dev package', dest='target_dev7zfile')
parser.add_argument('target_7zfile')
@@ -183,6 +184,9 @@ def build_plugins(caller_arguments):
custom_deploy_command = caller_arguments.deploy_command + [paths.qt5,
paths.target]
runCommand(custom_deploy_command, currentWorkingDirectory = paths.target)
+ if caller_arguments.deploy:
+ runInstallCommand(["deploy"], currentWorkingDirectory = paths.build,
+ callerArguments = caller_arguments, init_environment = environment)
sevenzip_filepath = '7z.exe' if bldinstallercommon.is_win_platform() else '7z'
if hasattr(caller_arguments, 'sevenzippath') and caller_arguments.sevenzippath: