summaryrefslogtreecommitdiff
path: root/qtcreator.qbs
blob: 65e07932c00de8c65a72d7585cb93d2344e00de9 (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
46
import qbs.base 1.0

Project {
    property string ide_version_major: '2'
    property string ide_version_minor: '7'
    property string ide_version_release: '84'
    property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
    property string ide_app_path: qbs.targetOS.contains("mac") ? "" : "bin"
    property string ide_app_target: qbs.targetOS.contains("mac") ? "Qt Creator" : "qtcreator"
    property string ide_library_path: {
        if (qbs.targetOS.contains("mac"))
            return ide_app_target + ".app/Contents/PlugIns"
        else if (qbs.targetOS.contains("windows"))
            return ide_app_path
        else
            return "lib/qtcreator"
    }
    property string ide_plugin_path: {
        if (qbs.targetOS.contains("mac"))
            return ide_library_path
        else if (qbs.targetOS.contains("windows"))
            return "lib/qtcreator/plugins"
        else
            return ide_library_path + "/plugins"
    }
    property string ide_data_path: qbs.targetOS.contains("mac")
            ? ide_app_target + ".app/Contents/Resources"
            : "share/qtcreator"
    property string ide_libexec_path: qbs.targetOS.contains("mac")
            ? ide_data_path
            : ide_app_path
    property string ide_doc_path: qbs.targetOS.contains("mac")
            ? ide_data_path + "/doc"
            : "share/doc/qtcreator"
    property string ide_bin_path: qbs.targetOS.contains("mac")
            ? ide_app_target + ".app/Contents/MacOS"
            : ide_app_path
    moduleSearchPaths: "qbs"

    references: [
        "src/src.qbs",
        "lib/qtcreator/qtcomponents/qtcomponents.qbs",
        "share/share.qbs",
        "share/qtcreator/translations/translations.qbs",
    ]
}