89 lines
No EOL
3 KiB
Text
89 lines
No EOL
3 KiB
Text
@echo off
|
|
|
|
REM If using Sony's distribution build system, edit the wanted platforms.
|
|
REM set the target separated with a space
|
|
REM e.g.: set SN_DBS_TARGETS=ps4 xone
|
|
set SN_DBS_TARGETS=
|
|
|
|
REM ###################################################################################
|
|
REM ANDROID PRE BUILD CONFIGURATION
|
|
REM If you are running an Android build, make sure the following variables are uncommented and set.
|
|
REM set ANDROID_HOME=(Path to your Android Sdk installation. Example: C:\Android\AndroidStudioSdk)
|
|
REM set JAVA8_HOME=(Path to Java 8 jdk installation. Example: C:\Program Files\Java\jdk1.8.0_211)
|
|
REM ####################################################################################
|
|
|
|
REM Uncomment at least one of the following platforms to build.
|
|
|
|
call :USBuild win64 2017
|
|
REM call :USBuild win64Dll 2017
|
|
REM call :USBuild ps4 2017
|
|
REM call :USBuild ps4_crossgen 2017
|
|
REM call :USBuild xone 2017
|
|
REM call :USBuild xoneDll 2017
|
|
REM call :USBuild xoneCPP 2017
|
|
REM call :USBuild xone_gdk 2017
|
|
REM call :USBuild switch 2017
|
|
REM call :USBuild stadia 2017
|
|
REM call :USBuild ps5 2017
|
|
REM call :USBuild manjaro 2017
|
|
|
|
REM call :USBuild win64Dll4Unity3D 2017
|
|
REM call :USBuild ps4PRX4Unity3D 2017
|
|
REM call :USBuild ps4_crossgenPRX4Unity3D 2017
|
|
REM call :USBuild xoneDll4Unity3D 2017
|
|
REM call :USBuild switch4Unity3D 2017
|
|
REM call :USBuild stadia_shared4Unity3D 2017
|
|
|
|
REM call :USBuildAndroid armeabi-v7a c++_static
|
|
REM call :USBuildAndroid armeabi-v7a c++_shared
|
|
REM call :USBuildAndroid arm64-v8a c++_static
|
|
REM call :USBuildAndroid arm64-v8a c++_shared
|
|
|
|
REM call :USBuildAndroid armeabi-v7a c++_static Unity3D
|
|
REM call :USBuildAndroid armeabi-v7a c++_shared Unity3D
|
|
REM call :USBuildAndroid arm64-v8a c++_static Unity3D
|
|
REM call :USBuildAndroid arm64-v8a c++_shared Unity3D
|
|
|
|
REM SDK Server builds
|
|
|
|
REM call :USBuild win64 2017 server
|
|
REM call :USBuild win64Dll 2017 server
|
|
|
|
exit /b 0
|
|
|
|
REM ##### END OF THE EDITABLE SECTION ####
|
|
|
|
:USBuild
|
|
set platformCount=TRUE
|
|
|
|
REM '_' (underscore) is added to parameters for proper format/naming of US_BUILD_FILE_RESULT name
|
|
|
|
set SDK_TYPE=_%3
|
|
if "%SDK_TYPE%"=="_" ( REM case value is empty
|
|
set SDK_TYPE=
|
|
)
|
|
|
|
set US_BUILD_FILE_RESULT=%~dp0..\build\build.%1_%2%SDK_TYPE%.out
|
|
call %~dp0..\build\private\build_ubiservices_internal_setup_generic.bat %1 %2 %3 | %~dp0..\external\tools\wintee\wtee %US_BUILD_FILE_RESULT%
|
|
exit /b 0
|
|
|
|
|
|
:USBuildAndroid
|
|
|
|
for /f "useback tokens=*" %%a in ('%ANDROID_HOME%') do set ANDROID_HOME=%%~a
|
|
if not defined ANDROID_HOME (
|
|
echo.Cannot find your ANDROID_HOME. Please check the platformsConfiguration batch file.
|
|
EXIT /B 5
|
|
)
|
|
|
|
for /f "useback tokens=*" %%a in ('%JAVA8_HOME%') do set JAVA8_HOME=%%~a
|
|
if not defined JAVA8_HOME (
|
|
echo.The JAVA8_HOME value is not set. Please edit the platformsConfiguration batch file.
|
|
EXIT /B 5
|
|
)
|
|
|
|
set platformCount=TRUE
|
|
call %~dp0..\build\private\build_ubiservices_internal_setup_android.bat %1 %2 %3
|
|
EXIT /B %ERRORLEVEL%
|
|
|
|
exit /b 0 |