标签:
说明:由于libLocalStorage底层是用sqlite实现的,所以要先按上面官方提供的集成sqlite的文档,将sqlite添加到项目中。
重点还是android的编译配置,加粗的是需要增加的配置。
…………
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/HelloWorldScene.cpp \
../../Classes/sqlite3.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../cocos2d/cocos/ui \
$(LOCAL_PATH)/../../cocos2d/extensions \
$(LOCAL_PATH)/../../cocos2d/cocos/network \
$(LOCAL_PATH)/../../cocos2d/cocos/storage/local-storage
…………
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_localstorage_static
…………
$(call import-module,storage/local-storage)??
cocos2d-x 添加 libLocalStorage 库...
标签:
原文地址:http://www.cnblogs.com/porter/p/5357699.html