mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-1 – Code Rebranding
Rename variables for local tools and installation directory.
This commit is contained in:
parent
9a886d6d72
commit
f6116d7349
10
Makefile
10
Makefile
@ -25,7 +25,7 @@
|
||||
# existance by each sub-make.
|
||||
export TOP_LEVEL_MAKEFILE := TRUE
|
||||
|
||||
# It is possible to set OPENPILOT_DL_DIR and/or OPENPILOT_TOOLS_DIR environment
|
||||
# It is possible to set GCS_DL_DIR and/or GCS_TOOLS_DIR environment
|
||||
# variables to override local tools download and installation directorys. So the
|
||||
# same toolchains can be used for all working copies. Particularly useful for CI
|
||||
# server build agents, but also for local installations.
|
||||
@ -43,8 +43,8 @@ toprel = $(subst $(realpath $(ROOT_DIR))/,,$(abspath $(1)))
|
||||
|
||||
# Set up some macros for common directories within the tree
|
||||
export ROOT_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
|
||||
export DL_DIR := $(if $(OPENPILOT_DL_DIR),$(call slashfix,$(OPENPILOT_DL_DIR)),$(ROOT_DIR)/downloads)
|
||||
export TOOLS_DIR := $(if $(OPENPILOT_TOOLS_DIR),$(call slashfix,$(OPENPILOT_TOOLS_DIR)),$(ROOT_DIR)/tools)
|
||||
export DL_DIR := $(if $(GCS_DL_DIR),$(call slashfix,$(GCS_DL_DIR)),$(ROOT_DIR)/downloads)
|
||||
export TOOLS_DIR := $(if $(GCS_TOOLS_DIR),$(call slashfix,$(GCS_TOOLS_DIR)),$(ROOT_DIR)/tools)
|
||||
export BUILD_DIR := $(ROOT_DIR)/build
|
||||
export PACKAGE_DIR := $(ROOT_DIR)/build/package
|
||||
export DIST_DIR := $(ROOT_DIR)/build/dist
|
||||
@ -1033,7 +1033,7 @@ help:
|
||||
@$(ECHO) " All build output will be placed in $(BUILD_DIR)"
|
||||
@$(ECHO)
|
||||
@$(ECHO) " Tool download and install directories can be changed using environment variables:"
|
||||
@$(ECHO) " OPENPILOT_DL_DIR full path to downloads directory [downloads if not set]"
|
||||
@$(ECHO) " OPENPILOT_TOOLS_DIR full path to installed tools directory [tools if not set]"
|
||||
@$(ECHO) " GCS_DL_DIR full path to downloads directory [downloads if not set]"
|
||||
@$(ECHO) " GCS_TOOLS_DIR full path to installed tools directory [tools if not set]"
|
||||
@$(ECHO) " More info: http://wiki.openpilot.org/display/Doc/OpenPilot+Build+System+Overview"
|
||||
@$(ECHO)
|
||||
|
@ -121,7 +121,7 @@ isEmpty(GCS_BUILD_TREE) {
|
||||
TOOLS_DIR = $$(TOOLS_DIR)
|
||||
isEmpty(TOOLS_DIR) {
|
||||
# check for custom enviroment variable,
|
||||
TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
|
||||
TOOLS_DIR = $$(GCS_TOOLS_DIR)
|
||||
# fallback to default location.
|
||||
isEmpty(TOOLS_DIR):TOOLS_DIR = $$clean_path($$ROOT_DIR/tools)
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
PYTHON_DIR = qt-5.4.1/Tools/mingw491_32/opt/bin
|
||||
|
||||
# Search the python using environment override first
|
||||
OPENPILOT_TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
|
||||
!isEmpty(OPENPILOT_TOOLS_DIR):exists($$OPENPILOT_TOOLS_DIR/$$PYTHON_DIR/python*) {
|
||||
PYTHON = \"$$OPENPILOT_TOOLS_DIR/$$PYTHON_DIR/python\"
|
||||
GCS_TOOLS_DIR = $$(GCS_TOOLS_DIR)
|
||||
!isEmpty(GCS_TOOLS_DIR):exists($$GCS_TOOLS_DIR/$$PYTHON_DIR/python*) {
|
||||
PYTHON = \"$$GCS_TOOLS_DIR/$$PYTHON_DIR/python\"
|
||||
} else {
|
||||
# If not found, search the predefined tools path
|
||||
exists($$ROOT_DIR/tools/$$PYTHON_DIR/python*) {
|
||||
|
@ -16,8 +16,8 @@ rem http://www.mingw.org/wiki/msys
|
||||
rem
|
||||
|
||||
rem Shared directories for toolchains
|
||||
rem set OPENPILOT_DL_DIR=C:/OpenPilot/downloads
|
||||
rem set OPENPILOT_TOOLS_DIR=C:/OpenPilot/tools
|
||||
rem set GCS_DL_DIR=C:/LibrePilot/downloads
|
||||
rem set GCS_TOOLS_DIR=C:/LibrePilot/tools
|
||||
|
||||
rem this should let run MSYS shell on x64
|
||||
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
|
||||
|
Loading…
Reference in New Issue
Block a user