36 lines
1.3 KiB
Batchfile
36 lines
1.3 KiB
Batchfile
rem TODO: check if this is under UE_SDKS_ROOT ?
|
|
set CurrentFolder=%~dp0
|
|
echo %CurrentFolder%
|
|
|
|
REM delete OutputEnvVars from the old location
|
|
del "%CurrentFolder%OutputEnvVars.txt"
|
|
|
|
set OutputEnvVarsFolder=%~dp0..\
|
|
del "%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
|
|
|
|
|
|
REM set android sdk environment variables
|
|
echo ANDROID_HOME=%CurrentFolder%android-sdk-windows>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
echo ANDROID_SDK_HOME=%CurrentFolder%android-sdk-windows>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
|
|
REM set ndk environment variables
|
|
echo ANDROID_NDK_ROOT=%CurrentFolder%android-ndk-r12b>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
echo NDK_ROOT=%CurrentFolder%android-ndk-r12b>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
echo NDKROOT=%CurrentFolder%android-ndk-r12b>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
|
|
REM set ANT directory
|
|
echo ANT_HOME=%CurrentFolder%apache-ant-1.8.2>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
|
|
REM set JDK directory
|
|
echo JAVA_HOME=%CurrentFolder%jdk1.8.0_77>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
|
|
REM Set the Andriod SWT path
|
|
echo ANDROID_SWT=%CurrentFolder%android-sdk-windows\tools\lib\x86_64>>"%OutputEnvVarsFolder%OutputEnvVars.txt"
|
|
|
|
|
|
|
|
|
|
REM support old branches that expect this file in a different location.
|
|
copy "%OutputEnvVarsFolder%OutputEnvVars.txt" "%CurrentFolder%OutputEnvVars.txt"
|