Last active
February 18, 2017 22:52
-
-
Save sakrist/4506cda4f5fa62cfd575c34553124aad to your computer and use it in GitHub Desktop.
Build script for G3D on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# locate file next to `buildg3d` | |
local_path=`pwd` | |
g3d="${local_path}/../" | |
export G3D10DATA=$g3d/G3D10/data-files:$g3d/data10/common:$g3d/data10/game:$g3d/data10/research:$g3d/G3D10/data-files | |
export PATH=$PATH:$g3d/G3D10/bin | |
export PATH=$PATH:$g3d/G3D10/build/bin | |
export INCLUDE=$INCLUDE:$g3d/G3D10/build/include | |
export INCLUDE=$INCLUDE:$g3d/G3D10/fmod/include | |
export LIBRARY=$LIBRARY:$g3d/G3D10/build/lib | |
./buildg3d lib data | |
cp -R "${local_path}/tbb/include/tbb" "${local_path}/build/include/tbb" | |
mv "${local_path}/build/lib/libembree.dylib" "${local_path}/build/lib/libembree.2.dylib" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment