qtcreator.qbs 1.73 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2 3 4
import qbs.base 1.0

Project {
    property string ide_version_major: '2'
Eike Ziller's avatar
Eike Ziller committed
5
    property string ide_version_minor: '8'
Kai Koehne's avatar
Kai Koehne committed
6
    property string ide_version_release: '2'
Joerg Bornemann's avatar
Joerg Bornemann committed
7
    property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
Joerg Bornemann's avatar
Joerg Bornemann committed
8 9
    property string ide_app_path: qbs.targetOS.contains("osx") ? "" : "bin"
    property string ide_app_target: qbs.targetOS.contains("osx") ? "Qt Creator" : "qtcreator"
10
    property string ide_library_path: {
Joerg Bornemann's avatar
Joerg Bornemann committed
11
        if (qbs.targetOS.contains("osx"))
12
            return ide_app_target + ".app/Contents/PlugIns"
Joerg Bornemann's avatar
Joerg Bornemann committed
13
        else if (qbs.targetOS.contains("windows"))
14 15 16 17 18
            return ide_app_path
        else
            return "lib/qtcreator"
    }
    property string ide_plugin_path: {
Joerg Bornemann's avatar
Joerg Bornemann committed
19
        if (qbs.targetOS.contains("osx"))
20
            return ide_library_path
Joerg Bornemann's avatar
Joerg Bornemann committed
21
        else if (qbs.targetOS.contains("windows"))
22 23 24 25
            return "lib/qtcreator/plugins"
        else
            return ide_library_path + "/plugins"
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
26
    property string ide_data_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
27 28
            ? ide_app_target + ".app/Contents/Resources"
            : "share/qtcreator"
Joerg Bornemann's avatar
Joerg Bornemann committed
29
    property string ide_libexec_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
30 31
            ? ide_data_path
            : ide_app_path
Joerg Bornemann's avatar
Joerg Bornemann committed
32
    property string ide_doc_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
33 34
            ? ide_data_path + "/doc"
            : "share/doc/qtcreator"
Joerg Bornemann's avatar
Joerg Bornemann committed
35
    property string ide_bin_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
36 37
            ? ide_app_target + ".app/Contents/MacOS"
            : ide_app_path
Joerg Bornemann's avatar
Joerg Bornemann committed
38 39 40
    moduleSearchPaths: "qbs"

    references: [
41
        "src/src.qbs",
Joerg Bornemann's avatar
Joerg Bornemann committed
42 43
        "lib/qtcreator/qtcomponents/qtcomponents.qbs",
        "share/share.qbs",
44
        "share/qtcreator/translations/translations.qbs",
Joerg Bornemann's avatar
Joerg Bornemann committed
45 46
    ]
}