Review Request: Patch to build only kdecore

Gregory Schlomoff gregory.schlomoff at
Mon Feb 21 10:15:23 GMT 2011

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 21, 2011, 10:15 a.m.)

Review request for kdelibs and KDEPIM-Libraries.


Renamed the build option from KIMAP_STANDALONE to KDE4_ONLY_KDECORE, as suggested



As some of you may know, we are using KIMAP and KMime as stand-alone libraries for BetterInbox, our cross-platform email client.

Since our primary targets are Windows and Mac OS X platforms, it would be quite costly to try to build and ship the whole kdelibs + kdepimlibs + dependencies in order to use just kimap and kmime. So we made a few patches to KDE's build scripts that enable to build only kdecore + kimap + kmime. The only third-party dependencies on Windows are kdewin, boost, cyrus-sasl, and zlib.

Basically, we just declare a new build option called KIMAP_STANDALONE, that will skip the compilation of everything that is not needed. We are sharing the patches to kdelibs in this review request. See for the patches to kdepimlibs.

Please note that the goal here is *NOT* to ask for the inclusion of those patches into KDE's source code, but rather to show the community how we did it, and maybe to foster some discussion around the idea of modularizing kdelibs and kdepimlibs a bit more, so that this kind of hack wouldn't be needed.

Any ideas / comments appreciated.


Greg Schlomoff
Founder, BetterInbox

Diffs (updated)

  CMakeLists.txt 87631d1 
  cmake/modules/FindKDE4Internal.cmake d4e5780 
  kdecore/CMakeLists.txt f78c115 
  kdecore/localization/kcatalog.cpp 1f01688 
  kdecore/tests/CMakeLists.txt 9703c7d 



Works flawlessly on Windows, Mac OS, and Ubuntu



KDE PIM mailing list kde-pim at
KDE PIM home page at

More information about the kde-core-devel mailing list