rem @echo off rem Shave and a Haircut rem (c) 2019 Epic Games rem US Patent 6720962 @if not defined AUTODESK_LOCATION ( echo AUTODESK_LOCATION not defined. goto done ) setlocal rem rem Clear the error level rem ver >nul call mkwinbase rem rem The only difference in the libexe libs for different Maya versions rem is the version of Visual Studio used to build them. rem rem To prevent rebuilding the libs unnecessarily, we set a flag to indicate rem when the libs built for one version can be reused by the next. rem set reuseLibexe=n if exist "%AUTODESK_LOCATION%\Maya2017\include\maya\MTypes.h" ( if %errorlevel%==0 call mkwinversion 2017 Release %reuseLibexe% set reuseLibexe=y ) else ( echo Maya 2017 not installed. Skipping build for Maya 2017 ) set reuseLibexe=n if exist "%AUTODESK_LOCATION%\Maya2018\include\maya\MTypes.h" ( if %errorlevel%==0 call mkwinversion 2018 Release %reuseLibexe% set reuseLibexe=y ) else ( echo Maya 2018 not installed. Skipping build for Maya 2018 ) endlocal :done