diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-02-13 14:17:37 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-02-20 07:10:48 +0000 |
commit | f7ab9583b1de7b5fd7741c5fc2e0a676c19e94f1 (patch) | |
tree | 1c464756194b8faf8f1ff1dd459bcae657c88bf6 /packaging-tools/bld_qtcreator.py | |
parent | deb7b2a560b52f6feb61e9af3c6ec07aa5f1e4bd (diff) |
Qt Creator: Add separate build of CDB extensionv5.9.0-alpha1-packaging
That allows to include the 64bit extension in the 32bit installer
and vice versa, without using the special, static binaryartifacts
repository.
Change-Id: Ica2932224fa1af8f41701c0f9fa53716fcd71602
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'packaging-tools/bld_qtcreator.py')
-rwxr-xr-x | packaging-tools/bld_qtcreator.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging-tools/bld_qtcreator.py b/packaging-tools/bld_qtcreator.py index f958d4ff8..15b2be710 100755 --- a/packaging-tools/bld_qtcreator.py +++ b/packaging-tools/bld_qtcreator.py @@ -171,6 +171,12 @@ if __name__ == "__main__": '..', 'qt-creator_install')) qtCreatorTempDevDirectory = os.path.abspath(os.path.join(qtCreatorSourceDirectory, '..', 'qt-creator_dev')) + if bldinstallercommon.is_win_platform(): + cdbextSourceDirectory = os.path.join(qtCreatorSourceDirectory, 'src', 'libs', 'qtcreatorcdbext') + cdbextBuildDirectory = os.path.abspath(os.path.join(qtCreatorSourceDirectory, + '..', 'cdbextension_build')) + cdbextInstallDirectory = os.path.abspath(os.path.join(qtCreatorSourceDirectory, + '..', 'cdbextension_install')) tempPath = os.path.abspath(os.path.join(qtCreatorSourceDirectory, '..', 'qt-creator_temp')) @@ -188,6 +194,9 @@ if __name__ == "__main__": bldinstallercommon.remove_tree(callerArguments.qt5path) bldinstallercommon.remove_tree(qtCreatorBuildDirectory) bldinstallercommon.remove_tree(qtCreatorInstallDirectory) + if bldinstallercommon.is_win_platform(): + bldinstallercommon.remove_tree(cdbextBuildDirectory) + bldinstallercommon.remove_tree(cdbextInstallDirectory) bldinstallercommon.remove_tree(tempPath) if not os.path.lexists(callerArguments.qt5path) and not callerArguments.qt_modules: @@ -276,6 +285,20 @@ if __name__ == "__main__": runInstallCommand('dmg', qtCreatorBuildDirectory, callerArguments = callerArguments, init_environment = environment) + # cdbextension + if bldinstallercommon.is_win_platform(): + runCommand([qmakeBinary, 'QTC_PREFIX=' + cdbextInstallDirectory, 'CONFIG+=' + buildType, cdbextSourceDirectory], + cdbextBuildDirectory, callerArguments = callerArguments, init_environment = environment) + runBuildCommand(currentWorkingDirectory = cdbextBuildDirectory, + callerArguments = callerArguments, init_environment = environment) + runInstallCommand('install', currentWorkingDirectory = cdbextBuildDirectory, + callerArguments = callerArguments, init_environment = environment) + runCommand(['7z.exe', 'a', '-mx9', os.path.join(qtCreatorBuildDirectory, 'qtcreatorcdbext.7z'), + os.path.join(cdbextInstallDirectory, '*')], + currentWorkingDirectory = qtCreatorBuildDirectory, callerArguments = callerArguments, + init_environment = environment) + + # dev package bldinstallercommon.remove_tree(qtCreatorTempDevDirectory) runCommand(['python', '-u', os.path.join(qtCreatorSourceDirectory, 'scripts', 'createDevPackage.py'), '--source', qtCreatorSourceDirectory, '--build', qtCreatorBuildDirectory, |