@echo off rem %1 = plat rem %2 = conf rem %3 = output directory rem output_params.bat contains: rem (set ldir=architecture) rem (set libr=lib) rem (set plat=x64) rem (set conf=Release) set prefix=..\..\ call :clrerr if exist output_params.bat (call output_params.bat) else (call :seterr & echo ERROR: 'output_params.bat' not found & exit /b %errorlevel%) set lib_dir=%prefix%%ldir%\%plat%\%conf% if /i "%plat%" EQU "" (call :seterr & echo ERROR: 'output_params.bat' is corrupt & exit /b %errorlevel%) if /i "%1" NEQ "%plat%" goto bad_config if /i "%2" NEQ "%conf%" goto bad_config set rt_lib=MultiThreaded if /i "%conf%" EQU "Debug" (set rt_lib=%rt_lib%Debug) if /i "%libr%" EQu "DLL" (set rt_lib=%rt_lib%DLL) echo ^ >tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^%prefix%%ldir%%plat%\%conf%\^ >>tmp.props if /i "%libr%" EQU "LIB" ( echo ^%prefix%%ldir%%plat%\%conf%\mpir.lib;%prefix%lib_mpir_cxx\%plat%\%conf%\mpirxx.lib^ >>tmp.props ) else ( echo ^%prefix%%ldir%%plat%\%conf%\mpir.lib^ >>tmp.props ) echo ^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^%rt_lib%^ >>tmp.props echo ^$(MPDIR);$(SolutionDir)..\..\tests^ >>tmp.props if /i "%libr%" EQU "DLL" ( echo ^__GMP_LIBGMP_DLL^ >>tmp.props ) echo ^ >>tmp.props echo ^ >>tmp.props echo ^$(MPLIBS);$(OutDir)\add-test-lib.lib;%%(AdditionalDependencies)^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^$(MPDIR)^ >>tmp.props echo ^true^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^$(MPLIBS)^ >>tmp.props echo ^true^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props echo ^ >>tmp.props call out_copy_rename tmp.props vs%3 test-config.props verb del tmp.props goto clrerr :bad_config call :seterr exit /b %errorlevel% :clrerr exit /b 0 :seterr exit /b 1