2013-12-26 10:22:39 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-12-31 15:08:21 +08:00
|
|
|
# Exit on error
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf ../bin
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
#make global libs
|
|
|
|
cd ../cocos2d
|
|
|
|
#install depend libs
|
|
|
|
sudo ./build/install-deps-linux.sh
|
|
|
|
mkdir -p linux-build
|
|
|
|
cd linux-build
|
2014-01-06 14:24:33 +08:00
|
|
|
cmake .. -DBUILD_HelloCpp=OFF -DBUILD_TestCpp=OFF -DBUILD_HelloLua=OFF -DBUILD_TestLua=OFF
|
2013-12-31 15:08:21 +08:00
|
|
|
make -j4
|
|
|
|
|
|
|
|
#make bin
|
|
|
|
cd $DIR
|
|
|
|
rm -rf bin
|
|
|
|
mkdir -p build
|
2013-12-26 10:22:39 +08:00
|
|
|
cd build
|
|
|
|
cmake ../..
|
2013-12-31 15:08:21 +08:00
|
|
|
make -j4
|
|
|
|
cd ..
|
|
|
|
mv ../bin bin
|
2014-01-06 14:24:33 +08:00
|
|
|
cp ../cocos2d/cocos/scripting/lua/script/* bin/Resources
|