Skip to content
Snippets Groups Projects
Commit 4a58646b authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Accept CDB_PATH env variable as custom path to CDB installation.

Also, shortened checks on possible CDB locations.

Reviewed-By: Friedemann Kleint
parent 1da8ccae
No related branches found
No related tags found
No related merge requests found
...@@ -4,21 +4,15 @@ ...@@ -4,21 +4,15 @@
win32 { win32 {
contains(QMAKE_CXX, cl) { contains(QMAKE_CXX, cl) {
CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows/sdk" CDB_PATH=$$(CDB_PATH)
isEmpty($$CDB_PATH):CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows/sdk"
!exists ($$CDB_PATH) { !exists($$CDB_PATH):CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows (x86)/sdk"
CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows (x86)/sdk" !exists($$CDB_PATH):CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows (x64)/sdk"
} !exists($$CDB_PATH):CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows 64-bit/sdk"
!exists ($$CDB_PATH) { exists($$CDB_PATH) {
CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows (x64)/sdk"
}
!exists ($$CDB_PATH) {
CDB_PATH="$$(ProgramFiles)/Debugging Tools For Windows 64-bit/sdk"
}
exists ($$CDB_PATH) {
message("Adding support for $$CDB_PATH") message("Adding support for $$CDB_PATH")
DEFINES+=CDB_ENABLED DEFINES+=CDB_ENABLED
...@@ -70,6 +64,6 @@ FORMS += $$PWD/cdboptionspagewidget.ui ...@@ -70,6 +64,6 @@ FORMS += $$PWD/cdboptionspagewidget.ui
} else { } else {
message("Debugging Tools for Windows could not be found in $$CDB_PATH") message("Debugging Tools for Windows could not be found in $$CDB_PATH")
} } # exists($$CDB_PATH)
} } # (QMAKE_CXX, cl)
} } # win32
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment