forked from qt-creator/qt-creator
- Remove dependency on project.withAutotests by adding local
{Qt,Cpp}Application overrides that alias QtcManualTest. This way, the
respective products are a QtcManualTest when inside Qt Creator, while
also working outside the source tree.
- Rename QtcManualtest to QtcManualTest. (The reason QtcAutotest is not
camel-cased is because "autotest" is a single word.)
- Plus some minor clean-ups.
Change-Id: Idd77191f0b433d6d7443c639eebda383ab110082
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
24 lines
680 B
QML
24 lines
680 B
QML
import qbs.FileInfo
|
|
|
|
QtcProduct {
|
|
condition: qtc.withAutotests
|
|
destinationDirectory: project.buildDirectory + '/'
|
|
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
|
|
targetName: "tst_" + name.split(' ').join("")
|
|
type: "application"
|
|
|
|
install: false
|
|
|
|
Depends { name: "Qt.testlib" }
|
|
Depends { name: "copyable_resource" }
|
|
|
|
cpp.defines: {
|
|
var defines = base.filter(function(d) { return d !== "QT_RESTRICTED_CAST_FROM_ASCII"; });
|
|
return defines;
|
|
}
|
|
cpp.rpaths: [
|
|
project.buildDirectory + '/' + qtc.ide_library_path,
|
|
project.buildDirectory + '/' + qtc.ide_plugin_path
|
|
]
|
|
}
|