forked from qt-creator/qt-creator
Moved CDB support into separate directory and enable via config switch
This commit is contained in:
committed by
Friedemann Kleint
parent
158285e500
commit
d9bc54ed75
33
src/plugins/debugger/cdb/cdb.pri
Normal file
33
src/plugins/debugger/cdb/cdb.pri
Normal file
@@ -0,0 +1,33 @@
|
||||
win32 {
|
||||
# ---- Detect Debugging Tools For Windows
|
||||
|
||||
CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows/sdk"
|
||||
|
||||
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 += \
|
||||
$$PWD/cdbdebugengine.h \
|
||||
$$PWD/cdbdebugeventcallback.h \
|
||||
$$PWD/cdbdebugoutput.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/cdbdebugengine.cpp \
|
||||
$$PWD/cdbdebugeventcallback.cpp \
|
||||
$$PWD/cdbdebugoutput.cpp
|
||||
|
||||
LIBS += -L$$CDB_LIBPATH Dbghelp.lib dbgeng.lib
|
||||
|
||||
} else {
|
||||
error("Debugging Tools for Windows could not be found in $$CDB_PATH")
|
||||
}
|
||||
}
|
@@ -85,32 +85,4 @@ HEADERS += $$PWD/modeltest.h
|
||||
DEFINES += USE_MODEL_TEST=1
|
||||
}
|
||||
|
||||
win32 {
|
||||
# ---- Detect Debugging Tools For Windows
|
||||
|
||||
CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows/sdk"
|
||||
|
||||
exists ($$CDB_PATH) {
|
||||
message("Experimental: Adding support for $$CDB_PATH")
|
||||
|
||||
DEFINES+=CDB_ENABLED
|
||||
|
||||
CDB_PLATFORM=i386
|
||||
|
||||
INCLUDEPATH+=$$CDB_PATH
|
||||
CDB_LIBPATH=$$CDB_PATH/lib/$$CDB_PLATFORM
|
||||
|
||||
HEADERS += \
|
||||
cdbdebugengine.h \
|
||||
cdbdebugeventcallback.h \
|
||||
cdbdebugoutput.h
|
||||
|
||||
SOURCES += \
|
||||
cdbdebugengine.cpp \
|
||||
cdbdebugeventcallback.cpp \
|
||||
cdbdebugoutput.cpp
|
||||
|
||||
LIBS += -L$$CDB_LIBPATH Dbghelp.lib dbgeng.lib
|
||||
|
||||
}
|
||||
}
|
||||
CONFIG(cdbdebugger):include(cdb\cdb.pri)
|
||||
|
Reference in New Issue
Block a user