1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546
|
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file. Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
** $QT_END_LICENSE$
**
****************************************************************************/
/*!
\qmltype Qt.core
\inqmlmodule QbsModules
\brief Provides Qt Core support.
All other Qt modules have a dependency on the Qt.core module, and therefore
you do not need to list it in your dependencies if you depend on at least
one other \l{Qt Modules}{Qt module}.
Some of the Qt.core properties only need to be defined if the respective
installation of Qt was built in some unusual way, for instance by setting
non-default \c configure flags.
\section2 Relevant File Tags
\target filetags-qtcore
\table
\header
\li Tag
\li Auto-tagged File Names
\li Since
\li Description
\row
\li \c{"qch"}
\li n/a
\li 1.1
\li This tag is attached to the output artifacts of the rule that runs the
\c qhelpgenerator tool.
\row
\li \c{"qdoc"}
\li \c{*.qdoc}
\li 1.1
\li Source files with this tag trigger a re-execution of the rule running the \c qdoc
tool when their timestamp changes.
\row
\li \c{"qdocconf"}
\li \c{*.qdocconf}
\li 1.1
\li Source files with this tag trigger a re-execution of the rule running the \c qdoc
tool when their timestamp changes.
\row
\li \c{"qdocconf-main"}
\li -
\li 1.1
\li Source files with this tag serve as inputs to the rule running the \c qdoc tool.
\row
\li \c{"qdoc-output"}
\li n/a
\li 1.5
\li Use this tag to match all \c qdoc outputs, for instance in a \l{Group}
using the \l{Group::fileTagsFilter}{group.fileTagsFilter} property.
\row
\li \c{"qhp"}
\li \c{*.qhp}
\li 1.1
\li Files with this tag serve as inputs to the rule running the \c qhelpgenerator tool.
Such files are created by \c qdoc, but can also appear as source files.
\row
\li \c{"qm"}
\li n/a
\li 1.1
\li This tag is attached to the output artifacts of the rule that runs the \c lrelease tool.
\row
\li \c{"qrc"}
\li \c{*.qrc}
\li 1.0
\li Files with this tag serve as inputs to the rule running the \c rcc tool.
\row
\li \c{"qt_plugin_metadata"}
\li -
\li 1.0
\li Source files with this tag trigger a re-execution of the rule running the \c moc
tool when their timestamp changes.
\row
\li \c{"qt.core.metatypes"}
\li n/a
\li 1.16
\li This tag is attached to the JSON files that are potentially created if
\l{Qt.core::generateMetaTypesFile}{generateMetaTypesFile} is enabled.
\row
\li \c{"qt.core.resource_data"}
\li -
\li 1.7
\li Source files with this tag serve as inputs to the rule creating \c qrc files.
\row
\li \c{"ts"}
\li \c{*.ts}
\li 1.0
\li Files with this tag serve as inputs to the rule running the \c lrelease tool.
\row
\li \c{"mocable"}
\li -
\li 1.13
\li Use this tag to force \QBS to run \c moc on the respective files, even though
they do not contain \c Q_OBJECT or a related macro.
\row
\li \c{"unmocable"}
\li -
\li 1.2
\li Use this tag for files that \QBS should not run \c moc on, even though they contain
\c Q_OBJECT or a related macro.
\endtable
*/
/*!
\qmlproperty stringList Qt.core::availableBuildVariants
The build variants that this Qt installation offers.
\defaultvalue Set by \l{setup-qt}.
*/
/*!
\qmlproperty path Qt.core::binPath
The path in which Qt tools such as \c qmake, \c moc, and so on are located.
\nodefaultvalue
*/
/*!
\qmlproperty bool Qt.core::combineMocOutput
Whether the C++ sources created by \c moc are combined into a single C++
file per product. For projects where many header files are to be handled by
\c moc, this can speed up compilation considerably. However, side effects
may occur as a result of merging translation units.
\defaultvalue \l{cpp::combineCxxSources}{cpp.combineCxxSources}
*/
/*!
\qmlproperty bool Qt.core::enableBigResources
Whether the Qt resource compiler is run in a two-pass fashion that supports
the creation of big resources.
\defaultvalue \c{false}
*/
/*!
\qmlproperty stringList Qt.core::config
Corresponds to the default value of qmake's \c CONFIG variable.
\defaultvalue \c []
*/
/*!
\qmlproperty stringList Qt.core::disabledFeatures
Corresponds to cmake's \c QT_DISABLED_PUBLIC_FEATURES variable.
\readonly
*/
/*!
\qmlproperty path Qt.core::docPath
The path in which the Qt documentation is located.
\nodefaultvalue
*/
/*!
\qmlproperty stringList Qt.core::enabledFeatures
Corresponds to cmake's \c QT_ENABLED_PUBLIC_FEATURES variable.
\readonly
*/
/*!
\qmlproperty bool Qt.core::enableKeywords
Set this property to \c false if you do not want Qt to define the symbols
\c {signals}, \c {slots}, and \c {emit}. This can be necessary if your
project interacts with code that also defines such symbols.
\defaultvalue \c true
*/
/*!
\qmlproperty bool Qt.core::frameworkBuild
Whether Qt was built as a framework. This is only relevant for Darwin
systems.
\nodefaultvalue
*/
/*!
\qmlproperty bool Qt.core::generateMetaTypesFile
If this property is enabled, a JSON file tagged as \c "qt.core.metatypes" will potentially
be generated from metatype information collected by \c moc.
\nodefaultvalue
\since Qbs 1.16
*/
/*!
\qmlproperty string Qt.core::generatedHeadersDir
The directory where tools that generate headers (such as \c moc or \c uic) put resulting
files.
Normally, you don't need to change this property. The one use-case is when there are several
files with the same file name in the Product. The file name produced by \c moc is based
only on the source file's base file name (without the directory path) which leads to a conflict
in the mentioned case. You can resolve the conflict by setting this property to a non-default
value for one of the files. For example:
\code
QtApplication {
files: ["my_cool_header.h", "main.cpp"]
Group {
name: "legacy"
files: "legacy/my_cool_header.h"
Qt.core.generatedHeadersDir: "qt.legacy.headers"
}
}
\endcode
\defaultvalue \c product.buildDirectory + "/qt.headers"
*/
/*!
\qmlproperty bool Qt.core::metaTypesInstallDir
The directory to install the metatypes file into. If this property is empty or undefined,
the metatypes file will not be installed. If the
\l{Qt.core::generateMetaTypesFile}{generateMetaTypesFile} property is not \c true, then
this property has no effect.
\nodefaultvalue
\since Qbs 1.16
*/
/*!
\qmlproperty path Qt.core::incPath
The base path of the Qt headers.
\nodefaultvalue
*/
/*!
\qmlproperty string Qt.core::libInfix
The library infix can be set at Qt build time to change the name of Qt's
libraries.
For example, if the infix is \c "Test", on Unix systems, the Qt Core library
will be in a file called \c{libQt5CoreTest.so} instead of the default
\c{libQt5Core.so}.
\defaultvalue \c []
*/
/*!
\qmlproperty path Qt.core::libPath
The path in which the Qt libraries are located.
\nodefaultvalue
*/
/*!
\qmlproperty bool Qt.core::lreleaseMultiplexMode
If this property is \c true, \c lrelease will merge all \c .ts files into
one \c .qm file. Otherwise, one \c .qm file will be created for each \c .ts
file.
\defaultvalue \c{false}
*/
/*!
\qmlproperty string Qt.core::lreleaseName
The base name of the \c lrelease tool. Set this if your system uses a name
such as \c "lrelease-qt4".
\defaultvalue \c{"lrelease"}
*/
/*!
\qmlproperty path Qt.core::mkspecPath
The path in which the Qt \c mkspecs are located.
\nodefaultvalue
*/
/*!
\qmlproperty stringList Qt.core::mocFlags
A list of additional flags to \c moc.
You will rarely need to set this property.
\defaultvalue \c []
*/
/*!
\qmlproperty string Qt.core::mocName
The base name of the \c moc tool.
Set this if your system uses a name such as \c "moc-qt4".
\defaultvalue \c{"moc"}
*/
/*!
\qmlproperty string Qt.core::namespace
The Qt namespace that can be set at build time via the \c configure script.
By default, Qt is not built in a namespace.
\nodefaultvalue
*/
/*!
\qmlproperty stringList Qt.core::pluginMetaData
A list of additional plugin metadata.
The elements of the list are key-value pairs separated by the \c =
character.
A possible use case is to set the plugin URI when building a static QML
plugin:
\badcode
Qt.core.pluginMetaData: ["uri=thePlugin"]
\endcode
\defaultvalue \c []
*/
/*!
\qmlproperty path Qt.core::pluginPath
The path in which the Qt plugins are located.
\nodefaultvalue
*/
/*!
\qmlproperty stringList Qt.core::qdocEnvironment
The environment for calls to \c qdoc. Typically, you will need to set some
variables here when running \c qdoc to build your project documentation.
\nodefaultvalue
*/
/*!
\qmlproperty string Qt.core::qdocName
The base name of the \c qdoc tool.
\defaultvalue \c{"qdoc3"} for Qt 4, \c{"qdoc"} otherwise.
*/
/*!
\qmlproperty string Qt.core::qdocOutputDir
The directory name where the \c qdoc tool writes its output.
\defaultvalue \c{product.buildDirectory + "/qdoc_html"}
*/
/*!
\qmlproperty string Qt.core::qmBaseName
The base name of the \c .qm file to be built from the \c .ts files in the
product.
This property is ignored if \l{Qt.core::}{lreleaseMultiplexMode} is \c false.
\defaultvalue \l{Product::targetName}{product.targetName}
*/
/*!
\qmlproperty string Qt.core::qmDir
The directory name where to put the \c .qm file to be built.
\defaultvalue \l{Product::destinationDirectory}{product.destinationDirectory}
*/
/*!
\qmlproperty string Qt.core::qtBuildVariant
Specifies the type of Qt libraries to build against: \c "debug" or
\c "release".
\note On some systems, it is not possible to link code built in debug mode
against libraries built in release mode and vice versa.
\defaultvalue The build variant of the code linking against Qt. If Qt does
not offer that build variant, the build variant offered by Qt is chosen
instead.
*/
/*!
\qmlproperty stringList Qt.core::qtConfig
Corresponds to the default value of qmake's \c QT_CONFIG variable.
\defaultvalue \c []
*/
/*!
\qmlproperty path Qt.core::resourceSourceBase
For files tagged as \l{filetags-qtcore}{qt.core.resource_data}, this
property determines which part of their path will end up in the generated
\c .qrc file. If this property is set to \c undefined, only the file name is
used.
\nodefaultvalue
*/
/*!
\qmlproperty string Qt.core::resourcePrefix
For files tagged as \l{filetags-qtcore}{qt.core.resource_data}, this
property determines the prefix under which they will be available in the
generated \c .qrc file.
\defaultvalue \c{"/"}
*/
/*!
\qmlproperty string Qt.core::resourceFileBaseName
For files tagged as \l{filetags-qtcore}{qt.core.resource_data}, this
property determines the base name of the generated \c .qrc file.
If this property needs to be changed, it must be set in the corresponding
\l{Product}{product} rather than in a \l{Group}.
\defaultvalue \l{Product::targetName}{product.targetName}
*/
/*!
\qmlproperty bool Qt.core::staticBuild
Whether Qt was built statically.
\nodefaultvalue
*/
/*!
\qmlproperty path Qt.core::translationsPath
This property provides the absolute path to the directory where the Qt
translation files (.qm) are installed.
\nodefaultvalue
\since 2.5
*/
/*!
\qmlproperty string Qt.core::version
The Qt version.
Consists of three numbers separated by dots. For example "5.9.1".
\nodefaultvalue
*/
/*!
\qmlproperty int Qt.core::versionMajor
The Qt major version.
\defaultvalue \c{versionParts[0]}
*/
/*!
\qmlproperty int Qt.core::versionMinor
The Qt minor version.
\defaultvalue \c{versionParts[1]}
*/
/*!
\qmlproperty list Qt.core::versionParts
The Qt version as a list.
For example, Qt version 5.9.1 would correspond to a value of \c[5, 9, 1].
\defaultvalue \c []
*/
/*!
\qmlproperty int Qt.core::versionPatch
The Qt patch level.
\defaultvalue \c{versionParts[2]}
*/
/*!
\qmlproperty bool Qt.core::useRPaths
Whether to add \l{Qt.core::libPath}{Qt.core.libPath} to \l{cpp::rpaths}{cpp.rpaths}.
\defaultvalue \c true on Linux, \c false everywhere else.
*/
|