[Kde-pim] Review Request: find_package support for libkleo

Eduardo Robles Elvira edulix at gmail.com
Tue Oct 27 10:42:11 GMT 2009



> On 2009-10-25 10:07:39, Christophe Giboudeaux wrote:
> > Please give more informations: Does your project concern KHTML or Konqueror ?
> > If it's KHTML, this patch doesn't make sense: kdelibs cannot depend on kdepim,
> > If it's Konqueror, you would make kdepim a dependency for kdebase(/apps) which also doesn't sound correct.
> > 
> > For any case: the stuff in kdepim doesn't have to be BC. 
> > As long as libkleo is in kdepim, it shouldn't install any cmake file (that's why `find_package(Kdepim)` will return a fatal error).
> > If you really want to use libkleo, please consider adding a FindLibKleo.cmake in your project instead.
> > 
> > About the patch itself: KleoLibraryDepends.cmake contains all the kdepim dependencies. That makes your file bigger for nothing (you only need two lines from the generated file).
> > 
> > 
> >

> Please give more informations: Does your project concern KHTML or Konqueror ?

The project I'm talking about is my university final project which is about implementing support for end-to-end
encryption support in HTML as a proof of concept (not something I will try to push to trunk/ but something I
just want to see if it works). Something like supporting <input type="text" encryption="GPG" addressee="GPG-ID-here">.
For decrypting, I'll do something like <div encryption="GPG">encrypted-data-here</div>. As I say, it's a proof of
concept only. For testing, I'll try to find a jabber-web client and add support for the mentioned encryption method,
and then run a demo with one person using this web service with konqueror, and another other using the encryption
plugin of kopete, chatting with the first one, for example.

The part that affects Konqueror is only modifying the Configure dialog so you can set up which private GPG key to use
for encrypting. 

> If it's KHTML, this patch doesn't make sense: kdelibs cannot depend on kdepim,
> If it's Konqueror, you would make kdepim a dependency for kdebase(/apps) which also doesn't sound correct.
>
>
> For any case: the stuff in kdepim doesn't have to be BC. 
> As long as libkleo is in kdepim, it shouldn't install any cmake file (that's why `find_package(Kdepim)` will return a fatal error).
> If you really want to use libkleo, please consider adding a FindLibKleo.cmake in your project instead.

I see, so there's currently no nice way to depend on libkleo at the moment. I'll use the FindKleo.cmake option in
my project (i.e. in my "work branch" for khtml & konqueror).

> About the patch itself: KleoLibraryDepends.cmake contains all the kdepim dependencies. That makes your file bigger for nothing (you only need two lines from the generated file).

Yeah, I know, I just copied that from gpgme++ in fact, I thought that if it was ok for them it would be ok for Kleo too :P


- Eduardo


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1967/#review2802
-----------------------------------------------------------


On 2009-10-24 23:48:22, Eduardo Robles Elvira wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1967/
> -----------------------------------------------------------
> 
> (Updated 2009-10-24 23:48:22)
> 
> 
> Review request for KDE PIM.
> 
> 
> Summary
> -------
> 
> Currently libkleo is not being used by any application outside kdepim, but I'm working in a project which involves using libkleo in konqueror/khtml, which means I need to link to it from outside kdepim. 
> 
> This patch adds a KleoConfig.cmake file that will let anyone use find_package(Kleo REQUIRED) in any other KDE4 application to be able to easily find and use libkleo.
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdepim/libkleo/CMakeLists.txt 1034981 
>   /trunk/KDE/kdepim/libkleo/KleoConfig.cmake.in PRE-CREATION 
> 
> Diff: http://reviewboard.kde.org/r/1967/diff
> 
> 
> Testing
> -------
> 
> So far I've tested it locally and it works as expected, I can find Libkleo, include its headers and link to the library itself.
> 
> 
> Thanks,
> 
> Eduardo
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list