qtsupport.qbs 3.14 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
    Depends { name: "Core" }
    Depends { name: "ProjectExplorer" }
    Depends { name: "TextEditor" }
    Depends { name: "QmlJS" }

    Depends { name: "cpp" }
    cpp.includePaths: [
        ".",
        "../../shared",
        "../../shared/proparser",
        "..",
        "../../libs",
        buildDirectory
    ]
Orgad Shaneh's avatar
Orgad Shaneh committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

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

    Group {
        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
58 59 60
    }

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

    ProductModule {
        Depends { name: "cpp" }
Christian Kandeler's avatar
Christian Kandeler committed
111
        cpp.includePaths: [ "../../shared" ]
Daniel Teske's avatar
Daniel Teske committed
112
        cpp.defines: [
Orgad Shaneh's avatar
Orgad Shaneh committed
113
            "QMAKE_AS_LIBRARY",
Daniel Teske's avatar
Daniel Teske committed
114
            "PROEVALUATOR_THREAD_SAFE",
Christian Kandeler's avatar
Christian Kandeler committed
115 116
            "QMAKE_BUILTIN_PRFS",
            "PROEVALUATOR_SETENV"
Daniel Teske's avatar
Daniel Teske committed
117 118
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
119
}