Commit 4a58646b authored by Daniel Molkentin's avatar Daniel Molkentin

Accept CDB_PATH env variable as custom path to CDB installation.

Also, shortened checks on possible CDB locations.

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