Files
o3de/scripts/build/Platform/Windows/env_windows.cmd
T
Esteban Papp a145d3c82f Issues/install missing assets (#7081)
* Fixes for missing assets in the install folder

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* delayed expansion to try to fix project_engineinstall_profile

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* Improvements to build scripts to solve the project build from the install folder

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2022-01-21 15:07:27 -08:00

51 lines
1.2 KiB
Batchfile

@ECHO OFF
REM
REM Copyright (c) Contributors to the Open 3D Engine Project.
REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
REM
REM SPDX-License-Identifier: Apache-2.0 OR MIT
REM
REM
REM To get recursive folder creation
SETLOCAL EnableExtensions EnableDelayedExpansion
where /Q cmake
IF NOT %ERRORLEVEL%==0 (
ECHO [ci_build] CMake not found
GOTO :errorlocal
)
REM Ending the local environment to be able to propagate the TMP/TEMP variables to the calling script
ENDLOCAL
IF NOT "%COMMAND_CWD%"=="" (
call ECHO [ci_build] Changing CWD to %COMMAND_CWD%
call CD %COMMAND_CWD%
IF ERRORLEVEL 1 (
ECHO [ci_build] Failed to change directory to %COMMAND_CWD%
GOTO :error
)
)
REM Jenkins does not defined TMP
IF "%TMP%"=="" (
IF "%WORKSPACE%"=="" (
SET TMP=%APPDATA%\Local\Temp
SET TEMP=%APPDATA%\Local\Temp
) ELSE (
SET TMP=%WORKSPACE%\Temp
SET TEMP=%WORKSPACE%\Temp
REM This folder may not be created in the workspace
IF NOT EXIST "!TMP!" (
MKDIR "!TMP!"
)
)
)
EXIT /b 0
:errorlocal
ENDLOCAL
:error
EXIT /b 1