File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030# a non-zero exit code.
3131set -ev
3232
33+ # Validate required environment variables.
34+ echo " Validating required environment variables..."
35+ for var in MAYA_VERSION CMAKE_EXE RUST_CARGO_EXE VFX_PLATFORM CXX_STANDARD; do
36+ if [ -z " ${! var} " ]; then
37+ echo " ERROR: Required environment variable '$var ' is not set."
38+ echo " This script must be called by a parent build script that sets all required variables."
39+ exit 1
40+ fi
41+ done
42+ echo " All required environment variables are set."
43+
3344# Store the current working directory, to return to.
3445CWD=` pwd`
3546
Original file line number Diff line number Diff line change 2626:: This file assumes the variables MAYA_VERSION and RUST_CARGO_EXE
2727:: have been set.
2828
29+ :: Validate required environment variables.
30+ ECHO Validating required environment variables...
31+ IF " %MAYA_VERSION% " == " " (
32+ ECHO ERROR: Required environment variable MAYA_VERSION is not set.
33+ ECHO This script must be called by a parent build script that sets all required variables.
34+ EXIT /B 1
35+ )
36+ IF " %CMAKE_EXE% " == " " (
37+ ECHO ERROR: Required environment variable CMAKE_EXE is not set.
38+ ECHO This script must be called by a parent build script that sets all required variables.
39+ EXIT /B 1
40+ )
41+ IF " %RUST_CARGO_EXE% " == " " (
42+ ECHO ERROR: Required environment variable RUST_CARGO_EXE is not set.
43+ ECHO This script must be called by a parent build script that sets all required variables.
44+ EXIT /B 1
45+ )
46+ IF " %VFX_PLATFORM% " == " " (
47+ ECHO ERROR: Required environment variable VFX_PLATFORM is not set.
48+ ECHO This script must be called by a parent build script that sets all required variables.
49+ EXIT /B 1
50+ )
51+ IF " %CXX_STANDARD% " == " " (
52+ ECHO ERROR: Required environment variable CXX_STANDARD is not set.
53+ ECHO This script must be called by a parent build script that sets all required variables.
54+ EXIT /B 1
55+ )
56+ ECHO All required environment variables are set.
57+
2958:: The root of this project.
3059SET PROJECT_ROOT = %CD%
3160ECHO Project Root: %PROJECT_ROOT%
You can’t perform that action at this time.
0 commit comments