forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
17 changes: 12 additions & 5 deletions
17
Unreal/Environments/Blocks/update_from_git.sh
100644 → 100755
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
scr_dir=`realpath $0` | ||
rsync -a --delete ../../Plugins/AirSim Plugins/AirSim | ||
robocopy /MIR ..\..\Plugins\AirSim Plugins\AirSim /XD temp *. /njh /njs /ndl /np | ||
robocopy /MIR ..\..\..\AirLib Plugins\AirSim\Source\AirLib /XD temp *. /njh /njs /ndl /np | ||
#! /bin/bash | ||
|
||
pause | ||
# get path of current script: https://stackoverflow.com/a/39340259/207661 | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
pushd "$SCRIPT_DIR" | ||
|
||
set -e | ||
set +x | ||
|
||
rsync -a --exclude 'temp' --delete ../../Plugins/AirSim Plugins/AirSim | ||
rsync -a --exclude 'temp' --delete ../../../AirLib Plugins/AirSim/Source/AirLib | ||
|
||
popd |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
#! /bin/bash | ||
#! /bin/bash | ||
|
||
set +x | ||
set -e | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd "$SCRIPT_DIR" | ||
pushd "$SCRIPT_DIR" | ||
|
||
# add llvm-source to root of AirSim | ||
cd .. | ||
|
||
# Checkout LLVM sources | ||
git clone --depth=1 https://github.com/llvm-mirror/llvm.git llvm-source | ||
git clone --depth=1 https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx | ||
git clone --depth=1 https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi | ||
# git clone --depth=1 -b release_39 https://github.com/llvm-mirror/llvm.git llvm-source | ||
# git clone --depth=1 -b release_39 https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx | ||
# git clone --depth=1 -b release_39 https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi | ||
|
||
# Build and install libc++ | ||
rm -rf llvm-build | ||
mkdir llvm-build && cd llvm-build | ||
|
||
export C_COMPILER=clang | ||
export COMPILER=clang++ | ||
|
||
# Build and install libc++ | ||
mkdir llvm-build && cd llvm-build | ||
cmake -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${COMPILER} \ | ||
-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=ON \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr \ | ||
../llvm-source | ||
make cxx | ||
sudo make install-cxxabi install-cxx | ||
../llvm-source | ||
make cxx | ||
|
||
sudo make install-libcxx install-libcxxabi | ||
|
||
popd |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! /bin/bash | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
pushd "$SCRIPT_DIR" | ||
|
||
# add llvm-source to root of AirSim | ||
cd .. | ||
|
||
rm -rf llvm-source | ||
rm -rf llvm-build | ||
|
||
popd |