You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
878 B
Batchfile
42 lines
878 B
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
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
where /Q cmake
|
|
IF NOT %ERRORLEVEL%==0 (
|
|
ECHO [ci_build] CMake not found
|
|
GOTO :error
|
|
)
|
|
|
|
IF NOT "%COMMAND_CWD%"=="" (
|
|
ECHO [ci_build] Changing CWD to %COMMAND_CWD%
|
|
CD %COMMAND_CWD%
|
|
)
|
|
|
|
REM Jenkins reports MSB8029 when TMP/TEMP is not defined, define a dummy folder
|
|
IF NOT "%TMP%"=="" (
|
|
IF NOT "%WORKSPACE_TMP%"=="" (
|
|
SET TMP=%WORKSPACE_TMP%
|
|
SET TEMP=%WORKSPACE_TMP%
|
|
) ELSE (
|
|
SET TMP=%cd%/temp
|
|
SET TEMP=%cd%/temp
|
|
)
|
|
)
|
|
IF NOT EXIST "!TMP!" (
|
|
MKDIR "!TMP!"
|
|
)
|
|
|
|
EXIT /b 0
|
|
|
|
:error
|
|
EXIT /b 1 |