qtcreator.qbs 2.06 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 6
    property string ide_version_minor: '8'
    property string ide_version_release: '81'
Joerg Bornemann's avatar
Joerg Bornemann committed
7
    property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
Eike Ziller's avatar
Eike Ziller committed
8 9 10 11
    property string ide_compat_version_major: '2'
    property string ide_compat_version_minor: '8'
    property string ide_compat_version_release: '81'
    property string qtcreator_compat_version: ide_compat_version_major + '.' + ide_compat_version_minor + '.' + ide_compat_version_release
12
    property path ide_source_tree: path
Joerg Bornemann's avatar
Joerg Bornemann committed
13 14
    property string ide_app_path: qbs.targetOS.contains("osx") ? "" : "bin"
    property string ide_app_target: qbs.targetOS.contains("osx") ? "Qt Creator" : "qtcreator"
15
    property string ide_library_path: {
Joerg Bornemann's avatar
Joerg Bornemann committed
16
        if (qbs.targetOS.contains("osx"))
17
            return ide_app_target + ".app/Contents/PlugIns"
Joerg Bornemann's avatar
Joerg Bornemann committed
18
        else if (qbs.targetOS.contains("windows"))
19 20 21 22 23
            return ide_app_path
        else
            return "lib/qtcreator"
    }
    property string ide_plugin_path: {
Joerg Bornemann's avatar
Joerg Bornemann committed
24
        if (qbs.targetOS.contains("osx"))
25
            return ide_library_path
Joerg Bornemann's avatar
Joerg Bornemann committed
26
        else if (qbs.targetOS.contains("windows"))
27 28 29 30
            return "lib/qtcreator/plugins"
        else
            return ide_library_path + "/plugins"
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
31
    property string ide_data_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
32 33
            ? ide_app_target + ".app/Contents/Resources"
            : "share/qtcreator"
Joerg Bornemann's avatar
Joerg Bornemann committed
34
    property string ide_libexec_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
35 36
            ? ide_data_path
            : ide_app_path
Joerg Bornemann's avatar
Joerg Bornemann committed
37
    property string ide_doc_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
38 39
            ? ide_data_path + "/doc"
            : "share/doc/qtcreator"
Joerg Bornemann's avatar
Joerg Bornemann committed
40
    property string ide_bin_path: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
41 42
            ? ide_app_target + ".app/Contents/MacOS"
            : ide_app_path
Joerg Bornemann's avatar
Joerg Bornemann committed
43 44 45
    moduleSearchPaths: "qbs"

    references: [
46
        "src/src.qbs",
Joerg Bornemann's avatar
Joerg Bornemann committed
47 48
        "lib/qtcreator/qtcomponents/qtcomponents.qbs",
        "share/share.qbs",
49
        "share/qtcreator/translations/translations.qbs",
Joerg Bornemann's avatar
Joerg Bornemann committed
50 51
    ]
}