2020-09-23 19:34:31 +00:00
|
|
|
set -x -e o pipefail
|
2020-05-30 20:14:33 +00:00
|
|
|
|
|
|
|
|
2020-09-22 19:16:49 +00:00
|
|
|
GH_MYMAKE_ARGS="-fPIC"
|
2020-05-30 20:14:33 +00:00
|
|
|
|
|
|
|
HYPERROGUE_USE_GLEW=$GH_HYP_GLEW
|
|
|
|
export HYPERROGUE_USE_GLEW=${HYPERROGUE_USE_GLEW: -1}
|
|
|
|
|
|
|
|
HYPERROGUE_USE_PNG=$GH_HYP_PNG
|
|
|
|
export HYPERROGUE_USE_PNG=${HYPERROGUE_USE_PNG: -1}
|
|
|
|
|
|
|
|
HYPERROGUE_USE_ROGUEVIZ=$GH_HYP_RVIZ
|
|
|
|
export HYPERROGUE_USE_ROGUEVIZ=${HYPERROGUE_USE_ROGUEVIZ: -1}
|
|
|
|
if [[ "$GH_HYP_RVIZ" == "rviz_1" ]]; then
|
2020-09-22 16:57:36 +00:00
|
|
|
GH_MYMAKE_ARGS+=" -std=c++17 -rv"
|
2020-05-30 20:14:33 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
export CC=$GH_COMPILER
|
|
|
|
export CXX=${CC%cc}++
|
|
|
|
|
|
|
|
if [[ "$GH_BUILDSYS" == "makefile" ]]; then
|
2021-03-21 21:40:06 +00:00
|
|
|
make
|
2020-05-30 20:14:33 +00:00
|
|
|
elif [[ "$GH_BUILDSYS" == "mymake" ]]; then
|
2021-03-21 21:40:06 +00:00
|
|
|
make mymake
|
2020-05-30 20:14:33 +00:00
|
|
|
./mymake $GH_MYMAKE_ARGS
|
|
|
|
mv hyper hyperrogue
|
|
|
|
else
|
2020-09-23 19:34:31 +00:00
|
|
|
echo 'unknown build system'
|
|
|
|
exit 1
|
2020-05-30 20:14:33 +00:00
|
|
|
fi
|