diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-05-22 12:02:12 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-02 16:46:11 +0200 |
commit | e264281c4810bb0afb07e8f590fc31e504d5e4d0 (patch) | |
tree | 1bf8a9f0aaf1f6734e4acf53003a681048156efd /doc/reference | |
parent | 9297ea217284e2279f2d4471b3f8fc754dc5fe71 (diff) |
Make it possible to set profiles per product.
Use case 1: Build product A for architecture X and product B
for architecture Y (e.g. host tools vs target libraries).
Use case 2: Build product A for architectures X and Y and
product B only for architecture X (e.g. Android
multi-arch packages).
Change-Id: I2eb721c37cdd12c298ee12bad60e21e94b04676b
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'doc/reference')
-rw-r--r-- | doc/reference/items/depends.qdoc | 7 | ||||
-rw-r--r-- | doc/reference/items/product.qdoc | 14 | ||||
-rw-r--r-- | doc/reference/items/project.qdoc | 6 |
3 files changed, 27 insertions, 0 deletions
diff --git a/doc/reference/items/depends.qdoc b/doc/reference/items/depends.qdoc index 17816a455..7015c47f8 100644 --- a/doc/reference/items/depends.qdoc +++ b/doc/reference/items/depends.qdoc @@ -66,6 +66,13 @@ \li undefined \li The name of the dependent product or module. \row + \li profiles + \li stringList + \li \c{[product.profile]} + \li If the dependency is on a product and that product is going to be built for more than + one profile, then you can specify here which instance of the product the dependency is on. + See the \c profiles property of the \c Product item for more information. + \row \li submodules \li stringList \li undefined diff --git a/doc/reference/items/product.qdoc b/doc/reference/items/product.qdoc index 28737c9b9..b27f76c3d 100644 --- a/doc/reference/items/product.qdoc +++ b/doc/reference/items/product.qdoc @@ -85,6 +85,15 @@ \li empty string \li The name of the product. Used to identify the product in a \c Depends item, for example. \row + \li profiles + \li stringList + \li \c{[project.profile]} + \li The profiles for which the product should be built. For each profile listed here, + one instance of the product will be built according to the properties set in + the respective profile. + This property is only relevant for projects that require products being built for + different architectures. Otherwise it can be left at its default value. + \row \li type \li stringList \li empty list @@ -146,6 +155,11 @@ \li The build directory for this product. This is the directory where generated files are placed. \row + \li profile + \li string + \li The profile for building this particular instance of the product. Derived + automatically from the \c profiles property. + \row \li sourceDirectory \li path \li The source directory for this product. This is the directory of the file where this diff --git a/doc/reference/items/project.qdoc b/doc/reference/items/project.qdoc index c1a62bc40..91a548999 100644 --- a/doc/reference/items/project.qdoc +++ b/doc/reference/items/project.qdoc @@ -72,6 +72,12 @@ \li basename of the file the project is defined in \li The project name. Only relevant for e.g. displaying a project tree in an IDE. \row + \li profile + \li string + \li n/a + \li The top-level profile for building the project. This property is read-only and + is set by \QBS when the project is being set up. + \row \li condition \li bool \li true |