Skip to content

Instantly share code, notes, and snippets.

@sakrist
Last active February 18, 2017 22:52
Show Gist options
  • Save sakrist/4506cda4f5fa62cfd575c34553124aad to your computer and use it in GitHub Desktop.
Save sakrist/4506cda4f5fa62cfd575c34553124aad to your computer and use it in GitHub Desktop.
Build script for G3D on macOS
#!/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