标签:android style blog http java color
编写资源文件导出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
路径中用"/"符号,不然编译时路径会发生错误
用eclipse搭建cocos2d-x开放环境,码迷,mamicode.com
标签:android style blog http java color
原文地址:http://www.cnblogs.com/moonbear/p/3699929.html