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.
72 lines
1.9 KiB
Batchfile
72 lines
1.9 KiB
Batchfile
@echo off
|
|
REM
|
|
REM All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
|
REM its licensors.
|
|
REM
|
|
REM For complete copyright and license terms please see the LICENSE at the root of this
|
|
REM distribution (the "License"). All use of this software is governed by the License,
|
|
REM or, if provided, by the license below or the license accompanying this file. Do not
|
|
REM remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
|
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
REM
|
|
|
|
:: Store current dir
|
|
%~d0
|
|
cd %~dp0
|
|
PUSHD %~dp0
|
|
|
|
for %%a in (.) do set LY_PROJECT=%%~na
|
|
|
|
echo.
|
|
echo _____________________________________________________________________
|
|
echo.
|
|
echo ~ Setting up LY DSI PROJECT Environment ...
|
|
echo _____________________________________________________________________
|
|
echo.
|
|
|
|
echo LY_PROJECT = %LY_PROJECT%
|
|
|
|
:: Put you project env vars and overrides here
|
|
|
|
:: chanhe the relative path up to dev
|
|
set DEV_REL_PATH=../../..
|
|
set ABS_PATH=%~dp0
|
|
|
|
:: Override the default maya version
|
|
set MAYA_VERSION=2020
|
|
echo MAYA_VERSION = %MAYA_VERSION%
|
|
|
|
set LY_PROJECT_PATH=%ABS_PATH%
|
|
echo LY_PROJECT_PATH = %LY_PROJECT_PATH%
|
|
|
|
:: Change to root Lumberyard dev dir
|
|
CD /d %LY_PROJECT_PATH%\%DEV_REL_PATH%
|
|
set LY_DEV=%CD%
|
|
echo LY_DEV = %LY_DEV%
|
|
|
|
CALL %LY_DEV%\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\Launchers\Windows\Env_Maya.bat
|
|
|
|
rem :: Constant Vars (Global)
|
|
rem SET LYPY_GDEBUG=0
|
|
rem echo LYPY_GDEBUG = %LYPY_GDEBUG%
|
|
rem SET LYPY_DEV_MODE=0
|
|
rem echo LYPY_DEV_MODE = %LYPY_DEV_MODE%
|
|
rem SET LYPY_DEBUGGER=WING
|
|
rem echo LYPY_DEBUGGER = %LYPY_DEBUGGER%
|
|
|
|
:: Restore original directory
|
|
popd
|
|
|
|
:: Change to root dir
|
|
CD /D %ABS_PATH%
|
|
|
|
:: if the user has set up a custom env call it
|
|
IF EXIST "%~dp0User_Env.bat" CALL %~dp0User_Env.bat
|
|
|
|
GOTO END_OF_FILE
|
|
|
|
:: Return to starting directory
|
|
POPD
|
|
|
|
:END_OF_FILE
|