qtsupport.qbs 3.45 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2 3 4 5 6 7
import qbs.base 1.0

import "../QtcPlugin.qbs" as QtcPlugin

QtcPlugin {
    name: "QtSupport"

Yuchen Deng's avatar
Yuchen Deng committed
8
    Depends { name: "Qt"; submodules: ["widgets", "quick1"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
    Depends { name: "Core" }
    Depends { name: "ProjectExplorer" }
    Depends { name: "TextEditor" }
    Depends { name: "QmlJS" }

    Depends { name: "cpp" }
    cpp.includePaths: [
        ".",
        "../../shared",
        "../../shared/proparser",
        "..",
        "../../libs",
        buildDirectory
    ]
    cpp.defines: {
        return base.concat([
25
            "QT_NO_CAST_FROM_ASCII",
Joerg Bornemann's avatar
Joerg Bornemann committed
26
            "QT_NO_CAST_TO_ASCII",
Orgad Shaneh's avatar
Orgad Shaneh committed
27 28
            "QMAKE_AS_LIBRARY",
            "QMAKE_LIBRARY",
29
            "PROPARSER_THREAD_SAFE",
Joerg Bornemann's avatar
Joerg Bornemann committed
30
            "PROEVALUATOR_THREAD_SAFE",
Orgad Shaneh's avatar
Orgad Shaneh committed
31
            "PROEVALUATOR_CUMULATIVE",
Christian Kandeler's avatar
Christian Kandeler committed
32 33
            "QMAKE_BUILTIN_PRFS",
            "PROEVALUATOR_SETENV"
Joerg Bornemann's avatar
Joerg Bornemann committed
34 35 36 37
        ])
    }

    files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
38 39 40 41 42 43 44 45 46
        "../../shared/proparser/qmakebuiltins.cpp",
        "../../shared/proparser/qmakeevaluator.cpp",
        "../../shared/proparser/qmakeevaluator.h",
        "../../shared/proparser/qmakeevaluator_p.h",
        "../../shared/proparser/qmakeglobals.cpp",
        "../../shared/proparser/qmakeglobals.h",
        "../../shared/proparser/qmakeparser.cpp",
        "../../shared/proparser/qmakeparser.h",
        "../../shared/proparser/qmake_global.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
47
        "../../shared/proparser/profileevaluator.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
48
        "../../shared/proparser/profileevaluator.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
49
        "../../shared/proparser/proitems.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
50
        "../../shared/proparser/proitems.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
51
        "../../shared/proparser/prowriter.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
52
        "../../shared/proparser/prowriter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
53 54 55 56 57 58
        "../../shared/proparser/proparser.qrc",
        "../../shared/proparser/ioutils.h",
        "../../shared/proparser/ioutils.cpp",
        "qtversioninfo.ui",
        "qtversionmanager.ui",
        "baseqtversion.h",
59 60
        "debugginghelper.cpp",
        "debugginghelper.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
61 62 63 64 65 66 67 68 69 70 71 72 73
        "debugginghelper.ui",
        "debugginghelperbuildtask.h",
        "exampleslistmodel.h",
        "gettingstartedwelcomepage.h",
        "profilereader.cpp",
        "profilereader.h",
        "qmldebugginglibrary.h",
        "qmldumptool.h",
        "qmlobservertool.h",
        "qtoptionspage.h",
        "qtoutputformatter.cpp",
        "qtoutputformatter.h",
        "qtparser.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
74 75 76 77
        "qtkitconfigwidget.cpp",
        "qtkitconfigwidget.h",
        "qtkitinformation.cpp",
        "qtkitinformation.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
78 79 80 81 82 83 84 85 86 87
        "qtsupport_global.h",
        "qtsupportconstants.h",
        "qtsupportplugin.cpp",
        "qtsupportplugin.h",
        "qtversionfactory.h",
        "qtversionmanager.h",
        "screenshotcropper.cpp",
        "screenshotcropper.h",
        "showbuildlog.ui",
        "baseqtversion.cpp",
88 89 90 91
        "customexecutableconfigurationwidget.cpp",
        "customexecutableconfigurationwidget.h",
        "customexecutablerunconfiguration.cpp",
        "customexecutablerunconfiguration.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
92 93 94 95 96 97 98 99 100 101 102
        "debugginghelperbuildtask.cpp",
        "exampleslistmodel.cpp",
        "gettingstartedwelcomepage.cpp",
        "qmldebugginglibrary.cpp",
        "qmldumptool.cpp",
        "qmlobservertool.cpp",
        "qtoptionspage.cpp",
        "qtparser.cpp",
        "qtversionfactory.cpp",
        "qtversionmanager.cpp"
    ]
Daniel Teske's avatar
Daniel Teske committed
103 104 105

    ProductModule {
        Depends { name: "cpp" }
Christian Kandeler's avatar
Christian Kandeler committed
106
        cpp.includePaths: [ "../../shared" ]
Daniel Teske's avatar
Daniel Teske committed
107
        cpp.defines: [
Orgad Shaneh's avatar
Orgad Shaneh committed
108
            "QMAKE_AS_LIBRARY",
Daniel Teske's avatar
Daniel Teske committed
109
            "PROEVALUATOR_THREAD_SAFE",
Christian Kandeler's avatar
Christian Kandeler committed
110 111
            "QMAKE_BUILTIN_PRFS",
            "PROEVALUATOR_SETENV"
Daniel Teske's avatar
Daniel Teske committed
112 113
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
114
}