add link path & copy cocosdenshion depended libs into lib/linux/Debug

This commit is contained in:
zhangxm 2011-10-14 02:30:49 -07:00
parent 6b4f8b9489
commit 0086da0ee0
2 changed files with 5 additions and 2 deletions

View File

@ -14,9 +14,9 @@ DEFINES = -DLINUX
OBJECTS = ../Linux/FmodAudioPlayer.o \
../Linux/SimpleAudioEngine.o \
STATICLIBS =
SHAREDLIBS = -lfmodex
SHAREDLIBS_DIR = ../third_party/fmod/api/lib
SHAREDLIBS = -L$(SHAREDLIBS_DIR) -lfmodex
####### Build rules
$(TARGET): $(OBJECTS)

View File

@ -23,6 +23,9 @@ if [ ! -d "lib/linux/Release" ]; then
mkdir "lib/linux/Release"
fi
# copy cocosdenshino depended libs into lib/linux/Debug/
cp CocosDenshion/third_party/fmod/api/lib/*.so lib/linux/Debug
if [ $# -ne 0 ]; then
if [ $1 = "clean" ]; then
cd $p/cocos2dx/proj.linux