debugger.qbs 9.47 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2 3
import qbs.base 1.0

import "../QtcPlugin.qbs" as QtcPlugin
4
import "../../../qbs/defaults.js" as Defaults
Joerg Bornemann's avatar
Joerg Bornemann committed
5 6 7 8

QtcPlugin {
    name: "Debugger"

Yuchen Deng's avatar
Yuchen Deng committed
9
    Depends { name: "Qt"; submodules: ["widgets", "network", "script"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
10 11
    Depends { name: "Core" }
    Depends { name: "CppTools" }
Orgad Shaneh's avatar
Orgad Shaneh committed
12
    Depends { name: "Find" }
Joerg Bornemann's avatar
Joerg Bornemann committed
13 14 15 16
    Depends { name: "ProjectExplorer" }
    Depends { name: "TextEditor" }
    Depends { name: "CPlusPlus" }
    Depends { name: "QmlJS" }
17
    Depends { name: "QmlDebug" }
18
    Depends { name: "QtcSsh" }
Joerg Bornemann's avatar
Joerg Bornemann committed
19

20
    cpp.includePaths: base.concat([
Joerg Bornemann's avatar
Joerg Bornemann committed
21
        "shared",
Christian Kandeler's avatar
Christian Kandeler committed
22
        "lldblib",
Joerg Bornemann's avatar
Joerg Bornemann committed
23
        "../../shared/json",
24 25
        "../../shared/registryaccess"
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
26

27 28 29 30
    pluginRecommends: [
        "CppEditor"
    ]

31
    Group {
32
        name: "Tests"
33
        condition: Defaults.testsEnabled(qbs)
34
        qbs.install: true
35 36 37 38
        qbs.installDir: "tests/manual/debugger/simple/"
        files: ["../../../tests/manual/debugger/simple/simple.pro"]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
39 40
    files: [
        "basewindow.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
41
        "basewindow.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
42 43 44 45 46 47 48 49 50 51
        "breakhandler.cpp",
        "breakhandler.h",
        "breakpoint.cpp",
        "breakpoint.h",
        "breakpointmarker.cpp",
        "breakpointmarker.h",
        "breakwindow.cpp",
        "breakwindow.h",
        "commonoptionspage.cpp",
        "commonoptionspage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
52
        "debugger.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
53
        "debugger_global.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
54 55 56
        "debuggeractions.cpp",
        "debuggeractions.h",
        "debuggerconstants.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
57 58 59 60 61 62
        "debuggercore.h",
        "debuggerdialogs.cpp",
        "debuggerdialogs.h",
        "debuggerengine.cpp",
        "debuggerengine.h",
        "debuggerinternalconstants.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
63 64 65 66
        "debuggerkitconfigwidget.cpp",
        "debuggerkitconfigwidget.h",
        "debuggerkitinformation.cpp",
        "debuggerkitinformation.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
67 68
        "debuggermainwindow.cpp",
        "debuggermainwindow.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
69
        "debuggerplugin.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
70
        "debuggerplugin.h",
71 72
        "debuggerprotocol.cpp",
        "debuggerprotocol.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
73
        "debuggerruncontrolfactory.h",
Christian Kandeler's avatar
Christian Kandeler committed
74 75
        "debuggerrunconfigurationaspect.cpp",
        "debuggerrunconfigurationaspect.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
76
        "debuggerrunner.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
77 78 79 80 81 82 83 84 85 86 87 88 89
        "debuggerrunner.h",
        "debuggersourcepathmappingwidget.cpp",
        "debuggersourcepathmappingwidget.h",
        "debuggerstartparameters.h",
        "debuggerstreamops.cpp",
        "debuggerstreamops.h",
        "debuggerstringutils.h",
        "debuggertooltipmanager.cpp",
        "debuggertooltipmanager.h",
        "disassembleragent.cpp",
        "disassembleragent.h",
        "disassemblerlines.cpp",
        "disassemblerlines.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
90 91
        "imageviewer.cpp",
        "imageviewer.h",
92 93
        "loadcoredialog.cpp",
        "loadcoredialog.h",
94
        "localsandexpressionsoptionspage.ui",
95 96
        "localsandexpressionswindow.cpp",
        "localsandexpressionswindow.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
        "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",
125 126
        "sourceutils.cpp",
        "sourceutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
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
        "stackframe.cpp",
        "stackframe.h",
        "stackhandler.cpp",
        "stackhandler.h",
        "stackwindow.cpp",
        "stackwindow.h",
        "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",
        "cdb/bytearrayinputstream.cpp",
        "cdb/bytearrayinputstream.h",
        "cdb/cdbengine.cpp",
        "cdb/cdbengine.h",
        "cdb/cdboptionspage.cpp",
        "cdb/cdboptionspage.h",
        "cdb/cdboptionspagewidget.ui",
        "cdb/cdbparsehelpers.cpp",
        "cdb/cdbparsehelpers.h",
        "gdb/abstractgdbprocess.cpp",
        "gdb/abstractgdbprocess.h",
        "gdb/abstractplaingdbadapter.cpp",
        "gdb/abstractplaingdbadapter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
161
        "gdb/attachgdbadapter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
162
        "gdb/attachgdbadapter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
163
        "gdb/classicgdbengine.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
164 165
        "gdb/coregdbadapter.cpp",
        "gdb/coregdbadapter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
166
        "gdb/gdb.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
167
        "gdb/gdbengine.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
168 169
        "gdb/gdbengine.h",
        "gdb/gdboptionspage.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
170 171 172 173 174 175 176 177 178 179 180 181
        "gdb/gdboptionspage.h",
        "gdb/localgdbprocess.cpp",
        "gdb/localgdbprocess.h",
        "gdb/localplaingdbadapter.cpp",
        "gdb/localplaingdbadapter.h",
        "gdb/pythongdbengine.cpp",
        "gdb/remotegdbprocess.cpp",
        "gdb/remotegdbprocess.h",
        "gdb/remotegdbserveradapter.cpp",
        "gdb/remotegdbserveradapter.h",
        "gdb/remoteplaingdbadapter.cpp",
        "gdb/remoteplaingdbadapter.h",
182 183
        "gdb/startgdbserverdialog.cpp",
        "gdb/startgdbserverdialog.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
184 185
        "gdb/termgdbadapter.cpp",
        "gdb/termgdbadapter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
        "images/breakpoint_16.png",
        "images/breakpoint_24.png",
        "images/breakpoint_disabled_16.png",
        "images/breakpoint_disabled_24.png",
        "images/breakpoint_disabled_32.png",
        "images/breakpoint_pending_16.png",
        "images/breakpoint_pending_24.png",
        "images/debugger_breakpoints.png",
        "images/debugger_continue.png",
        "images/debugger_continue_32.png",
        "images/debugger_continue_small.png",
        "images/debugger_empty_14.png",
        "images/debugger_interrupt.png",
        "images/debugger_interrupt_32.png",
        "images/debugger_interrupt_small.png",
        "images/debugger_reversemode_16.png",
        "images/debugger_singleinstructionmode.png",
        "images/debugger_snapshot_small.png",
        "images/debugger_start.png",
        "images/debugger_start_small.png",
        "images/debugger_stepinto_small.png",
        "images/debugger_steponeproc_small.png",
        "images/debugger_stepout_small.png",
        "images/debugger_stepover_small.png",
        "images/debugger_stepoverproc_small.png",
        "images/debugger_stop.png",
        "images/debugger_stop_32.png",
        "images/debugger_stop_small.png",
        "images/location_16.png",
        "images/location_24.png",
        "images/tracepoint.png",
        "images/watchpoint.png",
Christian Kandeler's avatar
Christian Kandeler committed
218 219
        "lldb/lldbengine.cpp",
        "lldb/lldbengine.h",
Christian Kandeler's avatar
Christian Kandeler committed
220 221 222 223
        "lldblib/ipcenginehost.cpp",
        "lldblib/ipcenginehost.h",
        "lldblib/lldbenginehost.cpp",
        "lldblib/lldbenginehost.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
224 225 226 227 228 229 230
        "namedemangler/demanglerexceptions.h",
        "namedemangler/globalparsestate.cpp",
        "namedemangler/globalparsestate.h",
        "namedemangler/namedemangler.cpp",
        "namedemangler/namedemangler.h",
        "namedemangler/parsetreenodes.cpp",
        "namedemangler/parsetreenodes.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
231 232
        "pdb/pdbengine.cpp",
        "pdb/pdbengine.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
233
        "qml/baseqmldebuggerclient.cpp",
234
        "qml/baseqmldebuggerclient.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
235
        "qml/interactiveinterpreter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
236 237
        "qml/interactiveinterpreter.h",
        "qml/qmladapter.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
238
        "qml/qmladapter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
239
        "qml/qmlcppengine.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
240 241 242
        "qml/qmlcppengine.h",
        "qml/qmlengine.cpp",
        "qml/qmlengine.h",
243 244 245 246 247 248
        "qml/qmlinspectoradapter.cpp",
        "qml/qmlinspectoradapter.h",
        "qml/qmlinspectoragent.cpp",
        "qml/qmlinspectoragent.h",
        "qml/qmllivetextpreview.cpp",
        "qml/qmllivetextpreview.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
249 250 251 252 253
        "qml/qmlv8debuggerclient.cpp",
        "qml/qmlv8debuggerclient.h",
        "qml/qmlv8debuggerclientconstants.h",
        "qml/qscriptdebuggerclient.cpp",
        "qml/qscriptdebuggerclient.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
254 255 256 257 258 259 260 261
        "script/scriptengine.cpp",
        "script/scriptengine.h",
        "shared/backtrace.cpp",
        "shared/backtrace.h",
        "shared/cdbsymbolpathlisteditor.cpp",
        "shared/cdbsymbolpathlisteditor.h",
        "shared/hostutils.cpp",
        "shared/hostutils.h",
262 263
        "shared/peutils.cpp",
        "shared/peutils.h",
264 265 266
        "shared/symbolpathsdialog.ui",
        "shared/symbolpathsdialog.cpp",
        "shared/symbolpathsdialog.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
267 268 269
    ]

    Group {
270
        name: "RegistryAccess"
Joerg Bornemann's avatar
Joerg Bornemann committed
271 272 273 274
        condition: qbs.targetOS == "windows"
        prefix: "../../shared/registryaccess/"
        files: [
            "registryaccess.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
275
            "registryaccess.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
276 277 278 279
        ]
    }

    Group {
280
        name: "RegisterPostMortem"
Joerg Bornemann's avatar
Joerg Bornemann committed
281 282 283 284 285 286 287 288
        condition: qbs.targetOS == "windows"
        files: [
            "registerpostmortemaction.cpp",
            "registerpostmortemaction.h",
        ]
    }

    Group {
289
        name: "LLDBOptions"
Joerg Bornemann's avatar
Joerg Bornemann committed
290 291
        condition: qbs.targetOS == "mac"
        files: [
Christian Kandeler's avatar
Christian Kandeler committed
292 293 294
            "lldblib/lldboptionspage.cpp",
            "lldblib/lldboptionspage.h",
            "lldblib/lldboptionspagewidget.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
295 296 297
        ]
    }

298 299 300 301 302 303 304 305 306
    Properties {
        condition: qbs.targetOS == "windows"
        cpp.dynamicLibraries: [
            "advapi32",
            "ole32",
            "shell32"
        ]
    }

307
    Export {
Joerg Bornemann's avatar
Joerg Bornemann committed
308
        Depends { name: "cpp" }
309
        Depends { name: "QtcSsh" }
Joerg Bornemann's avatar
Joerg Bornemann committed
310 311 312
        cpp.includePaths: ["."]
    }
}