cdb.pri 1.5 KB
Newer Older
1 2 3
# Detect presence of "Debugging Tools For Windows"
# in case VS compilers are used.      

4
win32 {
5
contains(QMAKE_CXX, cl) {
6 7 8

CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows/sdk"

9 10 11 12
!exists ($$CDB_PATH) {
  CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows (x86)/sdk"
}

13 14 15 16
!exists ($$CDB_PATH) {
  CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows (x64)/sdk"
}

17 18 19 20 21 22 23 24 25 26 27 28 29
exists ($$CDB_PATH) {
message("Experimental: Adding support for $$CDB_PATH")

DEFINES+=CDB_ENABLED

CDB_PLATFORM=i386

INCLUDEPATH*=$$CDB_PATH
INCLUDEPATH*=$$PWD

CDB_LIBPATH=$$CDB_PATH/lib/$$CDB_PLATFORM

HEADERS += \
30
    $$PWD/cdbcom.h \
31
    $$PWD/cdbdebugengine.h \
32
    $$PWD/cdbdebugengine_p.h \
33
    $$PWD/cdbdebugeventcallback.h \
34 35
    $$PWD/cdbdebugoutput.h \
    $$PWD/cdbsymbolgroupcontext.h \
Friedemann Kleint's avatar
Friedemann Kleint committed
36
    $$PWD/cdbstacktracecontext.h \
37
    $$PWD/cdbstackframecontext.h \
38 39
    $$PWD/cdbbreakpoint.h \
    $$PWD/cdbmodules.h \
40 41
    $$PWD/cdbassembler.h \
    $$PWD/cdboptions.h \
42 43
    $$PWD/cdboptionspage.h \
    $$PWD/cdbdumperhelper.h
44 45 46 47

SOURCES += \
    $$PWD/cdbdebugengine.cpp \
    $$PWD/cdbdebugeventcallback.cpp \
48 49
    $$PWD/cdbdebugoutput.cpp \
    $$PWD/cdbsymbolgroupcontext.cpp \
50
    $$PWD/cdbstackframecontext.cpp \
Friedemann Kleint's avatar
Friedemann Kleint committed
51
    $$PWD/cdbstacktracecontext.cpp \
52 53
    $$PWD/cdbbreakpoint.cpp \
    $$PWD/cdbmodules.cpp \
54 55
    $$PWD/cdbassembler.cpp \
    $$PWD/cdboptions.cpp \
56 57
    $$PWD/cdboptionspage.cpp \
    $$PWD/cdbdumperhelper.cpp
58 59

FORMS += $$PWD/cdboptionspagewidget.ui
Friedemann Kleint's avatar
Friedemann Kleint committed
60

61
} else {
62 63
   message("Debugging Tools for Windows could not be found in $$CDB_PATH")
}
64 65
}
}