aboutsummaryrefslogtreecommitdiff
path: root/mkwinall.bat
blob: b81e6572fb450bd6a2975dc01e8feeeb59fec3a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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