Advertisement
Guest User

ndk-build.cmd

a guest
May 2nd, 2013
3,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. @echo off
  2. rem This is a Windows cmd.exe script used to invoke the NDK-specific GNU Make executable
  3. set NDK_ROOT=%~dp0
  4. set NDK_MAKE=%NDK_ROOT%\prebuilt\windows-x86_64\bin\make.exe
  5.  
  6. rem Check if %NDK_ROOT% contains space
  7. goto :L
  8. :FOO
  9. if "%2"=="" goto:EOF
  10. echo ERROR: NDK path cannot contain space!
  11. exit /b 1
  12.  
  13. :L
  14. call :FOO %NDK_ROOT%
  15. if ERRORLEVEL 1 exit /b 1
  16.  
  17. rem Check if NDK_HOST_32BIT is not set to 1/true, Windows is 64-bit, and 64-bit make exists
  18. if "%NDK_HOST_32BIT%"=="1" set NDK_MAKE=
  19. if "%NDK_HOST_32BIT%"=="true" set NDK_MAKE=
  20. if not exist "%NDK_MAKE%" set NDK_MAKE=
  21. if "%ProgramW6432%"=="" set NDK_MAKE=
  22.  
  23. rem Otherwise fall back to 32-bit make
  24. if "%NDK_MAKE%"=="" set NDK_MAKE=%NDK_ROOT%\prebuilt\windows\bin\make.exe
  25.  
  26. %NDK_MAKE% -f %NDK_ROOT%build/core/build-local.mk SHELL=cmd %*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement