forked from qt-creator/qt-creator
Integrate deployqtHelp_mac.sh into deployqt.py
For now this is a dummy integration by just calling the former from the latter, which has the advantage that - only one script needs to be used for all platforms - passing just qmake instead of individual install paths is enough also on macOS Change-Id: Ie05077ada950addd287b87d88045605d3bddb48f Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -216,30 +216,15 @@ def build_qtcreatorcdbext(args, paths):
|
||||
paths.build)
|
||||
|
||||
def deploy_qt(args, paths):
|
||||
if common.is_mac_platform():
|
||||
script = os.path.join(paths.src, 'scripts', 'deployqtHelper_mac.sh')
|
||||
app = os.path.join(paths.install, args.app_target)
|
||||
# TODO this is wrong if Qt is set up non-standard
|
||||
# TODO integrate deployqtHelper_mac.sh into deployqt.py, finally
|
||||
qt_bins = os.path.join(paths.qt, 'bin')
|
||||
qt_translations = os.path.join(paths.qt, 'translations')
|
||||
qt_plugins = os.path.join(paths.qt, 'plugins')
|
||||
qt_qml = os.path.join(paths.qt, 'qml')
|
||||
env = dict(os.environ)
|
||||
if paths.llvm:
|
||||
env['LLVM_INSTALL_DIR'] = paths.llvm
|
||||
common.check_print_call([script, app, qt_bins, qt_translations, qt_plugins, qt_qml],
|
||||
paths.build,
|
||||
env=env)
|
||||
else:
|
||||
cmd_args = ['python', '-u', os.path.join(paths.src, 'scripts', 'deployqt.py'), '-i']
|
||||
if paths.elfutils:
|
||||
cmd_args.extend(['--elfutils-path', paths.elfutils])
|
||||
if paths.llvm:
|
||||
cmd_args.extend(['--llvm-path', paths.llvm])
|
||||
exe = os.path.join(paths.install, 'bin', args.app_target)
|
||||
common.check_print_call(cmd_args + [exe, os.path.join(paths.qt, 'bin', 'qmake')],
|
||||
paths.build)
|
||||
cmd_args = ['python', '-u', os.path.join(paths.src, 'scripts', 'deployqt.py'), '-i']
|
||||
if paths.elfutils:
|
||||
cmd_args.extend(['--elfutils-path', paths.elfutils])
|
||||
if paths.llvm:
|
||||
cmd_args.extend(['--llvm-path', paths.llvm])
|
||||
app = (os.path.join(paths.install, args.app_target) if common.is_mac_platform()
|
||||
else os.path.join(paths.install, 'bin', args.app_target))
|
||||
common.check_print_call(cmd_args + [app, os.path.join(paths.qt, 'bin', 'qmake')],
|
||||
paths.build)
|
||||
|
||||
def package_qtcreator(args, paths):
|
||||
if not args.no_zip:
|
||||
|
||||
Reference in New Issue
Block a user