mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
Tidy build script
This commit is contained in:
parent
1e0d1c2b6d
commit
7acd169bef
@ -1,10 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -e CMakeCache.txt ]; then
|
||||
rm CMakeCache.txt
|
||||
mkdir build_cmake
|
||||
fi
|
||||
mkdir -p build_cmake
|
||||
cd build_cmake
|
||||
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release ..
|
||||
make -j12
|
||||
make -j $(command nproc || echo 12)
|
||||
cd examples
|
||||
cd pybullet
|
||||
if [ -e pybullet.dylib ]; then
|
||||
rm pybullet.so
|
||||
ln -s pybullet.dylib pybullet.so
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user