aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
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