[Digikam-devel] Extra repository build

Gilles Caulier caulier.gilles at gmail.com
Tue Jan 1 14:59:37 GMT 2013


Andi,

Ask to Nicolas L├ęcureuil who make official tarball

Gilles


2013/1/1 Andi Clemens <andi.clemens at gmail.com>

> hi,
>
> I'm unable to disable the build of kipiplugins and all the other optional
> libraries by disabling it in the CMAKE options.
>
> Whenever I disable for example "BUILD_kipi_plugins", it still compiles it.
> The only way to fix this is to use the macro MACRO_OPTIONAL_ADD_**SUBDIRECTORY
> for the kipi_plugins subdirectory in the extra/CMakeLists.txt
>
> Shouldn't this be the normal inclusion strategy?
> I use the following CMakeLists.txt content in extra now:
>
> ------------------------------**----------------------
>
> FIND_PACKAGE(KDE4 REQUIRED)
> INCLUDE(**MacroOptionalAddSubdirectory)
>
> IF (${DIGIKAMSC_USE_PRIVATE_**KDEGRAPHICS})
>     MACRO_OPTIONAL_ADD_**SUBDIRECTORY(libksane)
>     ADD_SUBDIRECTORY(libkipi)
>     ADD_SUBDIRECTORY(libkexiv2)
>     ADD_SUBDIRECTORY(libkdcraw)
> ENDIF()
>
> MACRO_OPTIONAL_ADD_**SUBDIRECTORY(libmediawiki)
> MACRO_OPTIONAL_ADD_**SUBDIRECTORY(libkvkontakte)
>
> MACRO_OPTIONAL_ADD_**SUBDIRECTORY(libkgeomap)
> MACRO_OPTIONAL_ADD_**SUBDIRECTORY(libkface)
> MACRO_OPTIONAL_ADD_**SUBDIRECTORY(kipi-plugins)
>
> ------------------------------**----------------------
>
> Now I can disable the optional directories with ccmake.
>
> I don't quite understand why the BUILD_xxx options are set anyway, because
> only the macro MACRO_OPTIONAL_ADD_**SUBDIRECTORY should set them??
>
> Is it ok to commit this?
> How do package builders build digikam only? Because the normal way through
> cmake doesn't seem to work.
> Maybe they just checkout core?
>
> Andi
>
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
> ______________________________**_________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/**listinfo/digikam-devel<https://mail.kde.org/mailman/listinfo/digikam-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20130101/1fad1c92/attachment.html>


More information about the Digikam-devel mailing list