kdesrc-build: how to set cmake options for one specific framework?

Martin Klapetek martin.klapetek at gmail.com
Wed Jan 14 19:35:21 GMT 2015


On Wed, Jan 14, 2015 at 8:08 PM, Mark Gaiser <markg85 at gmail.com> wrote:

> On Wed, Jan 14, 2015 at 7:36 PM, Martin Klapetek <
> martin.klapetek at gmail.com> wrote:
>
>> On Wed, Jan 14, 2015 at 7:31 PM, Mark Gaiser <markg85 at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Kdesrc-build uses (right?) projects.kde.org to get a list of frameworks
>>> and compile them. That works great :)
>>>
>>> However, a few hours ago David Faure pushed something rather cool in KIO
>>> [1] that i would like to play with. It adds the KIOCORE_ONLY cmake define.
>>> Sure, i can compile KIO without kdesrc-build and just add "-DKIOCORE_ONLY"
>>> to the cmake step.
>>>
>>> I prefer to keep using kdesrc-build so i wonder how to add a cmake
>>> define for just the kio framework.
>>>
>>
>> You can put it locally into your kdesrc-buildrc with "cmake-options",
>> something like:
>>
>> module kio
>>     repository kde-projects
>>     cmake-options -DKIOCORE_ONLY=true
>> end module
>>
>> You can even name the module kio-coreonly and then do kdesrc-build
>> kio-coreonly to get the core only.
>>
>> Cheers
>> --
>> Martin Klapetek | KDE Developer
>>
>
> Hi Martin,
>
> Thank you for the hints. The first solution works, but is not ideal. When
> i do that then typing: "kdesrc-build kio" will compile that kio you just
> added. However, when just typing "kdesrc-build" it only compiles the kio
> from frameworks, not the one added in a later kdesrc-build include file.
> I'm guessing this is a bug?
>
> The second solution also works, but results in KIO being compiled twice.
> Once for frameworks and once where added.
>
> Do you know another way? :)
>

If you look at kf5-frameworks-build-include at the bottom, there's an
example
of how to set an option just for one module. You can either edit that file
directly
or just add it to your kdesrc-buildrc (if you have none put one in
~/.kdesrc-build)

Cheers
-- 
Martin Klapetek | KDE Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20150114/d716bf88/attachment.htm>


More information about the kde-core-devel mailing list