qtsupport.qbs 3.94 KB
Newer Older
1
import qbs 1.0
Joerg Bornemann's avatar
Joerg Bornemann committed
2

3 4
import QtcFunctions
import QtcPlugin
Joerg Bornemann's avatar
Joerg Bornemann committed
5 6 7 8

QtcPlugin {
    name: "QtSupport"

Orgad Shaneh's avatar
Orgad Shaneh committed
9
    Depends { name: "Qt"; submodules: ["widgets"]; }
10
    Depends { name: "Qt.quick"; condition: QtcFunctions.versionIsAtLeast(Qt.core.version, "5.1"); }
11 12 13 14
    Depends { name: "Aggregation" }
    Depends { name: "QmlJS" }
    Depends { name: "Utils" }

Joerg Bornemann's avatar
Joerg Bornemann committed
15 16
    Depends { name: "Core" }
    Depends { name: "ProjectExplorer" }
17
    Depends { name: "CppTools" }
Joerg Bornemann's avatar
Joerg Bornemann committed
18

19
    cpp.includePaths: base.concat([
Joerg Bornemann's avatar
Joerg Bornemann committed
20
        "../../shared",
21
    ])
Orgad Shaneh's avatar
Orgad Shaneh committed
22 23 24 25 26 27 28 29 30 31 32 33

    cpp.defines: base.concat([
        "QMAKE_AS_LIBRARY",
        "QMAKE_LIBRARY",
        "PROPARSER_THREAD_SAFE",
        "PROEVALUATOR_THREAD_SAFE",
        "PROEVALUATOR_CUMULATIVE",
        "QMAKE_BUILTIN_PRFS",
        "PROEVALUATOR_SETENV"
    ])

    Group {
34
        name: "Shared"
Orgad Shaneh's avatar
Orgad Shaneh committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
        prefix: "../../shared/proparser/"
        files: [
            "ioutils.cpp",
            "ioutils.h",
            "profileevaluator.cpp",
            "profileevaluator.h",
            "proitems.cpp",
            "proitems.h",
            "proparser.qrc",
            "prowriter.cpp",
            "prowriter.h",
            "qmake_global.h",
            "qmakebuiltins.cpp",
            "qmakeevaluator.cpp",
            "qmakeevaluator.h",
            "qmakeevaluator_p.h",
            "qmakeglobals.cpp",
            "qmakeglobals.h",
            "qmakeparser.cpp",
            "qmakeparser.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
55 56
            "qmakevfs.cpp",
            "qmakevfs.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
57
        ]
Joerg Bornemann's avatar
Joerg Bornemann committed
58 59 60
    }

    files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
61
        "baseqtversion.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
62
        "baseqtversion.h",
63 64
        "qtconfigwidget.cpp",
        "qtconfigwidget.h",
65
        "qtsupport.qrc",
Orgad Shaneh's avatar
Orgad Shaneh committed
66 67 68 69
        "customexecutableconfigurationwidget.cpp",
        "customexecutableconfigurationwidget.h",
        "customexecutablerunconfiguration.cpp",
        "customexecutablerunconfiguration.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
70
        "debugginghelper.ui",
Orgad Shaneh's avatar
Orgad Shaneh committed
71
        "debugginghelperbuildtask.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
72
        "debugginghelperbuildtask.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
73
        "exampleslistmodel.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
74 75 76
        "exampleslistmodel.h",
        "profilereader.cpp",
        "profilereader.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
77
        "qmldumptool.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
78
        "qmldumptool.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
79 80 81 82
        "qtkitconfigwidget.cpp",
        "qtkitconfigwidget.h",
        "qtkitinformation.cpp",
        "qtkitinformation.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
83 84 85 86 87 88
        "qtoptionspage.cpp",
        "qtoptionspage.h",
        "qtoutputformatter.cpp",
        "qtoutputformatter.h",
        "qtparser.cpp",
        "qtparser.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
89 90 91 92
        "qtsupport_global.h",
        "qtsupportconstants.h",
        "qtsupportplugin.cpp",
        "qtsupportplugin.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
93
        "qtversionfactory.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
94
        "qtversionfactory.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
95 96
        "qtversioninfo.ui",
        "qtversionmanager.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
97
        "qtversionmanager.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
98
        "qtversionmanager.ui",
99
        "qtfeatureprovider.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
100 101 102
        "screenshotcropper.cpp",
        "screenshotcropper.h",
        "showbuildlog.ui",
103 104
        "uicodemodelsupport.cpp",
        "uicodemodelsupport.h",
105 106 107 108
        "images/forms.png",
        "images/qml.png",
        "images/qt_project.png",
        "images/qt_qrc.png",
Joerg Bornemann's avatar
Joerg Bornemann committed
109
    ]
Daniel Teske's avatar
Daniel Teske committed
110

111 112 113 114 115 116 117 118 119 120 121 122
    Group {
        name: "QtVersion"
        files: [
            "desktopqtversion.cpp", "desktopqtversion.h",
            "desktopqtversionfactory.cpp", "desktopqtversionfactory.h",
            "simulatorqtversion.cpp", "simulatorqtversion.h",
            "simulatorqtversionfactory.cpp", "simulatorqtversionfactory.h",
            "winceqtversion.cpp", "winceqtversion.h",
            "winceqtversionfactory.cpp", "winceqtversionfactory.h",
        ]
    }

123
    Group {
Christian Kandeler's avatar
Christian Kandeler committed
124
        name: "Getting Started Welcome Page"
125
        condition: QtcFunctions.versionIsAtLeast(Qt.core.version, "5.1")
126 127 128 129 130 131 132
        files: [
            "gettingstartedwelcomepage.cpp",
            "gettingstartedwelcomepage.h"
        ]
    }


133
    Export {
134
        cpp.includePaths: "../../shared"
Daniel Teske's avatar
Daniel Teske committed
135
        cpp.defines: [
Orgad Shaneh's avatar
Orgad Shaneh committed
136
            "QMAKE_AS_LIBRARY",
137 138
            "PROPARSER_THREAD_SAFE",
            "PROEVALUATOR_CUMULATIVE",
Daniel Teske's avatar
Daniel Teske committed
139
            "PROEVALUATOR_THREAD_SAFE",
Christian Kandeler's avatar
Christian Kandeler committed
140 141
            "QMAKE_BUILTIN_PRFS",
            "PROEVALUATOR_SETENV"
Daniel Teske's avatar
Daniel Teske committed
142 143
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
144
}