#Cocos2d+lua#android+Eclipse工程编译设置
用Elicpse编译cocos2d+lua的工程几点注意点记录:
1.设置工程属性Windows->Preferences->NDK目录
2.右键Android Tools->Add native
3.编辑Android.mk文件:
LOCAL_C_INCLUDES
$(call import-add-path, $(LOCAL_PATH)/../../../)
$(call import-module, xxxx)
4.编辑Application.mk:
APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION=clang 默认使用gcc
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic
ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif