1
/****************************************************************************
3
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
6
** This file is part of the Qt Build Suite.
8
** Commercial License Usage
9
** Licensees holding valid commercial Qt licenses may use this file in
10
** accordance with the commercial license agreement provided with the
11
** Software or, alternatively, in accordance with the terms contained in
12
** a written agreement between you and Digia. For licensing terms and
13
** conditions see http://qt.digia.com/licensing. For further information
14
** use the contact form at http://qt.digia.com/contact-us.
16
** GNU Lesser General Public License Usage
17
** Alternatively, this file may be used under the terms of the GNU Lesser
18
** General Public License version 2.1 as published by the Free Software
19
** Foundation and appearing in the file LICENSE.LGPL included in the
20
** packaging of this file. Please review the following information to
21
** ensure the GNU Lesser General Public License version 2.1 requirements
22
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
** In addition, as a special exception, Digia gives you certain additional
25
** rights. These rights are described in the Digia Qt LGPL Exception
26
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28
****************************************************************************/
31
\contentspage list-of-modules.html
33
\ingroup list-of-modules
36
\brief Comprises general properties.
38
The \c qbs module is implicitly loaded in every product. It contains properties of the current
39
build environment, independent of the used programming languages and toolchains.
42
\section1 buildVariant
45
\row \li \b{Type:} \li \c{string}
46
\row \li \b{Default:} \li \c{"debug"}
49
Contains the name of the build variant for the current build.
52
\section1 debugInformation
55
\row \li \b{Type:} \li \c bool
56
\row \li \b{Default:} \li \c{true} for debug builds, \c{false} otherwise
59
Specifies whether to generate debug information.
62
\section1 enableDebugCode
65
\row \li \b{Type:} \li \c bool
66
\row \li \b{Default:} \li \c{true} for debug builds, \c{false} otherwise
69
Specifies whether to compile debug code in the product.
70
This is typically enabled for debug builds and disabled for release builds.
73
\section1 optimization
76
\row \li \b{Type:} \li \c{string}
77
\row \li \b{Allowed Values:} \li \c{"none"}, \c{"fast"}, \c{"small"}
78
\row \li \b{Default:} \li \c{"none"} for debug builds, \c{"fast"} for release builds
81
Specifies the general type of optimization that should be performed by all toolchains.
87
\row \li \b{Type:} \li \c{stringList} (read only)
90
This property is set by qbs internally and specifies the OS qbs is running on.
91
The possible values for this property are the values of \c targetOS,
92
though some may not be supported.
98
\row \li \b{Type:} \li \c{stringList}
99
\row \li \b{Possible Values:} \li one or more of:
143
Specifies the OS you want to build the project for.
144
This is typically set in a profile.
147
\section1 architecture
150
\row \li \b{Type:} \li \c{string}
153
Specifies the target platform's processor architecture.
154
This is typically set in a profile.
155
Currently used values are: \c{"x86"}, \c{"x86_64"} and \c{"arm"}.
161
\row \li \b{Type:} \li \c{string}
162
\row \li \b{Allowed Values:} \li \c{"big"}, \c{"little"}, \c{"mixed"}
163
\row \li \b{Default:} \li \c{undefined}
166
Specifies the endianness of the target platform's processor architecture.
172
\row \li \b{Type:} \li \c{stringList}
173
\row \li \b{Allowed Values:} \li \c{"gcc"}, \c{"llvm"}, \c{"clang"}, \c{"mingw"}, \c{"msvc"}
176
Specifies the attributes of the toolchain that is going to be used for this build.
182
\row \li \b{Type:} \li \c{string}
183
\row \li \b{Default:} \li \c{undefined}
186
Specifies the sysroot of the target platform. This property is typically set in a profile
193
\row \li \b{Type:} \li \c{bool}
194
\row \li \b{Default:} \li \c{false}
197
Specifies whether to install a certain set of files.
198
This is typically set in a \c{Group} item to mark a number of files as installable.
204
\row \li \b{Type:} \li \c{string}
205
\row \li \b{Default:} \li \c{undefined}
208
Specifies the installation directory for the files of a product or a \c{Group}. The value of
209
this property is a path that is relative to \c installPrefix.
211
\section1 installPrefix
214
\row \li \b{Type:} \li \c{string}
215
\row \li \b{Default:} \li \c{empty}
218
Specifies the global installation prefix. It is implicitly prepended to all values
219
of \c installDir. The \c installPrefix itself is relative to the install root, which is not
220
a property of qbs, but an external installation parameter.
222
\section1 pathListSeparator
225
\row \li \b{Type:} \li \c{string}
228
Holds the platform-specific separator for path list that is used in environment variables or
229
other contexts. E.g. on Windows is this \c{";"}, on Unix derivatives \c{":"}.