forked from gaodayihao/QSanguosha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·37 lines (28 loc) · 817 Bytes
/
compile.sh
File metadata and controls
executable file
·37 lines (28 loc) · 817 Bytes
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
#!/bin/bash
# This is a Shell script that ease our compilation work in Linux
# You should has Qt, swig, and plib installed before running this script
echo "****"
echo "This script is considered obsolete, please use 'make -f linux.mk' instead"
echo "****"
which -s qmake
if [[ $? != 0 ]]; then
echo "Qt is not installed or its tools are not in the PATH"
exit 1
fi
which -s swig
if [[ $? != 0 ]]; then
echo "Swig is not installed!"
exit 1
fi
# first, generate Lua binding C++ code
echo "Generate lua binding code"
sh swig/swig.sh
# second, we create the Makefile from project file
echo "Generating Makefile using project file"
qmake QSanguosha.pro
# then do make
echo "Compile it"
make
# Compile the translation file
lrelease QSanguosha.pro
echo "Well, everything is OK. You can run it with ./QSanguosha"