Chinaunix首页 | 论坛 | 博客
  • 博客访问: 474623
  • 博文数量: 280
  • 博客积分: 337
  • 博客等级: 二等列兵
  • 技术积分: 1957
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-17 21:36
文章分类

全部博文(280)

文章存档

2017年(13)

2016年(38)

2015年(78)

2014年(67)

2013年(70)

2012年(14)

分类: C/C++

2013-06-05 09:30:04

把 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

点击(此处)折叠或打开

  1. LOCAL_SRC_FILES := CCBReader/CCBFileLoader.cpp
  2. CCBReader/CCBReader.cpp
  3. CCBReader/CCControlButtonLoader.cpp
  4. CCBReader/CCControlLoader.cpp
  5. CCBReader/CCLabelBMFontLoader.cpp
  6. CCBReader/CCLabelTTFLoader.cpp
  7. CCBReader/CCLayerColorLoader.cpp
  8. CCBReader/CCLayerGradientLoader.cpp
  9. CCBReader/CCLayerLoader.cpp
  10. CCBReader/CCMenuItemImageLoader.cpp
  11. CCBReader/CCMenuItemLoader.cpp
  12. CCBReader/CCNodeLoader.cpp
  13. CCBReader/CCNodeLoaderLibrary.cpp
  14. CCBReader/CCParticleSystemQuadLoader.cpp
  15. CCBReader/CCScale9SpriteLoader.cpp
  16. CCBReader/CCScrollViewLoader.cpp
  17. CCBReader/CCSpriteLoader.cpp
  18. CCBReader/CCBAnimationManager.cpp
  19. CCBReader/CCBKeyframe.cpp
  20. CCBReader/CCBSequence.cpp
  21. CCBReader/CCBSequenceProperty.cpp
  22. CCBReader/CCBValue.cpp
  23. CCBReader/CCData.cpp
  24. CCBReader/CCNode+CCBRelativePositioning.cpp
  25. GUI/CCControlExtension/CCControl.cpp
  26. GUI/CCControlExtension/CCControlButton.cpp
  27. GUI/CCControlExtension/CCControlColourPicker.cpp
  28. GUI/CCControlExtension/CCControlHuePicker.cpp
  29. GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp
  30. GUI/CCControlExtension/CCControlSlider.cpp
  31. GUI/CCControlExtension/CCControlSwitch.cpp
  32. GUI/CCControlExtension/CCControlUtils.cpp
  33. GUI/CCControlExtension/CCInvocation.cpp
  34. GUI/CCControlExtension/CCScale9Sprite.cpp
  35. GUI/CCControlExtension/CCControlPotentiometer.cpp
  36. GUI/CCControlExtension/CCControlStepper.cpp
  37. GUI/CCScrollView/CCScrollView.cpp
  38. GUI/CCScrollView/CCTableView.cpp
  39. GUI/CCScrollView/CCTableViewCell.cpp
  40. GUI/CCScrollView/CCSorting.cpp
  41. GUI/CCEditBox/CCEditBox.cpp
  42. GUI/CCEditBox/CCEditBoxImplAndroid.cpp
  43. network/HttpClient.cpp
  44. jsoncpp/json_reader.cpp
  45. jsoncpp/json_value.cpp
  46. jsoncpp/json_writer.cpp

  47. LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
  48. LOCAL_WHOLE_STATIC_LIBRARIES += cocos_curl_static

  49. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
  50.                            $(LOCAL_PATH)/CCBReader
  51.                            $(LOCAL_PATH)/GUI/CCControlExtension
  52.                            $(LOCAL_PATH)/GUI/CCScrollView
  53.                            $(LOCAL_PATH)/network
  54.                            $(LOCAL_PATH)/jsoncpp

想在cocos2d-x中添加其他外部库源码类似
阅读(2977) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~