Romain Naour | 176e408 | 2015-04-24 21:46:11 +0200 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # bullet |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Fabrice Fontaine | 9d9d0cc | 2024-01-05 14:25:08 +0100 | [diff] [blame] | 7 | BULLET_VERSION = 3.25 |
Romain Naour | 176e408 | 2015-04-24 21:46:11 +0200 | [diff] [blame] | 8 | BULLET_SITE = $(call github,bulletphysics,bullet3,$(BULLET_VERSION)) |
| 9 | BULLET_INSTALL_STAGING = YES |
Rahul Bedarkar | 2093053 | 2017-03-30 19:13:47 +0530 | [diff] [blame] | 10 | BULLET_LICENSE = Zlib |
Romain Naour | 10cce5f | 2016-12-24 12:37:39 +0100 | [diff] [blame] | 11 | BULLET_LICENSE_FILES = LICENSE.txt |
Romain Naour | 176e408 | 2015-04-24 21:46:11 +0200 | [diff] [blame] | 12 | |
Fabrice Fontaine | 5f15479 | 2021-04-30 08:05:45 +0200 | [diff] [blame] | 13 | # Disable unit tests. |
| 14 | # Don't disable demos apps and Bullet3 library to avoid a build failure: |
| 15 | # https://github.com/bulletphysics/bullet3/issues/3143 |
| 16 | BULLET_CONF_OPTS = -DBUILD_UNIT_TESTS=OFF |
Romain Naour | 176e408 | 2015-04-24 21:46:11 +0200 | [diff] [blame] | 17 | |
Fabrice Fontaine | 81fa908 | 2019-04-29 18:48:44 +0200 | [diff] [blame] | 18 | # extras needs dlfcn.h and NPTL (pthread_barrier_init) |
| 19 | ifeq ($(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),:y) |
Fabrice Fontaine | ef333f9 | 2019-04-25 22:49:22 +0200 | [diff] [blame] | 20 | BULLET_CONF_OPTS += -DBUILD_EXTRAS=ON |
| 21 | else |
| 22 | BULLET_CONF_OPTS += -DBUILD_EXTRAS=OFF |
| 23 | endif |
| 24 | |
Giulio Benetti | 28a9aec | 2019-06-14 23:03:26 +0200 | [diff] [blame] | 25 | BULLET_CXXFLAGS = $(TARGET_CXXFLAGS) |
| 26 | |
Giulio Benetti | b785de9 | 2021-08-17 23:31:12 +0200 | [diff] [blame] | 27 | ifneq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_101952),) |
Giulio Benetti | 28a9aec | 2019-06-14 23:03:26 +0200 | [diff] [blame] | 28 | BULLET_CXXFLAGS += -O0 |
| 29 | endif |
| 30 | |
| 31 | BULLET_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(BULLET_CXXFLAGS)" |
| 32 | |
Romain Naour | 176e408 | 2015-04-24 21:46:11 +0200 | [diff] [blame] | 33 | $(eval $(cmake-package)) |