blob: f82d5b7d0025fe3a288ab74eb54f73ef0e34f206 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
@echo off
rem Shave and a Haircut
rem (c) 2019 Epic Games
rem US Patent 6720962
set result=0
setlocal
if "%~1"=="" (
echo No maya version provided.
goto error
)
if not defined SHAVE_RMAN_SDKS (
echo SHAVE_RMAN_SDKS not defined. Shave will be built without RenderMan support.
goto error
)
call ..\utils\splitMayaVersion %1
set mayaCompactVersion=%mayaVersionMajor%%mayaVersionMinor%
call ..\utils\getVSVersion
if %vsVersion%==vs11 (
call "%VS110COMNTOOLS%\..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
) else if %vsVersion%==vs14 (
call "%VS140COMNTOOLS%\..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
) else (
goto error
)
rem Find all the ranges of RenderMan which we support for this version of
rem Maya and build the plugins for them.
rem
cd plugins\shaveHairBxdf\shaveHairBxdf-%vsVersion%
for /f "tokens=1,*" %%i in ('findstr "^%mayaVersion%:" ..\..\..\supportedRManVersions.txt') do call :buildRange %%j
if errorlevel 1 goto error
goto done
rem -----------------------------------------------------------------------
:buildRange
set minVer=%1
set maxVer=%2
set buildVer=%3
set versionTag=%buildVer:~0,2%
call ..\..\..\..\utils\vcbuild.bat . shaveHairBxdf RelM%mayaVersion%R%versionTag% %vsVersion% shaveHairBxdf 64
if not %result%==0 exit /b 1
exit /b
rem -----------------------------------------------------------------------
:error
endlocal
set result=1
goto :eof
:done
endlocal
|