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

Product {
    name: "SharedContent"
5
    Depends { name: "qtc" }
Joerg Bornemann's avatar
Joerg Bornemann committed
6 7

    Group {
8
        name: "Unconditional"
9
        qbs.install: true
10
        qbs.installDir: qtc.ide_data_path
11
        qbs.installSourceBase: "qtcreator"
12 13
        prefix: "qtcreator/"
        files: [
14
            "cplusplus/**/*",
15 16 17
            "debugger/**/*",
            "designer/**/*",
            "glsl/**/*",
Jochen Becher's avatar
Jochen Becher committed
18
            "modeleditor/**/*",
19 20 21 22 23 24 25 26 27 28
            "qml/**/*",
            "qmldesigner/**/*",
            "qmlicons/**/*",
            "qml-type-descriptions/**/*",
            "schemes/**/*",
            "snippets/**/*",
            "styles/**/*",
            "templates/**/*",
            "themes/**/*",
            "welcomescreen/**/*"
Joerg Bornemann's avatar
Joerg Bornemann committed
29 30
        ]
    }
31

32 33 34
    Group {
        name: "3rdparty"
        qbs.install: true
35
        qbs.installDir: qtc.ide_data_path
36 37 38 39 40 41 42
        qbs.installSourceBase: project.ide_source_tree + "/src/share/3rdparty"
        prefix: project.ide_source_tree + "/src/share/3rdparty/"
        files: [
            "generic-highlighter/**/*"
        ]
    }

43
    Group {
44
        name: "Conditional"
45
        qbs.install: true
46
        qbs.installDir: qtc.ide_data_path + "/externaltools"
47
        prefix: project.ide_source_tree + "/src/share/qtcreator/externaltools/"
48 49 50 51
        files: {
            var list = [
                "lrelease.xml",
                "lupdate.xml",
Orgad Shaneh's avatar
Orgad Shaneh committed
52
                "qmlscene.xml",
53 54 55
                "qmlviewer.xml",
                "sort.xml",
            ]
56
            if (qbs.targetOS.contains("windows"))
57
                list.push("notepad_win.xml");
Christian Kandeler's avatar
Christian Kandeler committed
58
            else if (qbs.targetOS.contains("macos"))
59
                list.push("vi_mac.xml");
60
            else
61 62 63 64
                list.push("vi.xml");
            return list;
        }
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
65
}