parent
0bbc1d1865
commit
a58fe28cff
@ -0,0 +1,22 @@
|
||||
This file is part of MXE.
|
||||
See index.html for further information.
|
||||
|
||||
--- a/CMakeLists.txt Sat Sep 14 11:25:52 2013 -0700
|
||||
+++ b/CMakeLists.txt Fri Sep 27 15:03:58 2013 +1000
|
||||
@@ -402,14 +402,14 @@
|
||||
## the following are directories where stuff will be installed to
|
||||
SET(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/bullet/" CACHE PATH "The subdirectory to the header prefix")
|
||||
SET(PKGCONFIG_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/" CACHE STRING "Base directory for pkgconfig files")
|
||||
- IF(NOT WIN32)
|
||||
+
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/bullet.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/bullet.pc @ONLY)
|
||||
INSTALL(
|
||||
FILES
|
||||
${CMAKE_CURRENT_BINARY_DIR}/bullet.pc
|
||||
DESTINATION
|
||||
${PKGCONFIG_INSTALL_PREFIX})
|
||||
- ENDIF(NOT WIN32)
|
||||
+
|
||||
ENDIF(INSTALL_LIBS)
|
||||
|
||||
#INSTALL of other files requires CMake 2.6
|
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* This file is part of MXE.
|
||||
* See index.html for further information.
|
||||
*/
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||
|
||||
#include <btBulletDynamicsCommon.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
btBroadphaseInterface* broadphase = new btDbvtBroadphase();
|
||||
btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration();
|
||||
btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration);
|
||||
btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver();
|
||||
btDiscreteDynamicsWorld* dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher, broadphase, solver, collisionConfiguration);
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
delete dynamicsWorld;
|
||||
delete solver;
|
||||
delete dispatcher;
|
||||
delete collisionConfiguration;
|
||||
delete broadphase;
|
||||
|
||||
return 0;
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
# This file is part of MXE.
|
||||
# See index.html for further information.
|
||||
|
||||
PKG := bullet
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 2.82-r2704
|
||||
$(PKG)_CHECKSUM := a0867257b9b18e9829bbeb4c6c5872a5b29d1d33
|
||||
$(PKG)_SUBDIR := bullet-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := bullet-$($(PKG)_VERSION).tgz
|
||||
$(PKG)_URL := https://bullet.googlecode.com/files/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := gcc
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'http://code.google.com/p/bullet/downloads/list?sort=-uploaded' | \
|
||||
$(SED) -n 's,.*bullet-\([0-9][^<]*\)\.tgz,\1,p' | \
|
||||
head -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && cmake . \
|
||||
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
|
||||
-DINSTALL_LIBS=ON \
|
||||
-DBUILD_CPU_DEMOS=OFF \
|
||||
-DBUILD_DEMOS=OFF \
|
||||
-DBUILD_EXTRAS=OFF \
|
||||
-DBUILD_MULTITHREADING=OFF \
|
||||
-DBUILD_UNIT_TESTS=OFF \
|
||||
-DUSE_CUSTOM_VECOR_MATH=OFF \
|
||||
-DUSE_DOUBLE_PRECISION=OFF \
|
||||
-DUSE_GLUT=OFF \
|
||||
-DUSE_GRAPHICAL_BENCHMARK=OFF
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1
|
||||
|
||||
'$(TARGET)-g++' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
||||
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
|
||||
endef
|
Loading…
Reference in new issue