aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build_plugin.py
Commit message (Collapse)AuthorAgeFilesLines
* build_plugin: Enable SBOM generationEike Ziller2025-09-051-0/+1
| | | | | | | | If the plugin supports it. If it doesn't call anything SBOM related, setting the QT_GENERATE_SBOM=ON doesn't do anything, so it doesn't hurt. Change-Id: Iaf7bd5e91884ed7e105271a233b428688708a977 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Scripts: Handle "nothing installed" case gracefully for plugin buildsEike Ziller2025-06-171-9/+16
| | | | | | | | | | When (temporarily) turning off the QmlDesigner build, the separate QmlDesigner plugin repository build results in nothing being installed. The 7zip call and signing code then fails if the installation directory isn't even created as a consequence. Change-Id: I14cc9504b6a5d653ab94845423e266d2cb8caf42 Reviewed-by: David Schulz <david.schulz@qt.io>
* Build: Unify archive creationEike Ziller2024-11-111-6/+1
| | | | | | | | | Between building Qt Creator, extra plugins, and sdktool. This adds avoiding arm-specific 7zip methods to the sdktool build, which cannot be extracted with p7zip on Linux. Change-Id: Ibc8a18967b6c4e7869a4a86680da9005f70d498b Reviewed-by: David Schulz <david.schulz@qt.io>
* Build: Fix zipping of dev package on LinuxEike Ziller2024-11-071-1/+4
| | | | | | | | | | | | Official 7zip normally checks for the existence of symlink targets, and fails if they do not. That can be avoided with a command line flag. This is important for the dev packages on Linux, where the libFoo.so is a symlink to the actual library, and the symlink is part of the dev package, but the actual library part of the non-dev package. Change-Id: Ibd5855c4e106c96058a693d87e84d0f2d8f93365 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Patrik Teivonen <patrik.teivonen@qt.io>
* Build: Fix 7zip command for ARM machines also for pluginsEike Ziller2024-10-111-8/+11
| | | | | | | Amends 14e04c03252238b771a2cc251cce6b17f2075b96 Change-Id: Ice95e62d451f1d4d65245337d01ce7481501fdbb Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* scripts: add zip_threads argument to every callTim Jenssen2024-01-171-3/+3
| | | | | Change-Id: Ie3fabbea5e8082f73eac71d8c7650a82fa706b30 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Build: Optionally sign on WindowsEike Ziller2023-04-111-0/+7
| | | | | | | | | | | Add an argument to the build script that takes a signing command (path to sign is added at the end, run in cwd) Task-number: QTCREATORBUG-25740 Task-number: QTCREATORBUG-28909 Change-Id: I6d3bdf7bd9fab0ea1fc129da08cf77c9a5448b31 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Replace GPL-3.0 with GPL-3.0-onlyKai Köhne2023-01-101-1/+1
| | | | | | | | | | | | | GPL-3.0 is deprecated by SPDX. Change done by find . -type f -exec perl -pi -e 's/LicenseRef-Qt-Commercial OR GPL-3.0(?!-)/LicenseRef-Qt-Commercial OR GPL-3.0-only/g' {} \; Change-Id: If316a498e3f27d2030b86d4e7743b3237ce09939 Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* build_plugins.py: Create signed package for pluginsEike Ziller2022-12-161-0/+22
| | | | | | | | | | On macOS if SIGNING_IDENTITY is given. Creates an extra <plugin>-signed.7z, to not interfere with existing build setups. Change-Id: I8ec7f5cbeb14fb749d5d62398916629b83bdb833 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Scripts: Fix permissionsChristian Stenger2022-08-291-0/+0
| | | | | | | Broke with a7956df3ca45. Change-Id: I072ea34183aedf2fd693af1bb589660aa06b9e1c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-27/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move build scripts to Python3Eike Ziller2022-04-201-1/+1
| | | | | | | | | On newer macOS versions there even is no unversioned python executable anymore, so we need to make it explicit Change-Id: Ic2260a06b859e949a42f7dc34f1ff4dd582ce635 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/6.0'Eike Ziller2022-01-061-0/+4
|\ | | | | | | Change-Id: I405e3f95b0cdcd7b2686f31baae16c03c787f007
| * Do not link packages against libGLX and libOpenGLEike Ziller2022-01-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Also for the additional plugins. Work around QTBUG-89754 Amends 7d948b0c5ddba598b74cba3bbfe5275d16a80e10 Fixes: QTCREATORBUG-26744 Change-Id: I5cafcbe77a37fcd9c5432ef45aa364066d772be8 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-12-161-0/+6
|\| | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/editormanager/editormanager.cpp Change-Id: I80fe565749ad5c06dfe99436f2dc6ab4b66a2537
| * build_plugin.py: Add --add-module-path optionEike Ziller2021-12-151-0/+6
| | | | | | | | | | | | | | | | Like we have for build.py Change-Id: I8450b81edcdf10300985762153cd5750d9ddcd59 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-12-011-1/+2
|\| | | | | | | Change-Id: I71b19dd8ecd96a7a2a58622f68283b8635264e48
| * Work around error when building telemetry pluginEike Ziller2021-11-301-1/+2
| | | | | | | | | | | | Change-Id: Ia4a4314180b561c2a45446b1ae550c3164612b10 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Add option to build QtCreator with sanitizerJoerg Kreuzberger2021-11-051-0/+6
|/ | | | | | | Fixes: QTCREATORBUG-26318 Change-Id: I44589b5bb39958eda2329b444e4857e8f61823bf Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* macOS: Adapt build_plugin.py for possibly branded application bundleEike Ziller2021-04-121-9/+14
| | | | | Change-Id: I0d9860db78c2f617f5e8631064b271c0207f01de Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* CMake build: Fix remaining issues with Devel packageEike Ziller2021-04-061-0/+8
| | | | | | | | | | | | | | | | | | | | | On Linux (and Windows) we should not create toplevel files (README.md etc) or directories (doc/, scripts/ etc). On macOS, move the whole Devel package contents into the app bundle, because that is installed toplevel in the Qt installers, and we shouldn't even create include/, lib/ or any other directory at the toplevel at all. Since the prefix path must now point to the Resources folder inside the app bundle, adapt build_plugin.py to also accept --qtc-path pointing to the app bundle (Qt Creator.app) itself, and also to the app bundles parent directory. Adapt the Qt Creator plugin project template similarly. Task-number: QTCREATORBUG-25414 Fixes: QTCREATORBUG-25415 Change-Id: Ic756237fb920b54b1ec95d076649ad947b39a7e8 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* cmake build: Make separate debug info optionalEike Ziller2020-12-221-0/+2
| | | | | | | | | In the CMake build in general, but still use it for RelWithDebInfo builds with the build*.py scripts. Fixes: QTCREATORBUG-25151 Change-Id: I8414f953278ebb395f73414c12af0ed7bd4fcdbe Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* cmake build: Create DebugInfo component with separate debug infoEike Ziller2020-11-171-2/+13
| | | | | | | | | | | When building with RelWithDebInfo. The CMake code is adapted from corresponding (internal) functions from Qt 6. Also let the scripts create an additional *-debug.7z with the debug info. Task-number: QTCREATORBUG-24916 Change-Id: Ibc3c8c0013718b9c5e868136e5ce01e1e99f84c4 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Build in release mode on GitHubEike Ziller2020-11-121-3/+3
| | | | | | | | | | | | Add option to build scripts to override build type, so it can be freely chosen. Build in release mode on GitHub - RelWithDebInfo was too big. Amends b1640074e3630fff8d510c0f96efdfcfeedb93a1 Change-Id: Ibba6e60d4e9b2eee24e789bfd28bddffb1e782f6 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* scripts: make release with debug info defaultTim Jenssen2020-11-111-1/+1
| | | | | Change-Id: If08eeb64bfda42780f6ba9223c3394ce8daf6a6b Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Build scripts: Fix path format for cmake callsEike Ziller2020-11-101-1/+2
| | | | | | | | | | | Make sure to pass posix style paths to CMAKE_PREFIX_PATH, CMAKE_MODULE_PATH and CMAKE_INSTALL_PREFIX. Otherwise this can lead to funny "Unknown control sequence \U" kind of errors. Follow-up of fceaff1a6fba4a99d07a45ec07142898d7a0fca3 Change-Id: I1c8445f9c298a17115bca6b42f099a99e33d6de2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Consolidate some options for build.py and build_plugin.pyEike Ziller2020-10-281-3/+8
| | | | | Change-Id: Ic745231ed68296f8052e3b0897893ee8fce53b16 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CMake build: Move documentation functions to re-usable locationEike Ziller2020-05-251-0/+14
| | | | | | | | | | | Removes "install_..._docs" and "clean_docs" special targets. Instead install documentation with "--install . --component qch_docs" and "--install . --component html_docs" which have the advantage that the install prefix can be specified later on with --prefix. Also removes export of IDE_SOURCE_DIR, which is not used. Change-Id: I4fce0b9aa8c7fc40b7e94e065777ddf4c0b76c41 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* build_plugin.py: Add option to pass additional arguments to CMakeEike Ziller2020-05-051-0/+4
| | | | | Change-Id: Ifab717fdca9b8c5d4585146e552a60fc66c08d74 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add script for building external plugins for packagingEike Ziller2020-04-281-0/+130
Also turn off PCH for building Qt Creator and add some more options for local testing. Change-Id: Ic05099ef1dd8e8c78b174d7cd07a83b2f4a9cbb5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>