debugger.qbs 9.08 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: "Debugger"

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

20
    cpp.includePaths: base.concat(["../../shared/registryaccess"])
Joerg Bornemann's avatar
Joerg Bornemann committed
21

22 23 24 25
    pluginRecommends: [
        "CppEditor"
    ]

26
    Group {
27
        name: "Tests"
28
        condition: project.testsEnabled
29
        qbs.install: true
30 31 32 33
        qbs.installDir: "tests/manual/debugger/simple/"
        files: ["../../../tests/manual/debugger/simple/simple.pro"]
    }

34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
    Group {
        name: "General"
        files: [
            "basewindow.cpp", "basewindow.h",
            "breakhandler.cpp", "breakhandler.h",
            "breakpoint.cpp", "breakpoint.h",
            "breakpointmarker.cpp", "breakpointmarker.h",
            "breakwindow.cpp", "breakwindow.h",
            "commonoptionspage.cpp", "commonoptionspage.h",
            "debugger.qrc",
            "debugger_global.h",
            "debuggeractions.cpp", "debuggeractions.h",
            "debuggerconstants.h",
            "debuggercore.h",
            "debuggerdialogs.cpp", "debuggerdialogs.h",
            "debuggerengine.cpp", "debuggerengine.h",
            "debuggerinternalconstants.h",
            "debuggerkitconfigwidget.cpp", "debuggerkitconfigwidget.h",
            "debuggerkitinformation.cpp", "debuggerkitinformation.h",
            "debuggermainwindow.cpp", "debuggermainwindow.h",
            "debuggerplugin.cpp", "debuggerplugin.h",
            "debuggerprotocol.cpp", "debuggerprotocol.h",
            "debuggerruncontrolfactory.h",
            "debuggerrunconfigurationaspect.cpp", "debuggerrunconfigurationaspect.h",
            "debuggerrunner.cpp", "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",
            "imageviewer.cpp", "imageviewer.h",
            "loadcoredialog.cpp", "loadcoredialog.h",
            "localsandexpressionsoptionspage.ui",
            "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",
            "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",
        ]
    }

    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",
            "classicgdbengine.cpp",
            "coregdbadapter.cpp", "coregdbadapter.h",
            "gdb.qrc",
            "gdbengine.cpp", "gdbengine.h",
            "gdboptionspage.cpp", "gdboptionspage.h",
121
            "gdbprocess.cpp", "gdbprocess.h",
122
            "gdbplainengine.cpp", "gdbplainengine.h",
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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
            "pythongdbengine.cpp",
            "remotegdbserveradapter.cpp", "remotegdbserveradapter.h",
            "startgdbserverdialog.cpp", "startgdbserverdialog.h",
            "termgdbadapter.cpp", "termgdbadapter.h"
        ]
    }

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

    Group {
        name: "lldblib"
        id: lldblib
        prefix: "lldblib/"
        files: [
            "ipcenginehost.cpp", "ipcenginehost.h",
            "lldbenginehost.cpp", "lldbenginehost.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: [
            "baseqmldebuggerclient.cpp", "baseqmldebuggerclient.h",
            "interactiveinterpreter.cpp", "interactiveinterpreter.h",
            "qmladapter.cpp", "qmladapter.h",
            "qmlcppengine.cpp", "qmlcppengine.h",
            "qmlengine.cpp", "qmlengine.h",
            "qmlinspectoradapter.cpp", "qmlinspectoradapter.h",
            "qmlinspectoragent.cpp", "qmlinspectoragent.h",
            "qmllivetextpreview.cpp", "qmllivetextpreview.h",
            "qmlv8debuggerclient.cpp", "qmlv8debuggerclient.h",
            "qmlv8debuggerclientconstants.h",
            "qscriptdebuggerclient.cpp", "qscriptdebuggerclient.h"
        ]
    }

    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/"
        files: [
            "breakpoint_16.png",
            "breakpoint_24.png",
            "breakpoint_disabled_16.png",
            "breakpoint_disabled_24.png",
            "breakpoint_disabled_32.png",
            "breakpoint_pending_16.png",
            "breakpoint_pending_24.png",
            "debugger_breakpoints.png",
            "debugger_continue.png",
            "debugger_continue_32.png",
            "debugger_continue_small.png",
            "debugger_empty_14.png",
            "debugger_interrupt.png",
            "debugger_interrupt_32.png",
            "debugger_interrupt_small.png",
            "debugger_reversemode_16.png",
            "debugger_singleinstructionmode.png",
            "debugger_snapshot_small.png",
            "debugger_start.png",
            "debugger_start_small.png",
            "debugger_stepinto_small.png",
            "debugger_steponeproc_small.png",
            "debugger_stepout_small.png",
            "debugger_stepover_small.png",
            "debugger_stepoverproc_small.png",
            "debugger_stop.png",
            "debugger_stop_32.png",
            "debugger_stop_small.png",
            "location_16.png",
            "location_24.png",
            "tracepoint.png",
            "watchpoint.png",
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
234 235

    Group {
236
        name: "RegistryAccess"
Joerg Bornemann's avatar
Joerg Bornemann committed
237
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
238 239 240
        prefix: "../../shared/registryaccess/"
        files: [
            "registryaccess.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
241
            "registryaccess.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
242 243 244 245
        ]
    }

    Group {
246
        name: "RegisterPostMortem"
Joerg Bornemann's avatar
Joerg Bornemann committed
247
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
248 249 250 251 252 253 254
        files: [
            "registerpostmortemaction.cpp",
            "registerpostmortemaction.h",
        ]
    }

    Group {
255
        name: "LLDBOptions"
Joerg Bornemann's avatar
Joerg Bornemann committed
256
        condition: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
257
        files: [
Christian Kandeler's avatar
Christian Kandeler committed
258 259 260
            "lldblib/lldboptionspage.cpp",
            "lldblib/lldboptionspage.h",
            "lldblib/lldboptionspagewidget.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
261 262 263
        ]
    }

264
    Properties {
Joerg Bornemann's avatar
Joerg Bornemann committed
265
        condition: qbs.targetOS.contains("windows")
266 267 268 269 270 271 272
        cpp.dynamicLibraries: [
            "advapi32",
            "ole32",
            "shell32"
        ]
    }

273
    Export {
Joerg Bornemann's avatar
Joerg Bornemann committed
274
        Depends { name: "cpp" }
275
        Depends { name: "QtcSsh" }
Joerg Bornemann's avatar
Joerg Bornemann committed
276 277
    }
}