aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-10Add FindLibcap.cmakeNicolas Fella
We have identical copies of this in kinit, kwin, ksysguard and powerdevil. This makes it a natural candidate for inclusion in ECM.
2021-02-09Fix relative path edge case in ECMGeneratePriFileDaan De Meyer
When the qt install prefix and the qt host data path are the same, CMake's RELATIVE_PATH file path function will return the empty string. This made us accidentally set ECM_MKSPECS_INSTALL_DIR to /mkspecs/modules. Fix this by explicitly checking for the empty string. Once we can depend on CMake 3.20, we can use CMake's builtin function for joining paths instead.
2021-02-08Define relative paths when KDE_INSTALL_USE_QT_SYS_PATHS is enabledDaan De Meyer
When building multiple KDE projects, installing them to "$DESTDIR" and having cmake look for kde dependencies in "$DESTDIR" using "CMAKE_PREFIX_PATH=$DESTDIR/usr", we currently get failures when calling find_package() on projects that use KDE_INSTALL_QTPLUGINDIR, KDE_INSTALL_QTQMLDIR and KDE_INSTALL_QTQUICKIMPORTSDIR because these are defined as absolute paths when KDE_INSTALL_USE_QT_SYS_PATHS is enabled. This commit defines these paths relative to qmake's QT_INSTALL_PREFIX property instead when KDE is install to the same prefix as Qt. This fixes DESTDIR installations because with relative paths, CMake will search for these paths in "$DESTDIR" as well as "/". We limit this change to the scenario where the Qt and CMake install prefixes are the same because always doing this would break backwards compatibility as qml and plugins would be installed into CMAKE_INSTALL_PREFIX instead of QT_INSTALL_PREFIX after this change.
2021-02-05Only enable GNU_TAR_FOUND when --sort=name is availablev5.79.0-rc2v5.79.0-rc1v5.79.0Milian Wolff
The --sort=name option was only added in version 1.28 which isn't available in Centos 7 yet e.g.
2021-02-02MacOSX -> macOSCarl Schwan
2021-02-01Remove fastlane metadata generation from a given APKVolker Krause
This is no longer needed now that the metadata happens as part of the build process rather than afterwards on the signing system. This allows us to simplify the code here a bit.
2021-01-31KDEFrameworksCompilerSettings: define -DQT_NO_KEYWORDS by defaultFriedrich W. H. Kossebau
2021-01-31ECMQtDeclareLoggingCategory: fix typo in docuDavid Faure
GIT_SILENT
2021-01-30Improve documentation for KDEClangFormat moduleAlexander Lohnau
2021-01-30[KDEGitCommitHooks] Create copy of scripts in source dirAlexander Lohnau
It was reported that in case of containerized setups where the source and build are in different containers the pre-commit script would reference a file which is another container and is consequently not found. To avoid this the script is copied in the source dir and a relative path is defined.
2021-01-30Remove optional parameterAlexander Lohnau
This makes it more difficult to implement the relative paths. It would be nice to have, but if we encounter a scenario where we explicitly need this we can revisit it.
2021-01-30KDEClangFormat: Do not override custom clang-format filesAlexander Lohnau
2021-01-30Support the new Appstream file extension as wellVolker Krause
2021-01-29Define -DQT_NO_FOREACH by defaultFriedrich W. H. Kossebau
2021-01-22fetch-translations: Resolve the URL before passing it to fetchpo.rbAleix Pol
This way we pass the regex on an actual URL that we may understand. This is especially useful when url.insteadOf entries are specified in ~/.gitconfig.
2021-01-21ignore source files in CMAKE_BINARY_DIR for clang-format targetChristoph Cullmann
2021-01-20Consider Appstream donation URLs for creating F-Droid metadataVolker Krause
Those occur for example in Marble.
2021-01-20Add detailed explanation for KDEGitCommitHooks checksAlexander Lohnau
2021-01-19Revert "Add clang-format target by default in KDEFrameworkCompilerSettings"Alexander Lohnau
This reverts commit a6be96a0c84b215de7f6fb397255af252adf7fc1.
2021-01-19Add clang-format target by default in KDEFrameworkCompilerSettingsAlexander Lohnau
To prevent cmake errors with exiting usages it is checked if the target already exists.
2021-01-18add status message to each formatting stepChristoph Cullmann
2021-01-18fix issues with too long command line lengthChristoph Cullmann
2021-01-18Fix permissions for scriptsAlexander Lohnau
On Gentoo the permissions are differently set, which causes problems when running cmake. BUG: 431768 FIXED-IN: 5.79
2021-01-17ECMQtDeclareLoggingCategory: create .categories files in build, not configureFriedrich W. H. Kossebau
Ensures that the files * are re-created by build rule when accidentally deleted in the build dir * are not getting new timestamps on every cmake run, even when content has not changed
2021-01-17Comply with naming conventions for optional parametersAlexander Lohnau
2021-01-17Add missing docs reference for KDEGitCommitHooks moduleAlexander Lohnau
2021-01-16Improve alignment of argumentsAlexander Lohnau
2021-01-16Fix typoDavid Faure
GIT_SILENT
2021-01-16Add cmake function to configure git pre-commit hooksAlexander Lohnau
This will allow us to force QS checks before the developer commits a change. Currently only clang-format is supported, but as on #plasma and https://phabricator.kde.org/T11214 discussed we might want to add different formatters. By making the checks configurable we are flexible and can easily extend it.
2021-01-09GIT_SILENT Upgrade ECM version to 5.79.0.l10n daemon script
2021-01-05fix tar argumentsJuerg Marti
2021-01-03ECMAddQCH: remove unused (and obsolete) COLS_IN_ALPHA_INDEX from configFriedrich W. H. Kossebau
COLS_IN_ALPHA_INDEX got obsolete in doxygen 1.9.0, besides not being used anyway due to ALPHABETICAL_INDEX being set to NO. Also remove IGNORE_PREFIX, unused as well due to ALPHABETICAL_INDEX=NO NO_CHANGELOG
2021-01-02Tell MSVC that our source files are UTF-8 encodedv5.78.0-rc1v5.78.0Volker Krause
For GCC/Clang that is the default, but not for MSVC. This can cause both compile-time and runtime errors when encountering string literals that contain more than just 7bit ASCII. Some of our modules set this already, others use various other workarounds to avoid Utf-8 literals, so better do this consistently and centrally. Qt6 will also set this by default. This is actually Hannah's finding from debugging issues caused by this in kitinerary, I'm just submitting the patch.
2021-01-01[clang-format] Break before non-assignment operatorsAlexander Lohnau
2020-12-31[clang-format] Set max column limit to 160Alexander Lohnau
Before this value was 240, which can result in excessively long lines.
2020-12-31Add Findepoxy.cmakeVlad Zahorodnii
It is based on the one that can be found in KWin. Several KDE projects already use libepoxy (KWin and KDeclarative).
2020-12-28Consider local fastlane image assetsVolker Krause
This adds support for image assets not represented in the appstream data, such as the banner image for the F-Droid app, and it allows to override appstream screenshots by local ones. The latter is e.g. used by KTrip which provides Android-specific screenshots that way.
2020-12-27Merge branch 'work/hefee/reproducable'Sandro Knauß
2020-12-27Reproducible tarballs with GNU tar onlyAdriaan de Groot
- Search for a suitable `tar` program - Check version output if it's GNU tar Since this function is typically run only once per repo, there's not much point in doing extra cache work or writing a separate find-module.
2020-12-24Preserve the rich-text subset supported by F-DroidVolker Krause
This should improve the alignment issues currently seen in bullet point lists that we use frequently in the description text.
2020-12-20bump required cmake version for Android.cmakeJohnny Jazeix
BUG: 424392
2020-12-19Automatically detect plugin lib deps on AndroidGabriel Souza Franco
This makes use of the CMake 3.19 DEFER command to list all MODULE targets after processing the toplevel CMakeLists. This allows us to collect required dependencies of all plugins without changes to the application. For example, this will fix Okular not including Poppler because it is only linked from the plugin, thus not being able to actually read PDFs.
2020-12-14API dox: note that KDEInstallDirs sets CMAKE_INSTALL_PREFIX if still defaultFriedrich W. H. Kossebau
NO_CHANGELOG
2020-12-13Fix errors in python code, found by pylama in a strict CIDavid Faure
2020-12-12GIT_SILENT Upgrade ECM version to 5.78.0.l10n daemon script
2020-12-10Check if file exists before removing the fastlane archiveVolker Krause
Locally unlink() seems to work just fine on non-existent files, but on binary factory that seems to be different for some reason.
2020-12-10Clean image folder and archive file before downloading/generating thoseVolker Krause
This matters when reusing output folders (as binary factory does for example), as we then retain outdated screenshots and just keep adding files to an already existing fastlane archive.
2020-12-08Retain screenshot order from the appstream fileVolker Krause
Also, check for the HTTP status code, so we don't end up with 404 error messages in image files here.
2020-12-07GIT_SILENT remove debugging for Windows CIDavid Faure
2020-12-07Another attempt to fix QT_PLUGIN_PATH for tests on WindowsDavid Faure