用eclipse搭建cocos2d-x开放环境
时间:2014-07-22 23:14:33
收藏:0
阅读:556
编写资源文件导出bat
@echo off set DIR=%~dp0 set APP_ROOT=%DIR%..set APP_ANDROID_ROOT=%DIR% set COCOS2DX_ROOT=%DIR%..\..\.. rem echo config echo - config: echo ANDROID_NDK_ROOT = %NDK_ROOT% echo COCOS2DX_ROOT = %COCOS2DX_ROOT% echo APP_ROOT = %APP_ROOT% echo APP_ANDROID_ROOT = %APP_ANDROID_ROOT% echo - cleanup rem if exist "%APP_ANDROID_ROOT%bin" rmdir /s /q "%APP_ANDROID_ROOT%bin" rem mkdir "%APP_ANDROID_ROOT%bin" if exist "%APP_ANDROID_ROOT%assets" rmdir /s /q "%APP_ANDROID_ROOT%assets" mkdir "%APP_ANDROID_ROOT%assets" echo - copy resources xcopy /s /q "%APP_ROOT%Resources\*.*" "%APP_ANDROID_ROOT%assets" rem echo Using prebuilt externals rem "%NDK_ROOT%\ndk-build" %* -C %APP_ANDROID_ROOT%
为工程创建一个builder来执行此文件
创建一个ndk_builder
Specify Resources选项关联jni和classes目录
设置NDK_MODULE_PATH
路径中用"/"符号,不然编译时路径会发生错误
评论(0)