forked from MisterTea/HyperNEAT
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.sh
executable file
·51 lines (42 loc) · 1.5 KB
/
build.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
44
45
46
47
48
49
50
51
#!/bin/bash
# WARNING: This is not a makefile! It is provided only to give a sense of the commands
# necessary to build this whole project.
set -e
if [[ ! -f zlib/out/libz.so || ! -f zlib/out/libzlib.a ]]
then
echo "Building zlib"
cd zlib
mkdir -p build && mkdir -p build/release && cd build/release && cmake -i ../../ && make && cd ../../../
fi
if [[ ! -f tinyxmldll/out/libtinyxmlplus.so || ! -f tinyxmldll/out/libtinyxmlpluslib.a ]]
then
echo "Building tinyxmldll"
cd tinyxmldll
mkdir -p build && mkdir -p build/release && cd build/release && cmake -i ../../ && make && cd ../../../
fi
if [[ ! -f JGTL/out/ColorTests || ! -f JGTL/out/MapTests || ! -f JGTL/out/RandomTests || ! -f JGTL/out/TreeTests || ! -f JGTL/out/VariantTests ]]
then
echo "Building JGTL"
cd JGTL
mkdir -p build && mkdir -p build/release && cd build/release && cmake -i ../../ && make && cd ../../../
fi
if [[ ! -f Board/out/libboard.a ]]
then
echo "Building Board"
cd Board
mkdir -p build && mkdir -p build/release && cd build/release && cmake -i ../../ && make && cd ../../../
fi
if [[ ! -f ale/ale || ! -f ale/libale.so ]]
then
echo "Building ALE"
cd ale
make -f makefile.unix
cd ..
fi
if [[ ! -f NE/HyperNEAT/out/atari_evaluate || ! -f NE/HyperNEAT/out/atari_generate || ! -f NE/HyperNEAT/out/atari_visualize ]]
then
echo "Builiding HyperNEAT"
cd NE/HyperNEAT/
mkdir -p build && mkdir -p build/release && cd build/release && cmake -i ../../ && make && cd ../../../
fi
set +e