aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/libptyqt/ptyqt.qbs
blob: 7ff4da9f560f3626ee9c63c44413e6a056d1aabd (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
34
35
36
37
38
39
40
41
42
43
44
45
import qbs

Project {
    name: "ptyqt"

    QtcLibrary {
        Depends { name: "Qt.core" }
        Depends { name: "Qt.network"; condition: qbs.targetOS.contains("windows") }
        Depends { name: "winpty"; condition: qbs.targetOS.contains("windows") }

        type: "staticlibrary"

        files: [
            "iptyprocess.h",
            "ptyqt.cpp",
            "ptyqt.h",
        ]

        Group {
            name: "ptyqt UNIX files"
            condition: qbs.targetOS.contains("unix")
            files: [
                "unixptyprocess.cpp",
                "unixptyprocess.h",
            ]
        }

        Group {
            name: "ptyqt Windows files"
            condition: qbs.targetOS.contains("windows")
            files: [
                "conptyprocess.cpp",
                "conptyprocess.h",
                "winptyprocess.cpp",
                "winptyprocess.h",
            ]
        }

        Export {
            Depends { name: "cpp" }
            Depends { name: "winpty"; condition: qbs.targetOS.contains("windows") }
            cpp.includePaths: base.concat(exportingProduct.sourceDirectory)
        }
    }
}