Library

Generic library. More...

Since: Qbs 1.4
Inherits:

Product

Inherited By:

DynamicLibrary, LoadableModule, and StaticLibrary

Properties

Detailed Description

A Library item is a base item for native libraries and can have type set to one of the following values: "dynamiclibrary", "staticlibrary", "loadablemodule".

The default type value is "dynamiclibrary" except for iOS prior to version 8, in which case the default value is "staticlibrary".

This item can automatically install the library target (and library symlinks on Unix) and separated debug information.

For Android targets, the following applies:

  • The Product.type property value contains "android.nativelibrary" in addition to "dynamiclibrary".
  • There is a dependency on the cpp and Android.ndk modules.

Property Documentation

debugInformationInstallDir : string

Where to install the debug information if installDebugInformation is enabled.

The value is appended to qbs.installPrefix when constructing the actual installation directory.

Default: installDir.

This property was introduced in Qbs 1.16.

See also How do I separate and install debugging symbols?.


importLibInstallDir : string

Where to install the import library, if installImportLib is enabled.

The value is appended to qbs.installPrefix when constructing the actual installation directory.

This property is only relevant for Windows targets.

Default: lib

This property was introduced in Qbs 1.13.


install : bool

If true, the library will be installed to installDir.

Default: false

This property was introduced in Qbs 1.13.


installDebugInformation : string

If true, the debug information will be installed to debugInformationInstallDir.

Default: false

This property was introduced in Qbs 1.16.

See also How do I separate and install debugging symbols?.


installDir : string

Where to install the library, if install is enabled. On Unix, the symbolic links are also installed to this location.

The value is appended to qbs.installPrefix when constructing the actual installation directory.

Default: Library/Frameworks if the library is a bundle, otherwise bin for Windows and lib for Unix-like targets.

This property was introduced in Qbs 1.13.


installImportLib : bool

If true, the import library will be installed to importLibInstallDir. This property is only relevant for Windows targets. Enable it if you want to create a development package.

Default: false

This property was introduced in Qbs 1.13.


© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.