qtsupport.qbs 3.38 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 32
            "PROEVALUATOR_CUMULATIVE",
            "QMAKE_BUILTIN_PRFS"
Joerg Bornemann's avatar
Joerg Bornemann committed
33 34 35 36
        ])
    }

    files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
37 38 39 40 41 42 43 44 45
        "../../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
46
        "../../shared/proparser/profileevaluator.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
47
        "../../shared/proparser/profileevaluator.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
48
        "../../shared/proparser/proitems.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
49
        "../../shared/proparser/proitems.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
50
        "../../shared/proparser/prowriter.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
51
        "../../shared/proparser/prowriter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
52 53 54 55 56 57
        "../../shared/proparser/proparser.qrc",
        "../../shared/proparser/ioutils.h",
        "../../shared/proparser/ioutils.cpp",
        "qtversioninfo.ui",
        "qtversionmanager.ui",
        "baseqtversion.h",
58 59
        "debugginghelper.cpp",
        "debugginghelper.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
60 61 62 63 64 65 66 67 68 69 70 71 72
        "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
73 74 75 76
        "qtkitconfigwidget.cpp",
        "qtkitconfigwidget.h",
        "qtkitinformation.cpp",
        "qtkitinformation.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
77 78 79 80 81 82 83 84 85 86
        "qtsupport_global.h",
        "qtsupportconstants.h",
        "qtsupportplugin.cpp",
        "qtsupportplugin.h",
        "qtversionfactory.h",
        "qtversionmanager.h",
        "screenshotcropper.cpp",
        "screenshotcropper.h",
        "showbuildlog.ui",
        "baseqtversion.cpp",
87 88 89 90
        "customexecutableconfigurationwidget.cpp",
        "customexecutableconfigurationwidget.h",
        "customexecutablerunconfiguration.cpp",
        "customexecutablerunconfiguration.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
91 92 93 94 95 96 97 98 99 100 101
        "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
102 103 104

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