1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# bullet 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunBULLET_VERSION = 3.09 8*4882a593SmuzhiyunBULLET_SITE = $(call github,bulletphysics,bullet3,$(BULLET_VERSION)) 9*4882a593SmuzhiyunBULLET_INSTALL_STAGING = YES 10*4882a593SmuzhiyunBULLET_LICENSE = Zlib 11*4882a593SmuzhiyunBULLET_LICENSE_FILES = LICENSE.txt 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun# Disable unit tests. 14*4882a593Smuzhiyun# Don't disable demos apps and Bullet3 library to avoid a build failure: 15*4882a593Smuzhiyun# https://github.com/bulletphysics/bullet3/issues/3143 16*4882a593SmuzhiyunBULLET_CONF_OPTS = -DBUILD_UNIT_TESTS=OFF 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# extras needs dlfcn.h and NPTL (pthread_barrier_init) 19*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),:y) 20*4882a593SmuzhiyunBULLET_CONF_OPTS += -DBUILD_EXTRAS=ON 21*4882a593Smuzhiyunelse 22*4882a593SmuzhiyunBULLET_CONF_OPTS += -DBUILD_EXTRAS=OFF 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunBULLET_CXXFLAGS = $(TARGET_CXXFLAGS) 26*4882a593Smuzhiyun 27*4882a593Smuzhiyunifneq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_101952),) 28*4882a593SmuzhiyunBULLET_CXXFLAGS += -O0 29*4882a593Smuzhiyunendif 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunBULLET_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(BULLET_CXXFLAGS)" 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun$(eval $(cmake-package)) 34