debugger.qbs 8.66 KB
Newer Older
1
import qbs 1.0
Joerg Bornemann's avatar
Joerg Bornemann committed
2 3 4 5

QtcPlugin {
    name: "Debugger"

6
    Depends { name: "Qt"; submodules: ["widgets", "network"] }
7 8 9 10 11 12 13 14
    Depends { name: "Aggregation" }
    Depends { name: "CPlusPlus" }
    Depends { name: "QtcSsh" }
    Depends { name: "QmlDebug" }
    Depends { name: "LanguageUtils" }
    Depends { name: "QmlJS" }
    Depends { name: "Utils" }

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

21 22 23

    Depends {
        name: "Qt.test"
24
        condition: qtc.testsEnabled
25 26 27 28 29 30
    }

    pluginTestDepends: [
        "QmakeProjectManager"
    ]

31
    cpp.includePaths: base.concat([project.sharedSourcesDir + "/registryaccess"])
32
    cpp.enableExceptions: true
Joerg Bornemann's avatar
Joerg Bornemann committed
33

34 35 36 37
    pluginRecommends: [
        "CppEditor"
    ]

38 39 40 41 42 43 44 45 46 47 48
    Group {
        name: "General"
        files: [
            "breakhandler.cpp", "breakhandler.h",
            "breakpoint.cpp", "breakpoint.h",
            "breakwindow.cpp", "breakwindow.h",
            "commonoptionspage.cpp", "commonoptionspage.h",
            "debugger.qrc",
            "debugger_global.h",
            "debuggeractions.cpp", "debuggeractions.h",
            "debuggerconstants.h",
49
            "debuggericons.h",
50 51 52 53
            "debuggercore.h",
            "debuggerdialogs.cpp", "debuggerdialogs.h",
            "debuggerengine.cpp", "debuggerengine.h",
            "debuggerinternalconstants.h",
54 55
            "debuggeritem.cpp", "debuggeritem.h",
            "debuggeritemmanager.cpp", "debuggeritemmanager.h",
56 57 58
            "debuggerkitconfigwidget.cpp", "debuggerkitconfigwidget.h",
            "debuggerkitinformation.cpp", "debuggerkitinformation.h",
            "debuggermainwindow.cpp", "debuggermainwindow.h",
59
            "debuggeroptionspage.cpp", "debuggeroptionspage.h",
60 61 62
            "debuggerplugin.cpp", "debuggerplugin.h",
            "debuggerprotocol.cpp", "debuggerprotocol.h",
            "debuggerrunconfigurationaspect.cpp", "debuggerrunconfigurationaspect.h",
63
            "debuggerruncontrol.cpp", "debuggerruncontrol.h",
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
            "debuggersourcepathmappingwidget.cpp", "debuggersourcepathmappingwidget.h",
            "debuggerstartparameters.h",
            "debuggerstringutils.h",
            "debuggertooltipmanager.cpp", "debuggertooltipmanager.h",
            "disassembleragent.cpp", "disassembleragent.h",
            "disassemblerlines.cpp", "disassemblerlines.h",
            "imageviewer.cpp", "imageviewer.h",
            "loadcoredialog.cpp", "loadcoredialog.h",
            "localsandexpressionswindow.cpp", "localsandexpressionswindow.h",
            "logwindow.cpp", "logwindow.h",
            "memoryagent.cpp", "memoryagent.h",
            "memoryview.cpp", "memoryview.h",
            "moduleshandler.cpp", "moduleshandler.h",
            "moduleswindow.cpp", "moduleswindow.h",
            "outputcollector.cpp", "outputcollector.h",
            "procinterrupt.cpp", "procinterrupt.h",
            "registerhandler.cpp", "registerhandler.h",
            "registerwindow.cpp", "registerwindow.h",
            "snapshothandler.cpp", "snapshothandler.h",
            "snapshotwindow.cpp", "snapshotwindow.h",
            "sourceagent.cpp", "sourceagent.h",
            "sourcefileshandler.cpp", "sourcefileshandler.h",
            "sourcefileswindow.cpp", "sourcefileswindow.h",
            "sourceutils.cpp", "sourceutils.h",
            "stackframe.cpp", "stackframe.h",
            "stackhandler.cpp", "stackhandler.h",
            "stackwindow.cpp", "stackwindow.h",
91
            "terminal.cpp", "terminal.h",
92 93 94 95 96 97 98 99
            "threaddata.h",
            "threadshandler.cpp", "threadshandler.h",
            "threadswindow.cpp", "threadswindow.h",
            "watchdata.cpp", "watchdata.h",
            "watchdelegatewidgets.cpp", "watchdelegatewidgets.h",
            "watchhandler.cpp", "watchhandler.h",
            "watchutils.cpp", "watchutils.h",
            "watchwindow.cpp", "watchwindow.h",
100
            "simplifytype.cpp", "simplifytype.h",
101
            "unstartedappwatcherdialog.cpp", "unstartedappwatcherdialog.h"
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
        ]
    }

    Group {
        name: "cdb"
        prefix: "cdb/"
        files: [
            "bytearrayinputstream.cpp", "bytearrayinputstream.h",
            "cdbengine.cpp", "cdbengine.h",
            "cdboptionspage.cpp", "cdboptionspage.h",
            "cdboptionspagewidget.ui",
            "cdbparsehelpers.cpp", "cdbparsehelpers.h"
        ]
    }

    Group {
        name: "gdb"
        prefix: "gdb/"
        files: [
            "attachgdbadapter.cpp", "attachgdbadapter.h",
            "coregdbadapter.cpp", "coregdbadapter.h",
            "gdbengine.cpp", "gdbengine.h",
124
            "gdboptionspage.cpp",
125
            "gdbplainengine.cpp", "gdbplainengine.h",
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
            "remotegdbserveradapter.cpp", "remotegdbserveradapter.h",
            "startgdbserverdialog.cpp", "startgdbserverdialog.h",
            "termgdbadapter.cpp", "termgdbadapter.h"
        ]
    }

    Group {
        name: "lldb"
        prefix: "lldb/"
        files: [
            "lldbengine.cpp", "lldbengine.h"
        ]
    }

    Group {
        name: "pdb"
        prefix: "pdb/"
        files: ["pdbengine.cpp", "pdbengine.h"]
    }

    Group {
        name: "Name Demangler"
        prefix: "namedemangler/"
        files: [
            "demanglerexceptions.h",
            "globalparsestate.cpp", "globalparsestate.h",
            "namedemangler.cpp", "namedemangler.h",
            "parsetreenodes.cpp", "parsetreenodes.h",
        ]
    }

    Group {
        name: "QML Debugger"
        prefix: "qml/"
        files: [
            "interactiveinterpreter.cpp", "interactiveinterpreter.h",
            "qmlcppengine.cpp", "qmlcppengine.h",
            "qmlengine.cpp", "qmlengine.h",
hjk's avatar
hjk committed
164
            "qmlengineutils.cpp", "qmlengineutils.h",
165
            "qmlinspectoragent.cpp", "qmlinspectoragent.h",
hjk's avatar
hjk committed
166
            "qmlv8debuggerclientconstants.h"
167 168 169
        ]
    }

hjk's avatar
hjk committed
170 171 172 173 174 175 176 177 178 179
     Group {
        name: "Debugger Console"
        prefix: "console/"
        files: [
            "consoleitem.cpp", "consoleitem.h",
            "consoleedit.cpp", "consoleedit.h",
            "consoleitemdelegate.cpp", "consoleitemdelegate.h",
            "consoleitemmodel.cpp", "consoleitemmodel.h",
            "console.cpp", "console.h",
            "consoleproxymodel.cpp", "consoleproxymodel.h",
Christian Kandeler's avatar
Christian Kandeler committed
180
            "consoleview.cpp", "consoleview.h"
hjk's avatar
hjk committed
181 182 183
        ]
    }

184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
    Group {
        name: "shared"
        prefix: "shared/"
        files: [
            "backtrace.cpp", "backtrace.h",
            "cdbsymbolpathlisteditor.cpp",
            "cdbsymbolpathlisteditor.h",
            "hostutils.cpp", "hostutils.h",
            "peutils.cpp", "peutils.h",
            "symbolpathsdialog.ui", "symbolpathsdialog.cpp", "symbolpathsdialog.h"
        ]
    }

    Group {
        name: "Images"
        prefix: "images/"
200 201 202 203 204 205 206
        files: ["*.png", "*.xpm"]
    }

    Group {
        name: "Images/qml"
        prefix: "images/qml/"
        files: ["*.png"]
207
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
208

hjk's avatar
hjk committed
209 210 211 212 213 214
    Group {
        name: "Images/analyzer"
        prefix: "analyzer/images/"
        files: ["*.png"]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
215
    Group {
216
        name: "RegistryAccess"
Joerg Bornemann's avatar
Joerg Bornemann committed
217
        condition: qbs.targetOS.contains("windows")
218
        prefix: project.sharedSourcesDir + "/registryaccess/"
Joerg Bornemann's avatar
Joerg Bornemann committed
219 220
        files: [
            "registryaccess.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
221
            "registryaccess.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
222 223 224 225
        ]
    }

    Group {
226
        name: "RegisterPostMortem"
Joerg Bornemann's avatar
Joerg Bornemann committed
227
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
228 229 230 231 232 233
        files: [
            "registerpostmortemaction.cpp",
            "registerpostmortemaction.h",
        ]
    }

234
    Properties {
Joerg Bornemann's avatar
Joerg Bornemann committed
235
        condition: qbs.targetOS.contains("windows")
236 237 238 239 240 241 242
        cpp.dynamicLibraries: [
            "advapi32",
            "ole32",
            "shell32"
        ]
    }

hjk's avatar
hjk committed
243 244
    Group {
        name: "Analyzer"
245
        prefix: "analyzer/"
hjk's avatar
hjk committed
246
        files: [
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
            "analyzerbase.qrc",
            "analyzerconstants.h",
            "analyzermanager.h",
            "analyzerrunconfigwidget.cpp",
            "analyzerrunconfigwidget.h",
            "analyzerruncontrol.cpp",
            "analyzerruncontrol.h",
            "analyzerstartparameters.h",
            "analyzerutils.cpp",
            "analyzerutils.h",
            "detailederrorview.cpp",
            "detailederrorview.h",
            "diagnosticlocation.cpp",
            "diagnosticlocation.h",
            "startremotedialog.cpp",
            "startremotedialog.h",
hjk's avatar
hjk committed
263 264 265
        ]
    }

266 267
    Group {
        name: "Unit tests"
268
        condition: qtc.testsEnabled
269 270 271 272 273 274 275 276 277 278 279 280
        files: [
            "debuggerunittests.qrc",
        ]
    }

    Group {
        name: "Unit test resources"
        prefix: "unit-tests/"
        fileTags: []
        files: ["**/*"]
    }

281
    Export {
282
        Depends { name: "QtcSsh" }
hjk's avatar
hjk committed
283
        Depends { name: "CPlusPlus" }
Joerg Bornemann's avatar
Joerg Bornemann committed
284 285
    }
}