forked from OGRECave/ogre-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_ogre_linux_c++98.sh
executable file
·43 lines (39 loc) · 1.28 KB
/
build_ogre_linux_c++98.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
OGRE_BRANCH_NAME="master"
mkdir Ogre
cd Ogre
if test ! -f ogredeps; then
mkdir ogredeps
echo "--- Cloning Ogredeps ---"
hg clone https://bitbucket.org/cabalistic/ogredeps ogredeps
else
echo "--- Ogredeps repo detected. Cloning skipped ---"
fi
cd ogredeps
mkdir build
cd build
echo "--- Building Ogredeps ---"
cmake -D CMAKE_CXX_STANDARD=98 -G Ninja ..
ninja
ninja install
cd ../../
if test ! -f ogre-next; then
mkdir ogre-next
echo "--- Cloning Ogre master ---"
git clone --branch ${OGRE_BRANCH_NAME} https://github.com/OGRECave/ogre-next
fi
cd ogre-next
if test ! -f Dependencies; then
ln -s ../ogredeps/build/ogredeps Dependencies
fi
mkdir -p build/Debug
mkdir -p build/Release
cd build/Debug
echo "--- Building Ogre (Debug) ---"
cmake -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D OGRE_BUILD_COMPONENT_SCENE_FORMAT=1 -D OGRE_BUILD_SAMPLES2=1 -D OGRE_BUILD_TESTS=1 -D CMAKE_BUILD_TYPE="Debug" -D CMAKE_CXX_STANDARD=98 -G Ninja ../..
ninja
cd ../Release
echo "--- Building Ogre (Release) ---"
cmake -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D OGRE_BUILD_COMPONENT_SCENE_FORMAT=1 -D OGRE_BUILD_SAMPLES2=1 -D OGRE_BUILD_TESTS=1 -D CMAKE_BUILD_TYPE="Release" -D CMAKE_CXX_STANDARD=98 -G Ninja ../..
ninja
echo "Done!"