aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* deployqt: Support elfutils from Linux distributionEike Ziller2023-04-201-3/+10
| | | | | | | | | | | Which can be in a more complicated directory than just /usr/lib, like /usr/lib/aarch64-linux-gnu . So, recursively look for the elf library to determine the right directory. Change-Id: I58ed8a045fbde50dea8851f63409a5a0863c3b16 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Build: Optionally sign on WindowsEike Ziller2023-04-112-0/+18
| | | | | | | | | | | 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>
* Merge remote-tracking branch 'origin/9.0' into 10.0Eike Ziller2023-02-141-1/+1
|\ | | | | | | Change-Id: Ib01e191652168b2c38e80678f2f804bb95143cc5
| * Let Debian packages install to /opt/qt-creatorEike Ziller2023-02-141-1/+1
| | | | | | | | | | | | | | | | | | instead of /opt directly. Seems to be more conventional Change-Id: I6d3b0b973684b6f72c096eeb4f2b572012f30351 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Replace GPL-3.0 with GPL-3.0-onlyKai Köhne2023-01-1028-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Merge remote-tracking branch 'origin/9.0'Eike Ziller2022-12-203-2/+30
|\| | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/texteditor/texteditor.cpp Change-Id: I9c8f1331be3f5442f1fd28aeb0a9bc07128629d1
| * Deploying Qt: Clean up .cpp.o(bj) files when deploying QtEike Ziller2022-12-202-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These files are required when building against some static libraries that Qt ships. Since we don't link against these libraries, we used to remove them when we install Qt, but starting with Qt 6.5 some of these files are required by the Qt CMake files, and configuration would fail. So, we now have to remove them when deploying Qt, instead of already when installing Qt. Change-Id: Ie38ab3735b86df0372b946d6a808007b5ec84b88 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@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>
* | ClangFormat: Make clang format checks widget resizableArtem Sokolovskii2022-12-161-2/+2
| | | | | | | | | | | | | | | | | | - Change Form to Grid that looks consistent for different OS Change-Id: Ibb5fc3564d8c25457c4bf520acf78b25c542b5ae Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge remote-tracking branch 'origin/qds/dev'Tim Jenssen2022-12-141-1/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/qmldesigner/components/assetslibrary/assetslibrarymodel.cpp src/plugins/qmldesigner/components/contentlibrary/contentlibrarytexturesmodel.cpp Change-Id: Ieda6242b845387100022b08251283891fb0fbda7
| * | deployqtHelper_mac.sh: make sdktool optionalTim Jenssen2022-11-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silents the warning about not existing sdktool in QtDesignStudio build. Change-Id: Ia8e3f341936f4b20d340f9c66a5da3d01f14bccf Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Burak Hancerli <burak.hancerli@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | ClangFormat: Remove without margins layouting from scriptArtem Sokolovskii2022-12-071-1/+1
| | | | | | | | | | | | | | | Change-Id: Iddf69e73ca5df48541e83030b2a09e7833f9fa64 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | | ClangFormat: Create new generateclangformatchecks fileArtem Sokolovskii2022-12-072-190/+231
|/ / | | | | | | | | | | | | | | | | | | - new generateclangformatcheckslayout file generates two clangformatchecks files .cpp and .h, which contain UI Layout based on utils/layoutbuilder Change-Id: I4a83e542f089618d0cbd552dc99485b9428b4106 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* / qml2puppet: fix broken deployqtHelper_mac.shTim Jenssen2022-11-161-11/+5
|/ | | | | | | | | | | | The extra subdirectory "qmldesigner" was removed in cmake build scripts by last refactoring. For other ui helper tools in libexec is already a working qt.conf which can be reused. Task-number: QDS-8308 Change-Id: I7e98d0187cf2748298da263e55a64918cbb6b2c0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ClangFormat: Remove deprecated entries in clangformatconfigwidgetArtem Sokolovskii2022-10-191-0/+4
| | | | | | Task-number: QTCREATORBUG-28263 Change-Id: I48b0456f3c7bea88905cea40d1e447655da64676 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* build.py/CPack: Install to /opt from .deb packagesEike Ziller2022-10-131-0/+2
| | | | | | | | | Default is /usr/local, and that is also the default when installing self-built versions, so avoid a conflict. Change-Id: I92879baa4afd1b90b7de6addfbcd7ec361b396cc Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* build.py: Add option to call cpackEike Ziller2022-10-071-2/+25
| | | | | | | | | | | | Adds --with-cpack option. - macOS: does nothing (we already create a better, signed disk image) - Linux: creates qtcreator.deb in build directory - Windows: Checks for NSIS and WIX installation, creates qtcreator.exe and qtcreator.msi as appropriate Change-Id: Ie7816d04cb2e01e90795481e1519b0a6645f5cd3 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Improve scripts/scrubts.pyAlessandro Portale2022-09-271-11/+40
| | | | | | | | List the same duplicates that lrelease shows. But better: all occurrences with full filename:linenumber. Change-Id: If0cf38183dbdb4118f2152e1ae86ec92bf0ae1cc Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* scripts: Remove clangbackend from deployqtHelper_mac.shCristian Adam2022-09-261-3/+1
| | | | | | | | | | | | Since we moved to clangd the file doesn't exist anymore. When creating the dmg packaging the process would print multiple errors pointing to the fact that the clangbackend file doesn't exist. Change-Id: I172cfa43e67ec4aa9e5e2f8b703e024b803c78a1 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* scripts: Fix line number output in scrubts.pyAlessandro Portale2022-09-091-2/+7
| | | | | Change-Id: I9e67ba1fe81264d6f0fde42021489c696574065f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* scripts: Improve scrubts.pyAlessandro Portale2022-09-091-12/+76
| | | | | | | | | Output statistics on removed duplicate messages and merged contexts. List remaining duplicate messages with identical source but different translation. Change-Id: If06f5cfc898c6261863cc53a3c464efead1d9890 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* scripts: Add scrubts.py for .ts file cleanupAlessandro Portale2022-09-021-0/+95
| | | | | | | | | | | | | | | Rewrites a .ts file, removing duplicate messages of a specified translation context and joining adjacent occurrences of that context. Unlike lrelease and lconvert, this script does an exact comparison of the whole <message/> xml tag. Use on all .ts files: for tsfile in share/qtcreator/translations/qtcreator_*.ts; do python scripts/scrubts.py $tsfile -context FooBar; done Change-Id: I2dea5a0b00e35031718e654b289d6ad39dbaac2a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Scripts: Fix permissionsChristian Stenger2022-08-2926-0/+0
| | | | | | | Broke with a7956df3ca45. Change-Id: I072ea34183aedf2fd693af1bb589660aa06b9e1c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-2628-655/+30
| | | | | | | | | 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>
* ClangFormat: Update generateClangFormatChecksUI scriptArtem Sokolovskii2022-07-291-170/+87
| | | | | | | | | | Now relay on clang/Format.h file not on ClangFormatStyleOptions.rst. The information from Format.h is more complete, reliable and easy parsable. Change-Id: I96899257f5fd075bfd6e51c5a4fa70a614c32398 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* scripts: Deploy clang-format toolCristian Adam2022-06-272-2/+4
| | | | | | | | | | The beautifier plugin can use the clang-format tool, which is statically build, and it's around 2-6 MB in size. Fixes: QTCREATORBUG-25600 Change-Id: I900f0dbfc2ba2773d3ad986c149adb41a4103e94 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* scripts: remove deployment of libclang-cppCristian Adam2022-06-222-3/+2
| | | | | | | | | | All the clang binaries that we ship (clangd, clang-tidy, clazy-standalone) are compiled statically and libclang-cpp is not needed anymore. Change-Id: I486fc0d1a55a18916c0abf56ec6a966321ef2b46 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* scripts: Do not deploly clang and clang-cl executablesCristian Adam2022-06-172-8/+2
| | | | | | | | | | | | | They were used in debugging of the libclang code model, and having only the compiler is not very useful. Users can install complete LLVM toolchains from llvm.org Change-Id: If19a0b75c8505ba7589b377292bd96f855e91c00 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Scripts: Do not deploy libclang anymoreCristian Adam2022-05-252-13/+6
| | | | | | | | Since libclang is no longer needed, we don't need to deploy the library anymore. Change-Id: Ia7bdb7e089ec95b8252efbfa1c607d03082a99e6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move build scripts to Python3Eike Ziller2022-04-204-4/+4
| | | | | | | | | 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>
* Remove some unused scriptsEike Ziller2022-04-204-366/+0
| | | | | | | | These are no longer used, and instead solved via CMake or part of build(_plugin).py Change-Id: I86a829713fe32b9ff1386fc0bdfd23a88e3e00c4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* macOS: Do not deploy some plugins and their dependenciesEike Ziller2022-04-081-0/+16
| | | | | | | | | | | | | | macdeployqt deploys all plugins of a kind, like all tls or sql backends. We only want the securetransport and sqlite ones from these, and since Qt 6.3 now also builds the openssl backend, and the postgres backend has a dependency on openssl that gets shipped, we end up with issues (openssl backend being loaded which finds and loads openssl from postgres). So clean these things up after macdeployqt. Change-Id: Iccbe4c422a4cce3fd4da0af5f6e2595f85848ece Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* macOS: Remove workarounds for Qt 6.2 betasEike Ziller2022-04-081-35/+0
| | | | | | | | QTBUG-94796 is fixed, and macdeployqt copies all the plugins again. Change-Id: I1f8201483e9cf4986eea0732d75d545425d3b5d6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* macOS: Fix 'disclaim' in packages not passing on DYLD_... variablesEike Ziller2022-03-111-9/+20
| | | | | | | | | | Signed executables with hardened runtime need the entitlement com.apple.security.cs.allow-dyld-environment-variables to be able to pass on the DYLD_... variables to subprocesses. Fixes: QTCREATORBUG-27175 Change-Id: Ibc203487be4d7111fc60b05749cae4e3ad750b3d Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Scripts: Fix uichanges scriptChristian Stenger2022-02-241-0/+1
| | | | | | | Amends 394bfb508f11f. Change-Id: I6e933f8bc18298b81b99a716e734d84fbd2b7528 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Linux: (Optionally) Enforce XCB backend if QT_QPA_PLATFORM is not setEike Ziller2022-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | Especially on older distributions, Qt/Wayland works worse than Qt/ XCB(XWayland). On Ubuntu 20.04, starting Qt Creator with Wayland can even crash the Wayland session (https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1958684/). We still want to ship the plugins, and allow forcing the usage of Wayland, since on the other hand Wayland works better in HiDPI environments for newer distributions. Behavior is enabled when configuring with -DQTC_FORCE_XCB=ON Task-number: QTCREATORBUG-26867 Change-Id: I623f001412f809381208b6cb3ec5b3fcfdb86011 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
* Fix finding python development package for cdb extensionEike Ziller2022-02-091-6/+2
| | | | | | | | | | | Amends e9f3f8cc641a773078ca17c5110587d5c3b717f7 We switched to find_package(Python3 ...) and that doesn't use PYTHON_LIBRARY and PYTHON_INCLUDE_DIR. Simply provide the root path for find_package(Python3 ...). Change-Id: If862151c095af358be5f35d3d8002d77dcd17aa6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Scripts: Fix output for python 3Christian Stenger2022-02-041-3/+12
| | | | | Change-Id: Ie914e04b25bdd4e41a9d2b3a9002385f5867ad6b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Scripts: Make uichanges script work with Python 3Christian Stenger2022-01-171-1/+1
| | | | | | Change-Id: Ieb5abc4845098b62afa37a3e0e0fdf88326da2ab Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/6.0'Eike Ziller2022-01-122-9/+23
|\ | | | | | | Change-Id: I642abb110bb120e20af11a5d55244c03e6c48caa
| * Build.py/macOS: Add a signed bundleEike Ziller2022-01-101-8/+22
| | | | | | | | | | | | | | | | | | | | If a signing identity is given, create a signed install, and zip it up (if zip files are wanted). Can be used to directly add a signed app to an installer. Change-Id: Ib575d7c907eea74c247407107884f29a526d5d1c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * macOS/deployHelper: Accept if clazy-standalone already has right rpathEike Ziller2022-01-101-1/+1
| | | | | | | | | | | | | | | | | | Adding an already existing rpath is an error for install_name_tool. Not completely failing in that case makes local testing easier. Change-Id: I22d94225af2375af4e397212b2a7500315f25882 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | 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-091-0/+4
|\| | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri Change-Id: I32991a77e52831dd2e24cf4a51ec252998c2d743
| * Do not link packages against libGLX and libOpenGLEike Ziller2021-12-061-0/+4
| | | | | | | | | | | | | | | | | | Work around QTBUG-89754 Fixes: QTCREATORBUG-26652 Change-Id: I9fb7ba2127a93460184154a9eb2d4c053f8fc22d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-12-011-1/+2
|\| | | | | | | Change-Id: I71b19dd8ecd96a7a2a58622f68283b8635264e48