[QBS] Framework creation
Joerg Bornemann
joerg.bornemann at nokia.com
Mon Sep 10 12:28:39 CEST 2012
On 09/09/2012 16:35, ext Алексей Сидоров wrote:
> Need a commn way to create frameworks whethever Unix libraries with pkgconfig
> files or MacosX Frameworks.
> I think it requires a module that I knew would be the right way to install the
> public headers,
> private headers, resource files, and which can add a version string and
> description of framework.
I think you can enhance share/qbs/imports/qbs/base/DynamicLibrary.qbs or
just add a Framework.qbs there and derive StaticLibrary, DynamicLibrary
and Framework from a common library item.
WRT the install location of headers, I like your latter proposal best,
because its more explicit where which header get installed to.
> Framework {
> name: "foo"
> headersDir: "Foo"
> versionString: "1.0.0"
> descriptionString: "Foo library"
> //some additional info
> authors: ["Aleksey Sidorov"]
>
> files: [...]
>
> Group {
> qbs.installDir: destinationHeaders
> files: [...]
> }
> Group {
> qbs.installDir: destinationHeadersPrivate
> files: [...]
> }
> Group {
> qbs.installDir: destinationResources
> files: [...]
> }
> }
Cheers,
Jörg
More information about the Qbs
mailing list