forked from ketoo/NoahGameFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install4cmake.sh
executable file
·64 lines (54 loc) · 1.31 KB
/
install4cmake.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
# make sure cmake is installed
cmake --version
if [ $? -ne 0 ]; then
echo "[ERROR] Please install cmake first."
echo "[ubuntu] apt-get install cmake or [centos] yum install cmake."
exit 1
fi
rm -rf ./cmake.dir/tmp
mkdir ./cmake.dir/tmp
cp -R -f ./cmake.dir/develop/* ./cmake.dir/tmp/
python -mplatform | grep -qi Ubuntu && find ./cmake.dir/tmp -name "*.text" -exec rename -f 's/.text/.txt/' {} \; || find ./cmake.dir/tmp -name "*.text" -exec rename .text .txt {} \;
cp -R -f ./cmake.dir/tmp/* ./
# compile dep libraries
cd ./Dependencies
chmod -R 755 build_dep.sh
./build_dep.sh
cd ../
cd BuildScript
chmod -R 755 ./BuildNF.CMake.Tools.sh
chmod -R 755 ./BuildNF.Tools.Linux.Debug.sh
./BuildNF.CMake.Tools.sh
./BuildNF.Tools.Linux.Debug.sh
cd ..
cd _Out/Server/NFDataCfg/Tool/
chmod 755 ./NFFileProcess
chmod 755 ./copy_files.sh
./copy_files.sh
cd ..
cd ..
cd ..
cd ..
cd BuildScript
chmod -R 755 ./BuildNF.CMake.Debug.sh
chmod -R 755 ./BuildNF.CMake.Release.sh
chmod -R 755 ./BuildNF.CopyDll.sh
./BuildNF.CMake.Debug.sh
./BuildNF.CopyDll.sh
cd ..
cd _Out/Server/Debug/
chmod -R 755 ./rund_cmake.sh
chmod -R 755 ./killd_cmake.sh
cd ..
cd ..
cd ..
cd _Out/Server/Release/
chmod -R 755 ./run_cmake.sh
chmod -R 755 ./kill_cmake.sh
cd ..
cd ..
cd ..
# generate makefile
#chmod -R 755 Build4Makefile.sh
#./Build4Makefile.sh
#pwd