debugger.qbs 9.61 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

QtcPlugin {
    name: "Debugger"
8
    type: base.concat(["installed_content"])
Joerg Bornemann's avatar
Joerg Bornemann committed
9

Yuchen Deng's avatar
Yuchen Deng committed
10
    Depends { name: "Qt"; submodules: ["widgets", "network", "script"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
11 12
    Depends { name: "Core" }
    Depends { name: "CppTools" }
13
    Depends { name: "QmlJSTools" }
Orgad Shaneh's avatar
Orgad Shaneh committed
14
    Depends { name: "Find" }
Joerg Bornemann's avatar
Joerg Bornemann committed
15 16 17 18
    Depends { name: "ProjectExplorer" }
    Depends { name: "TextEditor" }
    Depends { name: "CPlusPlus" }
    Depends { name: "QmlJS" }
19
    Depends { name: "QmlDebug" }
20
    Depends { name: "QtcSsh" }
Joerg Bornemann's avatar
Joerg Bornemann committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34

    Depends { name: "cpp" }
    cpp.includePaths: [
        ".",
        "shared",
        "lldb",
        "..",
        "../../libs",
        "../../shared/json",
        buildDirectory,
        "../../libs/utils",
        "../../shared/registryaccess/"
    ]

35
    Group {
36
        condition: Defaults.testsEnabled(qbs)
37 38 39 40 41
        qbs.installDir: "tests/manual/debugger/simple/"
        fileTags: ["install"]
        files: ["../../../tests/manual/debugger/simple/simple.pro"]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
42 43
    files: [
        "basewindow.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
44
        "basewindow.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
45 46 47 48 49 50 51 52 53 54 55
        "breakhandler.cpp",
        "breakhandler.h",
        "breakpoint.cpp",
        "breakpoint.h",
        "breakpointmarker.cpp",
        "breakpointmarker.h",
        "breakwindow.cpp",
        "breakwindow.h",
        "commonoptionspage.cpp",
        "commonoptionspage.h",
        "commonoptionspage.ui",
Orgad Shaneh's avatar
Orgad Shaneh committed
56
        "debugger.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
57
        "debugger_global.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
58 59 60
        "debuggeractions.cpp",
        "debuggeractions.h",
        "debuggerconstants.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
61 62 63 64 65 66
        "debuggercore.h",
        "debuggerdialogs.cpp",
        "debuggerdialogs.h",
        "debuggerengine.cpp",
        "debuggerengine.h",
        "debuggerinternalconstants.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
67 68 69 70
        "debuggerkitconfigwidget.cpp",
        "debuggerkitconfigwidget.h",
        "debuggerkitinformation.cpp",
        "debuggerkitinformation.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
71 72
        "debuggermainwindow.cpp",
        "debuggermainwindow.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
73
        "debuggerplugin.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
74
        "debuggerplugin.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
75 76
        "debuggerruncontrolfactory.h",
        "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",
90 91
        "loadcoredialog.cpp",
        "loadcoredialog.h",
92
        "localsandexpressionsoptionspage.ui",
93 94
        "localsandexpressionswindow.cpp",
        "localsandexpressionswindow.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
95 96 97 98 99 100 101 102 103 104 105 106 107 108
        "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",
Orgad Shaneh's avatar
Orgad Shaneh committed
109
        "qtmessagelogeditor.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
110
        "qtmessagelogeditor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
111
        "qtmessageloghandler.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
112
        "qtmessageloghandler.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
113 114
        "qtmessagelogitemdelegate.cpp",
        "qtmessagelogitemdelegate.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
115
        "qtmessagelogproxymodel.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
116
        "qtmessagelogproxymodel.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
117
        "qtmessagelogview.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
118 119 120
        "qtmessagelogview.h",
        "qtmessagelogwindow.cpp",
        "qtmessagelogwindow.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
121 122 123 124 125 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 164 165 166 167 168 169 170
        "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",
        "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/cdboptions.cpp",
        "cdb/cdboptions.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
171
        "gdb/attachgdbadapter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
172
        "gdb/attachgdbadapter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
173
        "gdb/classicgdbengine.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
174 175
        "gdb/coregdbadapter.cpp",
        "gdb/coregdbadapter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
176
        "gdb/gdb.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
177
        "gdb/gdbengine.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
178
        "gdb/gdbengine.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
179 180
        "gdb/gdbmi.cpp",
        "gdb/gdbmi.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
181
        "gdb/gdboptionspage.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
182 183 184 185 186 187 188 189 190 191 192 193
        "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",
194 195
        "gdb/startgdbserverdialog.cpp",
        "gdb/startgdbserverdialog.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
196 197
        "gdb/termgdbadapter.cpp",
        "gdb/termgdbadapter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
        "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",
Orgad Shaneh's avatar
Orgad Shaneh committed
230 231 232 233 234 235 236 237 238 239 240
        "lldb/ipcenginehost.cpp",
        "lldb/ipcenginehost.h",
        "lldb/lldbenginehost.cpp",
        "lldb/lldbenginehost.h",
        "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
241 242
        "pdb/pdbengine.cpp",
        "pdb/pdbengine.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
243
        "qml/baseqmldebuggerclient.cpp",
244
        "qml/baseqmldebuggerclient.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
245
        "qml/interactiveinterpreter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
246 247
        "qml/interactiveinterpreter.h",
        "qml/qmladapter.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
248
        "qml/qmladapter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
249
        "qml/qmlcppengine.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
250 251 252
        "qml/qmlcppengine.h",
        "qml/qmlengine.cpp",
        "qml/qmlengine.h",
253 254 255 256 257 258
        "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
259 260 261 262 263
        "qml/qmlv8debuggerclient.cpp",
        "qml/qmlv8debuggerclient.h",
        "qml/qmlv8debuggerclientconstants.h",
        "qml/qscriptdebuggerclient.cpp",
        "qml/qscriptdebuggerclient.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
        "script/scriptengine.cpp",
        "script/scriptengine.h",
        "shared/backtrace.cpp",
        "shared/backtrace.h",
        "shared/cdbsymbolpathlisteditor.cpp",
        "shared/cdbsymbolpathlisteditor.h",
        "shared/hostutils.cpp",
        "shared/hostutils.h",
    ]

    Group {
        condition: qbs.targetOS == "windows"
        prefix: "../../shared/registryaccess/"
        files: [
            "registryaccess.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
279
            "registryaccess.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
280 281 282 283 284 285 286 287 288
        ]
    }

    Group {
        condition: qbs.targetOS == "windows"
        files: [
            "registerpostmortemaction.cpp",
            "registerpostmortemaction.h",
            "shared/peutils.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
289
            "shared/peutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
290 291 292 293 294 295 296 297
        ]
    }

    Group {
        condition: qbs.targetOS == "mac"
        files: [
            "lldb/lldboptionspage.cpp",
            "lldb/lldboptionspage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
298
            "lldb/lldboptionspagewidget.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
299 300 301
        ]
    }

302 303 304 305 306 307 308 309 310
    Properties {
        condition: qbs.targetOS == "windows"
        cpp.dynamicLibraries: [
            "advapi32",
            "ole32",
            "shell32"
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
311
    ProductModule {
Joerg Bornemann's avatar
Joerg Bornemann committed
312
        Depends { name: "cpp" }
313
        Depends { name: "QtcSsh" }
Joerg Bornemann's avatar
Joerg Bornemann committed
314 315 316
        cpp.includePaths: ["."]
    }
}