blob: b709cbce8455221a7ce4c6aa18d170ed204c9147 (
plain)
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
|
import qbs
import qbs.FileInfo
import qbs.Utilities
QtApplication {
type: ["application", "autotest"]
consoleApplication: true
property string testName
name: "tst_" + testName
Depends { name: "Qt.testlib" }
Depends { name: "qbscore" }
Depends { name: "qbsbuildconfig" }
cpp.defines: [
"QBS_TEST_SUITE_NAME=" + Utilities.cStringQuote(testName.toUpperCase().replace("-", "_"))
]
cpp.includePaths: [
"../../../src",
"../../../src/app/shared", // for the logger
]
cpp.cxxLanguageVersion: "c++11"
destinationDirectory: "bin"
Group {
name: "logging"
prefix: FileInfo.joinPaths(product.sourceDirectory, "../../../src/app/shared/logging") + '/'
files: [
"coloredoutput.cpp",
"coloredoutput.h",
"consolelogger.cpp",
"consolelogger.h"
]
}
cpp.rpaths: [FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix, qbsbuildconfig.libDirName)]
}
|