7 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 3751b96808 Add explicit moc includes to sources for moc-covered headers
* speeds up incremental builds as changes to a header will not always
  need the full mocs_compilation.cpp for all the target's headers rebuild,
  while having a moc file sourced into a source file only adds minor
  extra costs, due to small own code and the used headers usually
  already covered by the source file, being for the same class/struct
* seems to not slow down clean builds, due to empty mocs_compilation.cpp
  resulting in those quickly processed, while the minor extra cost of the
  sourced moc files does not outweigh that in summary.
  Measured times actually improved by some percent points.
  (ideally CMake would just skip empty mocs_compilation.cpp & its object
  file one day)
* enables compiler to see all methods of a class in same compilation unit
  to do some sanity checks
* potentially more inlining in general, due to more in the compilation unit
* allows to keep using more forward declarations in the header, as with the
  moc code being sourced into the cpp file there definitions can be ensured
  and often are already for the needs of the normal class methods
2023-06-29 23:32:01 +00:00
Friedrich W. H. Kossebau d302b3531e Remove all deprecated API up to 5.99 2023-01-21 20:38:09 +01:00
Alexander Lohnau fa555b3c75 Run clang-format 2021-03-16 16:38:36 +00:00
Alexander Lohnau 6e74dfd3af Prevent clang-format uglification 2021-03-16 16:38:36 +00:00
Friedrich W. H. Kossebau 808bd05b37 Use ECMGenerateExportHeader to manage deprecated API better
Summary:
Allows
* projects linking to KXmlGui to hide deprecated API up to a
  given version or silence deprecation warnings after a given version,
  using
  * -DKXMLGUI_DISABLE_DEPRECATED_BEFORE_AND_AT
  * -DKXMLGUI_NO_DEPRECATED
  * -DKXMLGUI_DEPRECATED_WARNINGS_SINCE
  * -DKXMLGUI_NO_DEPRECATED_WARNINGS

  or
  * -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
  * -DKF_NO_DEPRECATED
  * -DKF_DEPRECATED_WARNINGS_SINCE
  * -DKF_NO_DEPRECATED_WARNINGS
* to build KXmlGui optionally with deprecated API excluded from
  the build, using "EXCLUDE_DEPRECATED_BEFORE_AND_AT" cmake argument.

Test Plan:
Builds with EXCLUDE_DEPRECATED_BEFORE_AND_AT set to 0, 4.1.0, 5.0.0,
CURRENT.

Reviewers: #frameworks, dfaure, mlaurent

Reviewed By: dfaure, mlaurent

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D24466
2019-10-17 17:05:25 +02:00
David Faure 0b8696343a Code reformatted using kde-dev-scripts/astyle-kdelibs.
Use git blame -w e2e8fe8 to show authorship as it was before this commit.
2013-12-18 09:54:28 +01:00
Jenkins CI e2e8fe8897 Move kxmlgui code to the root directory. 2013-12-18 00:45:19 +00:00