2012-03-01 02:51:58 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-02-29 17:48:45 +08:00
|
|
|
FILE=$1
|
|
|
|
NEED_BOX2D=$2
|
|
|
|
NEED_CHIPMUNK=$3
|
|
|
|
NEED_LUA=$4
|
|
|
|
|
|
|
|
APP_MODULES="APP_MODULES := cocos2dx_static cocosdenshion_shared"
|
2012-03-01 02:51:58 +08:00
|
|
|
if [ $NEED_BOX2D = "true" ];then
|
|
|
|
APP_MODULES=$APP_MODULES" box2d_shared"
|
2012-02-29 17:48:45 +08:00
|
|
|
fi
|
|
|
|
|
2012-03-01 02:51:58 +08:00
|
|
|
if [ $NEED_CHIPMUNK = "true" ]; then
|
|
|
|
APP_MODULES=$APP_MODULES" chipmunk_shared"
|
2012-02-29 17:48:45 +08:00
|
|
|
fi
|
|
|
|
|
2012-03-01 02:51:58 +08:00
|
|
|
if [ $NEED_LUA = "true" ]; then
|
|
|
|
APP_MODULES=$APP_MODULES" lua_shared"
|
2012-02-29 17:48:45 +08:00
|
|
|
fi
|
|
|
|
|
2012-03-01 02:51:58 +08:00
|
|
|
APP_MODULES=$APP_MODULES" game_shared"
|
2012-02-29 17:48:45 +08:00
|
|
|
|
|
|
|
cat > $FILE << EOF
|
|
|
|
APP_STL := gnustl_static
|
|
|
|
APP_CPPFLAGS += -frtti
|
|
|
|
$APP_MODULES
|
|
|
|
EOF
|