-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.sh
More file actions
executable file
·28 lines (22 loc) · 975 Bytes
/
Setup.sh
File metadata and controls
executable file
·28 lines (22 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
ROOT_PATH=$(pwd)
BUILD_PATH=${ROOT_PATH}/build-cmake-release
if [ ! -d "build-cmake-release" ]
then
mkdir build-cmake-release
fi
cd build-cmake-release
echo "Generating project files ..."
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake .. -DCMAKE_BUILD_TYPE=Release
echo "Done."
echo "Building all projects ..."
make -j $(nproc)
ln -s ${BUILD_PATH}/Engine/Source/Plugins/RERHIOpenGL/libRERHIOpenGL.so ${BUILD_PATH}/Tutorial/01.Frontends/01.02.Gui/libRERHIOpenGL.so
ln -s ${BUILD_PATH}/Engine/Source/Plugins/RERHIOpenGL/libRERHIOpenGL.so ${BUILD_PATH}/Tutorial/02.Rendering/02.01.LowLevel/libRERHIOpenGL.so
ln -s ${BUILD_PATH}/Engine/Source/Plugins/RERHIOpenGL/libRERHIOpenGL.so ${BUILD_PATH}/Tutorial/02.Rendering/02.03.HighLevel/libRERHIOpenGL.so
echo "Done."
echo "Auto-Generate runtime-compiled resources for OpenGL_440"
cd ${BUILD_PATH}/Tutorial/02.Rendering/02.02.ProjectCompiler && ./02.02.ProjectCompiler --target OpenGL_440
echo "Done."
cd ${ROOT_PATH}