如何减小cocos2d-x编译出的libcocos2dlua.so 体积
来源:互联网 发布:手机内置软件卸载 编辑:程序博客网 时间:2024/05/17 03:14
cocos2d-x\cocos\base\ccConfig.h
设置开关 0是不需要 1是需要
#ifndef CC_USE_TIFF
#define CC_USE_TIFF 0 //modify ycc
#endif // CC_USE_TIFF
/** Support webp or not. If your application don't use webp format picture, you can undefine this macro to save package size.
*/
#ifndef CC_USE_WEBP
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WINRT)
#define CC_USE_WEBP 0
#endif
#endif // CC_USE_WEBP
/** Use physics integration API. */
#ifndef CC_USE_PHYSICS#define CC_USE_PHYSICS 0
#endif
/** Use 3d physics integration API. */
#ifndef CC_USE_3D_PHYSICS
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_LINUX || CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
#define CC_USE_3D_PHYSICS 0
#endif
#endif
#if (CC_USE_3D_PHYSICS)
/** Use bullet physics engine. */
#ifndef CC_ENABLE_BULLET_INTEGRATION
#define CC_ENABLE_BULLET_INTEGRATION 0
#endif
#endif
/** Use 3D navigation API */
#ifndef CC_USE_NAVMESH
#define CC_USE_NAVMESH 0
#endif
2.在cocos2d-x\cocos\scripting\lua-bindings\proj.android
#3d
#LOCAL_SRC_FILES += ../manual/3d/lua_cocos2dx_3d_manual.cpp \
# ../auto/lua_cocos2dx_3d_auto.cpp
#cocosbuilder
#LOCAL_SRC_FILES += ../manual/cocosbuilder/lua_cocos2dx_cocosbuilder_manual.cpp \
# ../manual/cocosbuilder/CCBProxy.cpp \
# ../auto/lua_cocos2dx_cocosbuilder_auto.cpp
#spine
#LOCAL_SRC_FILES += ../manual/spine/lua_cocos2dx_spine_manual.cpp \
# ../manual/spine/LuaSkeletonAnimation.cpp \
# ../auto/lua_cocos2dx_spine_auto.cpp
#physics3d
#LOCAL_SRC_FILES += ../manual/physics3d/lua_cocos2dx_physics3d_manual.cpp \
# ../auto/lua_cocos2dx_physics3d_auto.cpp \
D:\sample\LuaTest\frameworks\cocos2d-x\cocos\scripting\lua-bindings\auto\lua_cocos2dx_auto.cpp
注释掉
/*int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S)
/*int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S)
/*int lua_cocos2dx_Scene_initWithPhysics(lua_State* tolua_S)
/*int lua_cocos2dx_Scene_stepPhysicsAndNavigation(lua_State* tolua_S)
/*int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S)
/*int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S)
/*int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S
--最后
int lua_module_register(lua_State* L)
{
//Dont' change the module register order unless you know what your are doing
register_cocosdenshion_module(L);
register_network_module(L);
//register_cocosbuilder_module(L);
register_cocostudio_module(L);
register_ui_moudle(L);
register_extension_module(L);
//register_spine_module(L);
//register_cocos3d_module(L);
register_audioengine_module(L);
#if CC_USE_3D_PHYSICS && CC_ENABLE_BULLET_INTEGRATION
register_physics3d_module(L);
#endif
#if CC_USE_NAVMESH
register_navmesh_module(L);
#endif
return 1;
}
- 如何减小cocos2d-x编译出的libcocos2dlua.so 体积
- 让vc编译出的程序减小体积
- 让vc编译出的程序 减小体积
- 让vc编译出的程序减小体积
- cocos2d android分析之-libcocos2dlua.so库
- 减小Lazarus编译的可执行文件的体积
- 如何减小Lazarus编译出的文件的大小
- 减小VC编译文件体积
- 减小新版Lazarus编译的可执行文件的体积
- 【转】减小Delphi XE5编译出来的程序体积
- 不删减文字 如何减小Word文件的体积
- 如何减小MFC程序的体积,CWinApp和CWinAppEx
- 如何减小 Visual C++ 2010 静态编译出的 MFC 可执行文件的大小
- 如何减小Lazarusv IDE v1.2.4 编译出的文件的大小
- Cocos2d-x 解决编译时自动删除.so的问题
- 减小页面体积的办法
- 减小vc编译程序的体积
- 减小VC生成的体积
- IOC容器中bean的生命周期
- 【爬虫】简单的Java爬虫,爬取Sogou微信的首页热门文章
- 二维数组中的查找
- Linux下Mongodb安装及配置
- BSON及mongoDB数据类型
- 如何减小cocos2d-x编译出的libcocos2dlua.so 体积
- WITH AS and materialize hints .
- Red Hat把命令提示符的路径变成绝对路径
- spark中的shared variables
- Android 设备adb连接后unauthorized解决方法
- android 图文混排——文字适配表情(资源图片、sd卡图片)
- 数据库修改表字段类型和字段名
- Kafka基本概念总结
- Android: requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()