aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-06Windows: more double-quotes because of ';' in strings; debugging.David Faure
GIT_SILENT
2020-12-06Windows: fix QT_PLUGIN_PATH for tests by adding double-quotesDavid Faure
Otherwise the string (with ';' in it) is parsed as a list by cmake.
2020-12-06Attempt to fix kdav & purpose autotests on Windows CIDavid Faure
2020-12-05Don't fail if we haven't found any categoriesVolker Krause
This should fix the Okular build failure on binary factory.
2020-12-04clang-format: No space before initializer listv5.77.0-rc1v5.77.0Alexander Lohnau
2020-12-04Fix category extraction from desktop filesVolker Krause
This broke the builds for apps not having categories in their appstream files.
2020-12-01Define install dir variable for file templatesAlexander Lohnau
Just like the app templates the file templates have a specific install location. Also the KTEMPLATESDIR is only used as a fallback, because it suggests that all templates are in that dir, which is not true.
2020-12-01Add fastlane metadata generation for Android buildsVolker Krause
This is currently done on the signing machines as part of the F-Droid nightly pipeline, but should rather happen as part of the build process in the future. Compared to the binary factory script this has a few extensions already: - Besides recovering information from APKs we can now consume appdata files directly, or scan the entire source dir. - Screenshots from appdata files are downloaded. - The 'x-test' language is ignored. - Donation and translation information are added. - Add links to the source code repository, if we can determine that. The result is put into a single archive per APK, so we can easily transfer that to the signing machine via Jenkins alongside the APK.
2020-11-18(Qt)WaylandScanner: Properly mark files as SKIP_AUTOMOCAleix Pol
Have the C counterpart take care of the C files and the C++ for the C++ files. Don't forget to skip the server C implementation.
2020-11-16Fix updating of apptemplate tarsAlexander Lohnau
With this MR cmake gets rerun when the dirs/subdirs of the template change. And by setting the `DEPENDS` property of the tar command to this list of the dirs/subdirs of the template we ensure that the command gets executed whenever the files change.
2020-11-16GIT_SILENT Upgrade ECM version to 5.77.0.l10n daemon script
2020-11-02Make KDEPackageAppTemplates to create reproducible tarball.Scarlett Clark
By default tar glues files in a random order together, this makes the output non reproducible. In order to fix, produce a sorted output and uniquify user/group and chmod.
2020-11-01Make androiddeployqt find libraries and QML plugins without installationv5.76.0-rc1v5.76.0Volker Krause
This matters for libraries in the same repository as the application that also have an AAR that needs to be integrated, as well as QML plugins. For this to work we need to consider the build directory as a search prefix, and produce the exact directory layout there that androiddeployqt expects. For libraries this is then almost transparent for the application build system, the only thing that needs to be taken care of manually is putting the corresponding -android-dependencies.xml file into the right place in the build dir as well. A macro wrapping that might be an option to centralize that logic here as well in the future. For QML plugins this is transparent if you have them set up to work without installation already anyway, otherwise that setup has to be done for this to work. Example: https://invent.kde.org/pim/itinerary/-/merge_requests/28 https://invent.kde.org/frameworks/knotifications/-/merge_requests/12 would presumably also need this (not tested yet).
2020-10-31find-modules/FindReuseTool.cmake - Fix finding reuse toolAllen Winter
I had reuse installed but it wasn't being found. Now it is.
2020-10-23improve default formatting optionsChristoph Cullmann
1) remove AlignTrailingComments: true => this avoids multiline comment changes if e.g. one longer member/variable is added with comments behind it 2) add AllowShortLambdasOnASingleLine: Empty => avoid the uglification of lambdas
2020-10-21Include option to use LLVM for users with Qt < 5.14Sharaf Zaman
When NDK r20+ is used along with Qt5.12, APK generation fails because of the layout change in newer NDK. This patch introduces a new variable USE_LLVM, when this is set for older Qt versions, androiddeployqt uses LLVM's tools.
2020-10-14add missing minimum version for RENAME parameterHenri Chain
2020-10-14Enable documentation generation for FindGradleVolker Krause
2020-10-13Document when FindGradle has been addedVolker Krause
2020-10-12Add FindGradle from KNotificationVolker Krause
Besides finding Gradle from QtAndroidExtras and thus avoiding the usual way of the Android world of distributing that (a copy in your source code), it provides macros to generate and install Android AARs. Those are needed for libraries that have a non-trivial Java component on Android, e.g. needing a manifest fragment or having a dependency on other Java libs. This file has been copied to a few places meanwhile, so centralizing this in ECM makes sense.
2020-10-10GIT_SILENT Upgrade ECM version to 5.76.0.l10n daemon script
2020-10-01fix fetch-translations for invent urlsv5.75.0-rc1v5.75.0Harald Sitter
regex gets slightly adjusted to only run on kde.org urls, the actual repo name may now contain slash as well since a) basenames aren't necessarily unique anymore b) by extension we need to give fetchpo an actually unique repo path so it can resolve the underlying project and its translations
2020-09-26Include FeatureSummary and find modulesAndreas Cord-Landwehr
Required for module test to pass.
2020-09-26Fix windows ci tests because of differences in ecm logic on windows.Jeremy Whiting
According to https://api.kde.org/ecm/module/ECMGenerateDBusServiceFile.html the macro being tested works differently on windows. The path to the binary executable is removed on windows.
2020-09-26Introduce plausibility check for outbound licenesAndreas Cord-Landwehr
When creating a library or executable, several source files are combined into a binary artifact that has an outbound license of its own. This test generator allows to check if the combined source files are compatible with the desired outbound license. Requirements for using these tests: - input source files must contain the SPDX-License-Information tag - python3 must be available - the "reuse spdx" tool must be available
2020-09-24Release CheckAtomic.cmake with 5.75.0Sandro Knauß
2020-09-24Update CheckAtomic.cmake from llvm.Sandro Knauß
As CheckAtomic.cmake is a copy and we need to keep sync. a348de480d34257ffe394ab51b880c9aef243d80 Date: 04/18/2020 repo: https://github.com/llvm/llvm-project file: /llvm/cmake/modules/CheckAtomic.cmake
2020-09-24Add CheckAtomic.cmakeSandro Knauß
Application need to test, if they need to build against atomic libray. In order to not duplicate the code over and over again, let's have one version in ecm.
2020-09-20Fix configuring with pthread on Android 32 bitGabriel Souza Franco
2020-09-18add RENAME parameter to ecm_generate_dbus_service_fileHenri Chain
2020-09-16Fix find_library on Android with NDK < 22Gabriel Souza Franco
2020-09-16Explicitly sort Android version listsGabriel Souza Franco
Also document --android-platform parameter
2020-09-16Store Android {min,target,compile}Sdk in variablesGabriel Souza Franco
Also pass along these values to androiddeployqt
2020-09-14Correct a typo in FindKF5.cmakeFelix Yan
2020-09-12GIT_SILENT Upgrade ECM version to 5.75.0.l10n daemon script
2020-08-30Strip leading zeros from numerical version numbers in C++ codev5.74.0-rc1v5.74.0Volker Krause
Our August releases produce invalid octal numbers ("08") otherwise.
2020-08-29Add timeout for qmlplugindump callsNicolas Fella
qmlplugindump sometimes hangs forever and thus blocks a build. Setting an (arguably arbitrary) timeout works around that.
2020-08-27Add WaylandProtocols find moduleVlad Zahorodnii
An intended use case is to generate client-side and server-side code for protocols shipped in the wayland-protocols package with qtwaylandscanner.
2020-08-08GIT_SILENT Upgrade ECM version to 5.74.0.l10n daemon script
2020-08-07invoke update-mime-database with -nHarald Sitter
it only updates the database iff there's new files and is specifically meant for post-install invocation. since cmake only installs files when they actually changed this effectively turns repeated cmake --install calls noop as far as database updates are concerned this stops all sources with mimetype definitions from rebuilding the mime database on every install even when nothing changed. it saves literal seconds every install call -n was introduced in 1.4 which is like 6 years old and there are no pratcically relevant distribution versions around with older versions
2020-07-12GIT_SILENT Upgrade ECM version to 5.73.0.v5.73.0-rc1v5.73.0l10n daemon script
2020-07-10Fix inline literal formattingivan tkachenko
2020-07-10Fix reST list from not being a listivan tkachenko
2020-07-10Revert "Fix markdown list from not being a list"ivan tkachenko
This reverts commit 3830dde78f9bde7ebe01fddca49d5806d4e52bea.
2020-07-10fix license headersHenri Chain
2020-07-10Add ecm_generate_dbus_service_fileHenri Chain
Summary: It serves as a replacement for `kdbusaddons_generate_dbus_service_file`. An application can be a DBus-activated service just fine without using KDBusAddons. Moreover, this new module uses named arguments for future-proofing, and adds support for specifying a `SystemdService`. It also cleans up the confusion on what the "path" is about: Rather than requiring to specify executable and path separately, we just extract the executable file name on Windows, if necessary. Usage: ``` ecm_generate_dbus_service_file(NAME org.kde.kded5 EXECUTABLE ${KDE_INSTALL_FULL_BINDIR}/kded5 SYSTEMD_SERVICE plasma-kded) ``` Test Plan: * Was able to generate a kded service file * Was able to generate a kded service file with `SystemdUnit` * Verified that it moaned when executable wasn't an absolute path * Untested on Windwos Reviewers: #frameworks, davidedmundson, kossebau, kfunk, habacker Subscribers: kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D29051
2020-07-10Introduce function ecm_install_configured_fileDavid Edmundson
Summary: This, as the name suggests, configures a file and installs it. It's not very complicated but it's a repeated pattern in plasma that gets quite messy dealing with temporary files. Test Plan: Used in a project Reviewers: #build_system Subscribers: apol, kossebau, pino, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D28355
2020-07-06Export Wayland_DATADIRDavid Edmundson
This is useful if a library intends to reparse the original wayland.xml file instead of using the pregenerated headers.
2020-07-01Fix Sphinx warning about cmake code blockv5.72.0-rc1v5.72.0ivan tkachenko
Lexer for CMake could not parse this broken grammar, because it is ".cmake.in", not just ".cmake". CMake itself solves this problems by declaring such code blocks as generic "::" blocks instead. For example, take a look at the last code block at CMakePackageConfigHelpers help page: - https://cmake.org/cmake/help/v3.18/module/CMakePackageConfigHelpers.html#example-generating-package-files - https://github.com/Kitware/CMake/blob/0464298956a204578aa8421ca0b84c089a97e0aa/Modules/CMakePackageConfigHelpers.cmake#L208
2020-06-30Use more https in links (and update outdated urls)Friedrich W. H. Kossebau
GIT_SILENT