48bce2e8f0
This commit introduces minimal support for instrumentation within Qt. Currently, only LTTNG/Linux and ETW/Windows are supported. Change-Id: I59b48cf83acf5532a998bb493e6379e9177e14c8 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
|
defineTest(addExclusiveBuildsProper) {
|
|
!$$1:!fix_output_dirs: \
|
|
return(true)
|
|
|
|
for(build, 2) {
|
|
isEmpty($${build}.name) {
|
|
$${build}.name = $$title($$build)
|
|
export($${build}.name)
|
|
}
|
|
isEmpty($${build}.target) {
|
|
$${build}.target = $$lower($$build)
|
|
export($${build}.target)
|
|
}
|
|
isEmpty($${build}.dir_affix) {
|
|
$${build}.dir_affix = $$lower($$build)
|
|
export($${build}.dir_affix)
|
|
}
|
|
|
|
$${build}.exclusive = $$2
|
|
export($${build}.exclusive)
|
|
|
|
QMAKE_EXCLUSIVE_BUILDS += $$build
|
|
}
|
|
|
|
CONFIG *= exclusive_builds
|
|
export(CONFIG)
|
|
|
|
export(QMAKE_EXCLUSIVE_BUILDS)
|
|
return(true)
|
|
}
|
|
|
|
defineTest(addExclusiveBuilds) {
|
|
lessThan(ARGC, 2): \
|
|
error("addExclusiveBuilds() requires at least two arguments")
|
|
|
|
addExclusiveBuildsProper($$join(ARGS, _and_), $$ARGS)
|
|
}
|
|
|
|
# Default directories to process
|
|
QMAKE_DIR_REPLACE = OBJECTS_DIR MOC_DIR RCC_DIR PRECOMPILED_DIR QGLTF_DIR DESTDIR TRACEGEN_DIR
|
|
QMAKE_DIR_REPLACE_SANE += QGLTF_DIR TRACEGEN_DIR
|