mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1478 fix win qtc vairables: fixed TOOLS_DIR check
This commit is contained in:
parent
ea64284d7d
commit
17bb1d2fc0
@ -73,8 +73,15 @@ isEmpty(GCS_BUILD_TREE) {
|
|||||||
GCS_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,,
|
GCS_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,,
|
||||||
}
|
}
|
||||||
|
|
||||||
TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
|
# Find the tools directory,
|
||||||
isEmpty(TOOLS_DIR):TOOLS_DIR = $$clean_path($$GCS_SOURCE_TREE/../../tools)
|
# try from Makefile (not run by Qt Creator),
|
||||||
|
TOOLS_DIR = $$(TOOLS_DIR)
|
||||||
|
isEmpty(TOOLS_DIR) {
|
||||||
|
# check for custom enviroment variable,
|
||||||
|
TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
|
||||||
|
# fallback to default location.
|
||||||
|
isEmpty(TOOLS_DIR):TOOLS_DIR = $$clean_path($$GCS_SOURCE_TREE/../../tools)
|
||||||
|
}
|
||||||
|
|
||||||
SDL_DIR = $${TOOLS_DIR}/SDL-1.2.15
|
SDL_DIR = $${TOOLS_DIR}/SDL-1.2.15
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user