<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 23, 2014 at 8:15 PM, Harald Fernengel <span dir="ltr"><<a href="mailto:harryf@gmx.com" target="_blank">harryf@gmx.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
TL;DR<br>
<br>
Do we want to do build KDE Frameworks as Mac OS X Frameworks?<br>
<br>
Long Story:<br>
<br>
on Mac OS X, libraries are typically deployed as "Frameworks" (e.g. a<br>
directory containing the shared library, headers, resources and meta<br>
data). A framework can be simply dragged&dropped to Xcode projects and<br>
it's also easier from command line:<br>
<br>
clang++ -framework KF5Archive -framework QtCore main.cpp<br>
<br>
(Assuming that Qt and KF5Archive are in a standard Framework path,<br>
otherwise, add "-F /path/to/framework").<br>
<br>
I tried to create an OS X Framework out of KArchive and ended up with<br>
attached patch (see also <a href="https://git.reviewboard.kde.org/r/115977/" target="_blank">https://git.reviewboard.kde.org/r/115977/</a>)<br>
<br>
What needs to happen on KF5 side?<br>
<br>
1) All public headers must be added as source files (e.g. to<br>
add_library()) and set as PUBLIC_HEADER property on the target. Instead<br>
of a manual "install" rule, we need to set PUBLIC_HEADER DESTINATION to<br>
the install TARGETS rule.<br>
<br>
2) Public (installed) headers must use<br>
<br>
#include "myOtherHeader"  // (double quotes)<br>
<br>
to include headers belonging to the same framework<br>
<br>
3) Public headers must use<br>
<br>
#include <KF5Whatever/foo.h><br>
<br>
to include headers belonging to other frameworks<br>
<br>
Is that worth the hassle? If yes, I can try to convert some of our libs<br>
to OS X frameworks, hoping not to break things for other platforms ;)<br>
<span class=""><font color="#888888"><br>
Harald<br>
</font></span><br>_______________________________________________<br>
Kde-frameworks-devel mailing list<br>
<a href="mailto:Kde-frameworks-devel@kde.org">Kde-frameworks-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">Hi,</div><div class="gmail_extra">I would say that we should follow however it's done in Qt. So far we've been trying to provide as much of a similar experience as if it was another Qt module. Doing so here as well could be interesting too.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">The changes you propose make sense too, even on a linux system (although I'm unaware of how this PUBLIC_HEADER property works), so I wouldn't have a big problem to adopt them.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">What scares me the most is that things will break over time from people only testing on Linux, though. This could become frustrating, but also a huge step forward for the project.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Aleix</div></div>