Win7 64位搭建cocos2d-x环境并创建Android项目
:: modify it to work under your environment set _CYGBIN=c:cygwinbin if not exist "%_CYGBIN%" echo Couldn't find Cygwin at "%_CYGBIN%" & pause & exit 4 :: modify it to work under your environment set _ANDROIDTOOLS=d:androidandroid-sdk-windowstools if not exist "%_ANDROIDTOOLS%" echo Couldn't find android sdk tools at "%_ANDROIDTOOLS%" & pause & exit 5 :: modify it to work under your environment set _NDKROOT=d:androidandroid-ndk-r8b if not exist "%_NDKROOT%" echo Couldn't find ndk at "%_NDKROOT%" & pause & exit 6 |
rem Check we have a valid Java.exe in the path. The return code will rem be 0 if the command worked or 1 if the exec failed (program not found). for /f %%a in ('%~dps0find_java.exe –s') do set java_exe=%%a if not defined java_exe goto :CheckFailed :SearchJavaW rem Check if we can find a javaw.exe at the same location than java.exe. rem If that doesn't work, just fall back on the java.exe we just found. for /f %%a in ('%~dps0find_java.exe –s -w') do set javaw_exe=%%a if not exist %javaw_exe% set javaw_exe=%java_exe% goto :EOF |
rem Check we have a valid Java.exe in the path. The return code will rem be 0 if the command worked or 1 if the exec failed (program not found). for /f %%a in ('%~dps0find_java.exe') do set java_exe=%%a if not defined java_exe goto :CheckFailed :SearchJavaW rem Check if we can find a javaw.exe at the same location than java.exe. rem If that doesn't work, just fall back on the java.exe we just found. for /f %%a in ('%~dps0find_java.exe -w') do set javaw_exe=%%a if not exist %javaw_exe% set javaw_exe=%java_exe% goto :EOF |