GSoC/GCI Archive
Google Code-in 2013 KDE

Generate and use export header for libkwineffects

completed by: Jacob Logan

mentors: Martin Gräßlin

The kwineffects library is currently using the old and deprecated KDE_EXPORT macro. An own export header for libkwineffects should be generated in CMake and used for the exports in this library. To complete this task a build environment of kde-workspace master branch is needed. This can be time consuming, ensure to have a setup before starting working on this task. Documentation on the build process is available in http://community.kde.org/Frameworks/Building - this will also build kde-workspace. For some distributions there are development packages available. For example for Kubuntu there is project neon5: https://blogs.kde.org/2013/07/31/project-neon-5-daily-builds-ubiquity-wireless-setup. With such a setup one only needs to build kde-workspace.

 

The export header can be generated in the CMakeLists.txt with

generate_export_header

 

Please see the usages in kdelibs-frameworks (e.g. tier1/kwindowsystem/src) on how to use it in the CMakeLists.txt and .h files.