2015-12-17 23:18:18 +01:00
|
|
|
|
################################################################################
|
|
|
|
|
#
|
|
|
|
|
# assimp
|
|
|
|
|
#
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
ASSIMP_VERSION = v3.2
|
|
|
|
|
ASSIMP_SITE = $(call github,assimp,assimp,$(ASSIMP_VERSION))
|
2017-03-30 15:43:38 +02:00
|
|
|
|
ASSIMP_LICENSE = BSD-3-Clause
|
2015-12-17 23:18:18 +01:00
|
|
|
|
ASSIMP_LICENSE_FILES = LICENSE
|
|
|
|
|
ASSIMP_DEPENDENCIES = zlib
|
|
|
|
|
ASSIMP_INSTALL_STAGING = YES
|
|
|
|
|
|
2016-07-31 20:07:43 +02:00
|
|
|
|
# relocation truncated to fit: R_68K_GOT16O
|
|
|
|
|
ifeq ($(BR2_m68k),y)
|
|
|
|
|
ASSIMP_CXXFLAGS += -mxgot
|
|
|
|
|
endif
|
|
|
|
|
|
2017-02-26 23:38:26 +01:00
|
|
|
|
# workaround SuperH compiler failure when static linking (i.e -fPIC is
|
|
|
|
|
# not passed) in gcc versions 5.x or older. The -Os optimization level
|
|
|
|
|
# causes a "unable to find a register to spill in class
|
|
|
|
|
# ‘GENERAL_REGS’" error. -O2 works fine.
|
2017-02-27 22:53:24 +01:00
|
|
|
|
ifeq ($(BR2_sh):$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:y:)
|
2017-02-26 23:38:26 +01:00
|
|
|
|
ASSIMP_CXXFLAGS += -O2
|
|
|
|
|
endif
|
|
|
|
|
|
2016-10-15 11:44:31 +02:00
|
|
|
|
ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF \
|
|
|
|
|
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)"
|
2015-12-17 23:18:18 +01:00
|
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|