This repository has been archived by the owner on Oct 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
make.sh
executable file
·97 lines (72 loc) · 2.79 KB
/
make.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
# Builds the Tao Framework using both Prebuild and autotools
configure_args=$1
# Create autotools Project Files
other/Prebuild/prebuild /target autotools /file prebuild.xml
# Build Solutions Using autotools
PACKAGES="Tao.DevIl
Tao.Ode
Tao.PhysFs
Tao.Sdl
Tao.Lua
Tao.OpenGl
"
mkdir -p dist/bin
ROOTDIR=$PWD
cd $ROOTDIR/src
for thedir in $PACKAGES ;
do
# If the configure.ac file exists, build
if [ -f $thedir/configure.ac ]
then
pushd $thedir &&
autoreconf -i -s &&
./configure $configure_args &&
make &&
make install || exit -1
make install-data-local
popd
fi
done
# Copy Builds to Bin Directory
find ./ -name "Tao.*.dll" -exec cp \{\} ../dist/bin/ \;
cd $ROOTDIR
# Copy Examples to Dist Directory
mkdir -p dist/examples/Data
cp -f dist/bin/*.dll dist/examples
cp -f examples/CgExamples/bin/Release/*.exe dist/examples
cp -f examples/CgExamples/Data/*.* dist/examples/Data
cp -f examples/DevIlExamples/SimpleExample/bin/Release/*.exe dist/examples
cp -f examples/DevIlExamples/SimpleExample/Data/*.* dist/examples/Data
cp -f examples/FreeGlutExamples/One/bin/Release/*.exe dist/examples
cp -f examples/GeWangExamples/bin/Release/*.exe dist/examples
cp -f examples/GlfwExamples/bin/Release/*.exe dist/examples
cp -f examples/GlfwExamples/Data/*.* dist/examples/Data
cp -f examples/LuaExamples/Functions/bin/Release/*.exe dist/examples
cp -f examples/LuaExamples/Functions/Data/*.* dist/examples/Data
cp -f examples/LuaExamples/Simple/bin/Release/*.exe dist/examples
cp -f examples/LuaExamples/Simple/Data/*.* dist/examples/Data
cp -f examples/NateRobins/bin/Release/*.exe dist/examples
cp -f examples/NateRobins/Data/*.* dist/examples/Data
cp -f examples/NeHe/bin/Release/*.exe dist/examples
cp -f examples/NeHe/Data/*.* dist/examples/Data
cp -f examples/OdeExamples/Basic/bin/Release/*.exe dist/examples
cp -f examples/OpenAlExamples/bin/Release/*.exe dist/examples
cp -f examples/OpenAlExamples/Data/*.* dist/examples/Data
cp -f examples/PhysFsExamples/Simple/bin/Release/*.exe dist/examples
cp -f examples/PhysFsExamples/Simple/Data/*.* dist/examples/Data
cp -f examples/Redbook/bin/Release/*.exe dist/examples
cp -f examples/SdlExamples/bin/Release/*.exe dist/examples
cp -f examples/SdlExamples/Data/*.* dist/examples/Data
# Build Documentation Using autotools
mkdir -p dist/doc
cp -f src/Tao.Cg/bin/Release/*.xml dist/doc
cp -f src/Tao.DevIl/bin/Release/*.xml dist/doc
cp -f src/Tao.FreeGlut/bin/Release/*.xml dist/doc
cp -f src/Tao.Glfw/bin/Release/*.xml dist/doc
cp -f src/Tao.Lua/bin/Release/*.xml dist/doc
cp -f src/Tao.Ode/bin/Release/*.xml dist/doc
cp -f src/Tao.OpenAl/bin/Release/*.xml dist/doc
cp -f src/Tao.PhysFs/bin/Release/*.xml dist/doc
cp -f src/Tao.Platform.Windows/bin/Release/*.xml dist/doc
cp -f src/Tao.Sdl/bin/Release/*.xml dist/doc