2015-04-24 21:46:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bullet
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-04-28 23:50:17 +02:00
|
|
|
BULLET_VERSION = 3.09
|
2015-04-24 21:46:11 +02:00
|
|
|
BULLET_SITE = $(call github,bulletphysics,bullet3,$(BULLET_VERSION))
|
|
|
|
BULLET_INSTALL_STAGING = YES
|
2017-03-30 15:43:47 +02:00
|
|
|
BULLET_LICENSE = Zlib
|
2016-12-24 12:37:39 +01:00
|
|
|
BULLET_LICENSE_FILES = LICENSE.txt
|
2015-04-24 21:46:11 +02:00
|
|
|
|
2021-04-30 08:05:45 +02:00
|
|
|
# Disable unit tests.
|
|
|
|
# Don't disable demos apps and Bullet3 library to avoid a build failure:
|
|
|
|
# https://github.com/bulletphysics/bullet3/issues/3143
|
|
|
|
BULLET_CONF_OPTS = -DBUILD_UNIT_TESTS=OFF
|
2015-04-24 21:46:11 +02:00
|
|
|
|
2019-04-29 18:48:44 +02:00
|
|
|
# extras needs dlfcn.h and NPTL (pthread_barrier_init)
|
|
|
|
ifeq ($(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),:y)
|
2019-04-25 22:49:22 +02:00
|
|
|
BULLET_CONF_OPTS += -DBUILD_EXTRAS=ON
|
|
|
|
else
|
|
|
|
BULLET_CONF_OPTS += -DBUILD_EXTRAS=OFF
|
|
|
|
endif
|
|
|
|
|
2019-06-14 23:03:26 +02:00
|
|
|
BULLET_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
BULLET_CXXFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
BULLET_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(BULLET_CXXFLAGS)"
|
|
|
|
|
2015-04-24 21:46:11 +02:00
|
|
|
$(eval $(cmake-package))
|