Skip to content

Commit

Permalink
update build.sh to current master
Browse files Browse the repository at this point in the history
  • Loading branch information
madratman committed Jul 24, 2020
1 parent 639b213 commit ab2bf3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ cmake_build/
/boost
/[Ee]igen
/build_debug
/build_gcc_debug
/build_release
/build_gcc_release
/cmake/CPackSourceConfig.cmake
/cmake/CPackConfig.cmake
/cmake/arch.c
Expand Down
21 changes: 12 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" >/dev/null

set -e
set -x

function version_less_than_equal_to() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" = "$1"; }
debug=false

# Parse command line arguments
Expand All @@ -15,19 +15,16 @@ do
key="$1"

case $key in
--gcc)
gccBuild=true
shift # past argument
;;
esac
case $key in
--debug)
--debug)
debug=true
shift # past argument
;;
esac

done

function version_less_than_equal_to() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" = "$1"; }

# check for rpclib
if [ ! -d "./external/rpclib/rpclib-2.2.1" ]; then
echo "ERROR: new version of AirSim requires newer rpclib."
Expand All @@ -47,7 +44,11 @@ else
fi

# variable for build output
build_dir=build_debug
if $debug; then
build_dir=build_debug
else
build_dir=build_release
fi
if [ "$(uname)" == "Darwin" ]; then
export CC=/usr/local/opt/llvm@8/bin/clang
export CXX=/usr/local/opt/llvm@8/bin/clang++
Expand Down Expand Up @@ -117,6 +118,8 @@ Unreal/Environments/Blocks/clean.sh
mkdir -p Unreal/Environments/Blocks/Plugins
rsync -a --delete Unreal/Plugins/AirSim Unreal/Environments/Blocks/Plugins

set +x

echo ""
echo ""
echo "=================================================================="
Expand Down

0 comments on commit ab2bf3a

Please sign in to comment.