1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00

Merged in filnet/librepilot/tools (pull request #279)

disable osg and osgearth sdk install targets on windows
This commit is contained in:
Alessio Morale 2016-07-16 16:28:49 +02:00
commit e730151a68

View File

@ -587,16 +587,14 @@ endif
.PHONY: mingw_version .PHONY: mingw_version
mingw_version: gcc_version mingw_version: gcc_version
else # Linux or Mac
all_sdk_version: gcc_version
endif endif
.PHONY: gcc_version .PHONY: gcc_version
gcc_version: gcc_version:
-$(V1) gcc --version | head -n1 -$(V1) gcc --version | head -n1
all_sdk_version: gcc_version
############################## ##############################
# #
# Python # Python
@ -821,8 +819,12 @@ $(eval $(call TOOL_INSTALL_TEMPLATE,ccache,$(CCACHE_BUILD_DIR),$(CCACHE_URL),$(C
# #
############################## ##############################
ifneq ($(UNAME), Windows)
$(eval $(call TOOL_INSTALL_TEMPLATE,osg,$(OSG_SDK_DIR),$(OSG_URL),,$(notdir $(OSG_URL)))) $(eval $(call TOOL_INSTALL_TEMPLATE,osg,$(OSG_SDK_DIR),$(OSG_URL),,$(notdir $(OSG_URL))))
endif
ifeq ($(shell [ -d "$(OSG_SDK_DIR)" ] && $(ECHO) "exists"), exists) ifeq ($(shell [ -d "$(OSG_SDK_DIR)" ] && $(ECHO) "exists"), exists)
export OSG_SDK_DIR := $(OSG_SDK_DIR) export OSG_SDK_DIR := $(OSG_SDK_DIR)
else else
@ -840,8 +842,12 @@ osg_version:
# #
############################## ##############################
ifneq ($(UNAME), Windows)
$(eval $(call TOOL_INSTALL_TEMPLATE,osgearth,$(OSGEARTH_SDK_DIR),$(OSGEARTH_URL),,$(notdir $(OSGEARTH_URL)))) $(eval $(call TOOL_INSTALL_TEMPLATE,osgearth,$(OSGEARTH_SDK_DIR),$(OSGEARTH_URL),,$(notdir $(OSGEARTH_URL))))
endif
ifeq ($(shell [ -d "$(OSGEARTH_SDK_DIR)" ] && $(ECHO) "exists"), exists) ifeq ($(shell [ -d "$(OSGEARTH_SDK_DIR)" ] && $(ECHO) "exists"), exists)
export OSGEARTH_SDK_DIR := $(OSGEARTH_SDK_DIR) export OSGEARTH_SDK_DIR := $(OSGEARTH_SDK_DIR)
else else