forked from PeymanTahghighi/WolfEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·86 lines (76 loc) · 1.79 KB
/
install.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
#!/bin/bash
echo "make wolf's dependencies ready"
cd ./engine/deps/
keys=(
assimp
ffmpeg
gli
glm
libjpeg-turbo
libpng
luaJIT
nanomsg
tbb
zlib)
values=(
version.txt
version.txt
VERSION.txt
VERSION.txt
version.txt
version.txt
version.txt
COPYING
version.txt,
version.txt)
for i in "${!keys[@]}"; do
echo "uncompressing ${keys[$i]}.zip"
unzip -q "${keys[$i]}.zip"
if [ ! -f ./${keys[$i]}/${values[$i]} ]; then
echo "could not find ${keys[$i]}/${values[$i]}"
else
echo "${keys[$i]} verified successfully"
fi
done
echo "uncompressing boost.zip"
cat boost.zip.001 > boost.zip
cat boost.zip.002 >> boost.zip
cat boost.zip.003 >> boost.zip
unzip -q "boost.zip"
if [ ! -f ./boost/builds.txt ]; then
echo "could not find boost/builds.txt"
else
echo "boost verified successfully"
fi
echo "uncompressing vulkan.zip"
cat vulkan.zip.001 > vulkan.zip
cat vulkan.zip.002 >> vulkan.zip
unzip -q "vulkan.zip"
if [ ! -f ./vulkan/SPIRVExtension.vsix ]; then
echo "could not find vulkan/SPIRVExtension.vsix"
else
echo "vulkan verified successfully"
fi
echo "$OSTYPE"
echo "start building Wolf"
if [ "$OSTYPE" == "darwin" ] || [ "$OSTYPE" == "darwin18" ] ; then
tar -zxvf ./vulkan/macOS.tar.gz -C ./vulkan/
xcodebuild clean build -workspace ../../engine/builds/xcode/wolf.engine.vulkan.osx.xcworkspace -scheme test_vulkan_osx -sdk macosx10.14 -configuration Debug
echo "All done successfully"
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "building wolf.system.linux"
cd "$PWD/../src/wolf.system/"
cmake .
make
echo "building wolf.media_core.linux"
cd "$PWD/../wolf.media_core/"
cmake .
make
echo "building wolf.content_pipeline.linux"
cd "$PWD/../wolf.content_pipeline/"
cmake .
make
echo "All done successfully"
else
echo "platform not supported yet"
fi