把 jsoncpp 的源码(.h .cpp)拷贝到 extentions/jsoncpp 目录下;
vs 在extentions项目中添加现有项,extentions 项目属性 c++ 常规中添加该目录到包含路径即可。
android 需要在 cocos2d-2.0-x-2.0.4\extensions\Android.mk 中把需要编译的 cpp 文件添加到依赖文件中,
并且把包含路径添加到 LOCAL_EXPORT_C_INCLUDES
-
LOCAL_SRC_FILES := CCBReader/CCBFileLoader.cpp
-
CCBReader/CCBReader.cpp
-
CCBReader/CCControlButtonLoader.cpp
-
CCBReader/CCControlLoader.cpp
-
CCBReader/CCLabelBMFontLoader.cpp
-
CCBReader/CCLabelTTFLoader.cpp
-
CCBReader/CCLayerColorLoader.cpp
-
CCBReader/CCLayerGradientLoader.cpp
-
CCBReader/CCLayerLoader.cpp
-
CCBReader/CCMenuItemImageLoader.cpp
-
CCBReader/CCMenuItemLoader.cpp
-
CCBReader/CCNodeLoader.cpp
-
CCBReader/CCNodeLoaderLibrary.cpp
-
CCBReader/CCParticleSystemQuadLoader.cpp
-
CCBReader/CCScale9SpriteLoader.cpp
-
CCBReader/CCScrollViewLoader.cpp
-
CCBReader/CCSpriteLoader.cpp
-
CCBReader/CCBAnimationManager.cpp
-
CCBReader/CCBKeyframe.cpp
-
CCBReader/CCBSequence.cpp
-
CCBReader/CCBSequenceProperty.cpp
-
CCBReader/CCBValue.cpp
-
CCBReader/CCData.cpp
-
CCBReader/CCNode+CCBRelativePositioning.cpp
-
GUI/CCControlExtension/CCControl.cpp
-
GUI/CCControlExtension/CCControlButton.cpp
-
GUI/CCControlExtension/CCControlColourPicker.cpp
-
GUI/CCControlExtension/CCControlHuePicker.cpp
-
GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp
-
GUI/CCControlExtension/CCControlSlider.cpp
-
GUI/CCControlExtension/CCControlSwitch.cpp
-
GUI/CCControlExtension/CCControlUtils.cpp
-
GUI/CCControlExtension/CCInvocation.cpp
-
GUI/CCControlExtension/CCScale9Sprite.cpp
-
GUI/CCControlExtension/CCControlPotentiometer.cpp
-
GUI/CCControlExtension/CCControlStepper.cpp
-
GUI/CCScrollView/CCScrollView.cpp
-
GUI/CCScrollView/CCTableView.cpp
-
GUI/CCScrollView/CCTableViewCell.cpp
-
GUI/CCScrollView/CCSorting.cpp
-
GUI/CCEditBox/CCEditBox.cpp
-
GUI/CCEditBox/CCEditBoxImplAndroid.cpp
-
network/HttpClient.cpp
-
jsoncpp/json_reader.cpp
-
jsoncpp/json_value.cpp
-
jsoncpp/json_writer.cpp
-
-
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
-
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_curl_static
-
-
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
-
$(LOCAL_PATH)/CCBReader
-
$(LOCAL_PATH)/GUI/CCControlExtension
-
$(LOCAL_PATH)/GUI/CCScrollView
-
$(LOCAL_PATH)/network
-
$(LOCAL_PATH)/jsoncpp
想在cocos2d-x中添加其他外部库源码类似
阅读(3013) | 评论(0) | 转发(0) |