1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-11 19: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

@ -97,7 +97,7 @@ ifeq ($(UNAME), Linux)
OSG_URL := $(TOOLS_URL)/osg-3.5.3-linux-x64-qt-$(QT_VERSION).tar.gz OSG_URL := $(TOOLS_URL)/osg-3.5.3-linux-x64-qt-$(QT_VERSION).tar.gz
OSGEARTH_URL := $(TOOLS_URL)/osgearth-2.7-linux-x64-qt-$(QT_VERSION).tar.gz OSGEARTH_URL := $(TOOLS_URL)/osgearth-2.7-linux-x64-qt-$(QT_VERSION).tar.gz
else else
# x32 for linux no longer provided as pre-built binaries. # x32 for linux no longer provided as pre-built binaries.
endif endif
UNCRUSTIFY_URL := $(TOOLS_URL)/uncrustify-0.60.tar.gz UNCRUSTIFY_URL := $(TOOLS_URL)/uncrustify-0.60.tar.gz
DOXYGEN_URL := $(TOOLS_URL)/doxygen-1.8.3.1.src.tar.gz DOXYGEN_URL := $(TOOLS_URL)/doxygen-1.8.3.1.src.tar.gz
@ -121,7 +121,7 @@ else ifeq ($(UNAME), Windows)
DOXYGEN_URL := $(TOOLS_URL)/doxygen-1.8.3.1-windows.tar.bz2 DOXYGEN_URL := $(TOOLS_URL)/doxygen-1.8.3.1-windows.tar.bz2
endif endif
GTEST_URL := $(TOOLS_URL)/gtest-1.7.0.zip GTEST_URL := $(TOOLS_URL)/gtest-1.7.0.zip
CCACHE_URL := http://samba.org/ftp/ccache/ccache-3.2.2.tar.bz2 CCACHE_URL := http://samba.org/ftp/ccache/ccache-3.2.2.tar.bz2
CCACHE_MD5_URL := $(TOOLS_URL)/ccache-3.2.2.tar.bz2.md5 CCACHE_MD5_URL := $(TOOLS_URL)/ccache-3.2.2.tar.bz2.md5
@ -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,7 +819,11 @@ $(eval $(call TOOL_INSTALL_TEMPLATE,ccache,$(CCACHE_BUILD_DIR),$(CCACHE_URL),$(C
# #
############################## ##############################
$(eval $(call TOOL_INSTALL_TEMPLATE,osg,$(OSG_SDK_DIR),$(OSG_URL),,$(notdir $(OSG_URL)))) ifneq ($(UNAME), Windows)
$(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)
@ -840,7 +842,11 @@ osg_version:
# #
############################## ##############################
$(eval $(call TOOL_INSTALL_TEMPLATE,osgearth,$(OSGEARTH_SDK_DIR),$(OSGEARTH_URL),,$(notdir $(OSGEARTH_URL)))) ifneq ($(UNAME), Windows)
$(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)