aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/echoserver/echoserver.qbs
blob: 77df73a6d60142f38262b8d2b919b515095ba503 (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
import qbs.FileInfo

QtcProduct {
    name: "echoserver"
    type: "application"
    targetName: "echo"
    consoleApplication: true
    destinationDirectory: FileInfo.joinPaths(project.buildDirectory,
        FileInfo.relativePath(project.ide_source_tree, sourceDirectory))
    install: false

    Depends { name: "qtc" }
    Depends { name: "ClangSupport" }
    Depends { name: "Sqlite" }
    Depends { name: "Utils" }
    Depends { name: "Qt.network" }

    cpp.defines: ["CLANGSUPPORT_TESTS", "DONT_CHECK_MESSAGE_COUNTER"]
    cpp.dynamicLibraries: qbs.targetOS.contains("unix:") ? ["dl"] : []
    cpp.rpaths: [
        FileInfo.joinPaths(project.buildDirectory, qtc.ide_library_path),
        FileInfo.joinPaths(project.buildDirectory, qtc.ide_plugin_path)
    ]

    files: [
        "echoclangcodemodelserver.cpp",
        "echoclangcodemodelserver.h",
        "echoserverprocessmain.cpp",
    ]
}