Skip to content

Install Client headers in a dirs hierarchy matching the C++ namespaces

Ahmad Samir requested to merge work/ahmad/include-dirs into master

Headers should be in /include/KF*/ModuleName/NameSpace, so KF*/KWayland/KWayland/Client ...etc.

This is so that "#include <KWayland/Client/foo.h>" continues to work with KF6. Thanks to Volker for explaining that to me :)

This auto-magically worked with KF5 because /include/KF*/ was always added to the targets interface include dirs by ECM (for compatibility with KDE4?).

See: https://mail.kde.org/pipermail/kde-frameworks-devel/2022-January/120608.html

Note the Server part wasn't changed by this commit because it's deprecated as it was moved to Plasma to accommodate the KWin release cycle.

Edited by Ahmad Samir

Merge request reports

Loading