aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-29ecm_gperf_generate(): add option for target arg to add the gen. source toFriedrich W. H. Kossebau
2021-05-29ecm_qt_declare_logging_category: catch alias targets before failing internallyFriedrich W. H. Kossebau
target_sources() as used internally does not take alias targets.
2021-05-27Provide fallback error when no .clang-format file is presentAndreas Cord-Landwehr
This check fixes a probably rare case, where we land in a repository that contains this clang-format.sh hook but where the format file went missing. In such cases, clang-format falls back to the system defaults, which brings undesired defaults, e.g. enforced line breaks in comments after 90 chars, which cannot easily be reverted by a reformat. Since clang-format's --fallback-style=none option is not available for git clang-format, this comment reimplements the logic.
2021-05-26Enable buildling docs for FindLibMountAhmad Samir
Thanks to kossebau for pointing that out. NO_CHANGELOG
2021-05-25Add module to find libmountAhmad Samir
There is a chance it's going to be used in Solid, and possibly KIO. Other exiting modules were used as templates while writing this.
2021-05-25Drop FindFontConfig.cmakeChristophe Giboudeaux
CMake 3.14 ships a module with compatible variables.
2021-05-25Clean ECM files after the minimum version changeChristophe Giboudeaux
- Remove deprecated version checks - Use VERSION_GREATER_EQUAL
2021-05-23Make sure that dir path exists before attempting to copy fileBart De Vries
2021-05-23Attempt to find the Play store icon if it's not explicitly setVolker Krause
This relies on the apparently predominant naming pattern for those files, those of our apps not using this often do not seem to have an appropriate file (512x512 png) to begin with. Explicit override is also possible, by the already existing mechanism of putting a file with the right name into the fastlane/ source directory. Having the icon included here will allow it to be automatically synced to the Play store.
2021-05-21Add address sanitizer for MSVCFelix Weilbach
2021-05-21ecm_create_qm_loader: support target as alternative argumentFriedrich W. H. Kossebau
2021-05-18appstreamtest: Check if file exists before testing itAlexander Lohnau
In case one has uninstalled the project, but has made local changes that should be tested the test would fail. Instead check if the files exist before adding them to the list of files that will be tested.
2021-05-17Don't pass through list rich text elements, Google Play can't handle thoseVolker Krause
Instead, restore their plain text fallback output that we used to have already prior to enabling rich text support.
2021-05-17Fix doc build with Sphinx 4Antonio Rojas
2021-05-17Use pkg_check_modules in FindTaglib.cmakeChristophe Giboudeaux
pkg_search_module() is only useful when the pkgconfig file may have different names.
2021-05-17Find PkgConfig quietlyChristophe Giboudeaux
2021-05-16Bump required CMake version to 3.16Ahmad Samir
KF6 task: https://phabricator.kde.org/T14467
2021-05-16Handle text-less tagsVolker Krause
Contrary to the comment those exist (e.g. ul, ol), this just wasn't noticed as due to the script-enforced formatting those always contain some spaces. This resulted in different structures between English and translated description texts. With this change all language variants show the same structure.
2021-05-15ECMAddAppIcon: support target as argumentFriedrich W. H. Kossebau
2021-05-15Fall back to English for missing translated elementsVolker Krause
We have to handle both entirely missing top-level elements and arbitrarily incomplete sub-elements in the description body. Until now we were just kept those gaps, resulting in missing titles or incomplete descriptions. F-Droid didn't complain about that, but Google Play does. This fixes e.g. Itinerary's metadata for de and ru.
2021-05-10ECMSetupVersion: phase out deprecated *_VERSION_STRING CMake variablesFriedrich W. H. Kossebau
2021-05-08GIT_SILENT Upgrade ECM version to 5.83.0.l10n daemon script
2021-05-07Extend Android language mappings for translated metadataVolker Krause
This is likely still not complete, but with this at least most of Itinerary's metadata translations are accepted during upload to the Google Play store (the remaining ones are rejected for different reasons). F-Droid seems considerably less picky about this, and works with either form.
2021-05-07Order macro for attribute for symbol export before that for deprecatedFriedrich W. H. Kossebau
The symbol export/visibility attribute is not standardized so far and needs to be set by language extension attribute declaration at least with clang & MSVC, who both support that when it appears before the standard attribute declaration. NO_CHANGELOG
2021-04-28ECMGenerateExportHeaderTest: try to fix tests for MSVCv5.82.0-rc1v5.82.0Friedrich W. H. Kossebau
NO_CHANGELOG
2021-04-25ECMGenerateExportHeader: unbreak builds by not mixing std & legacy attributesFriedrich W. H. Kossebau
NO_CHANGELOG BUG: 436155
2021-04-25ECMGenerateExportHeader: handle being included in C modeFriedrich W. H. Kossebau
NO_CHANGELOG
2021-04-25ECMGenerateExportHeader: check for non-vendor-specific deprecated attrFriedrich W. H. Kossebau
We want to know here if the standard attribute is available NO_CHANGELOG
2021-04-24Fix since version numbers for previous enumerator deprecation commitFriedrich W. H. Kossebau
NO_CHANGELOG
2021-04-24ECMGenerateExportHeader: add macros for enumerator deprecation warningFriedrich W. H. Kossebau
2021-04-23Modules docs: move rst docs into bracket commentsFriedrich W. H. Kossebau
CMake >= 3.0 supports bracket comments, and the reStructuredText integration code in sphinx/ext/ecm.py already supports extracting the docs from a bracket comment instead. Editing documentation without leading line comment markers is more simple, e,g. when reflowing text over lines. With ECM meanwhile requiring CMake 3.5 now it is possible to switch (and thus follow also the approach used by cmake itself). NO_CHANGELOG
2021-04-20clang-format: Add links to clang-format docs and coding style wikiAlexander Lohnau
2021-04-17Add link to clang-format options documentationAhmad Samir
2021-04-16clang-format: Disable formatting for JS filesAlexander Lohnau
2021-04-14Fix static Windows builds by not setting /NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrtHannah von Reth
If we tell the compiler to link the runtime statically and then explicitly link the dynamic runtime and prohibit the static we continue to produce dynamic builds...
2021-04-10Fix installation of qm files from po files in the build directoryVolker Krause
That's the case when using KDE_L10N_AUTO_TRANSLATIONS, and the code handles this case above when looking for the right po location already, but that result was accidentally discarded here.
2021-04-10GIT_SILENT Upgrade ECM version to 5.82.0.l10n daemon script
2021-04-07Document the advanced APK packaging optionsVolker Krause
2021-04-07Add a way to pass additional arguments to androiddeployqtVolker Krause
We need this to pass the --release option for binary factory release builds. An alternative approach would be to set that here automatically depending on the CMake build type. Since that however ends up producing unsigned and thus not immediately usable APKs (or would need a whole set of extra arguments for proper signing) I'm not sure whether that's most convenient for local use.
2021-04-06Clean ECM's atticChristophe Giboudeaux
2021-03-31ECMGenerateExportHeader: do sanity check for version argument valuesv5.81.0-rc2v5.81.0-rc1v5.81.0Friedrich W. H. Kossebau
To prevent accidental use of the C++-side hex number-style version variants on the cmake side where human-readable style is used instead (which can happen due to the similar names of the cmake variables/arguments and C++ macros which screws up developers' brain) we better do some proper input checks also on the arguments EXCLUDE_DEPRECATED_BEFORE_AND_AT and DEPRECATED_BASE_VERSION
2021-03-25Fix warning about wayland-scanner code argVlad Zahorodnii
The code argument has been deprecated in favor of public-code and private-code options. In general, it is highly advised to use the private-code option, but we cannot do it because it will break the ABI.
2021-03-20GIT_SILENT Update .gitignoreAlexander Lohnau
2021-03-15GIT_SILENT Upgrade ECM version to 5.81.0.l10n daemon script
2021-02-26Fix ECMCheckOutboundLicenseTest to find the FindReuseTool.cmake filev5.80.0-rc1v5.80.0Friedrich W. H. Kossebau
2021-02-22ecm_qt_declare_logging_category: support target arg to append source file toFriedrich W. H. Kossebau
2021-02-20Add FindIsoCodes moduleVolker Krause
This is a slightly modernized version of Pino's original implementation found in KF5 and Plasma.
2021-02-16clang-format: set AlwaysBreakTemplateDeclarations to trueAhmad Samir
This matches most of the existing code in KDE; also note that Qt has the same setting (also stating in a comment in their _clang-format that this matching their existing code).
2021-02-13GIT_SILENT Upgrade ECM version to 5.80.0.l10n daemon script
2021-02-10Add clang-format target by default in KDEFrameworkCompilerSettingsAlexander Lohnau
To prevent cmake errors with exiting usages it is checked if the target already exists.