rem example use: msbuild sandybridge_ivybridge dll x64 release
ifnotexist"lib_mpir_%1"(call:get_architectures&call:seterr&echo ERROR: architecture is one of %architectures%^(not "%1"^)&exit /b %errorlevel%)
if/i"%2"EQU"DLL"(setlibp=dll)else(if/i"%2"EQU"LIB"(setlibp=lib)else((call:seterr&echo ERROR: library type is "lib" or "dll"^(not "%2"^)&exit /b %errorlevel%)))
if/i"%3"EQU"x64"(setplat=x64)else(if/i"%3"EQU"Win32"(setplat=win32)else(call:seterr&echo ERROR: platform is "Win32" or "x64"^(not "%3"^)&exit /b %errorlevel%))
if/i"%4"EQU"Debug"(setconf=Debug)else(if/i"%4"EQU"Release"(setconf=Release)else(call:seterr&echo ERROR: configuration is "Release" or "Debug"^(not "%4"^)&exit /b %errorlevel%))
setsrc=%libp%_mpir_%1
rem This is the Visual Studio build directory (within the MPIR directory)