boinc/win_build/boinc_post_bld_rules.cmd

88 lines
3.4 KiB
Batchfile
Raw Normal View History

@echo off
rem Berkeley Open Infrastructure for Network Computing
rem http://boinc.berkeley.edu
rem Copyright (C) 2005 University of California
rem
rem This is free software; you can redistribute it and/or
rem modify it under the terms of the GNU Lesser General Public
rem License as published by the Free Software Foundation;
rem either version 2.1 of the License, or (at your option) any later version.
rem
rem This software is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rem See the GNU Lesser General Public License for more details.
rem
rem To view the GNU Lesser General Public License visit
rem http://www.gnu.org/copyleft/lesser.html
rem or write to the Free Software Foundation, Inc.,
rem 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
rem
FOR /F "usebackq delims==" %%I IN ('%1') DO set PROJECTROOTDIR=%%~I\..
FOR /F "usebackq delims==" %%J IN ('%2') DO set OUTPUTDIR=%%~J
FOR /F "usebackq delims==" %%K IN ('%3') DO set PLATFORMNAME=%%~K
FOR /F "usebackq delims==" %%L IN ('%4') DO set CONFIGNAME=%%~L
if not exist %OUTPUTDIR%\dbghelp.dll (
echo Copying dbghelp to the output directory...
copy "%PROJECTROOTDIR%\win_build\installerv2\redist\Windows\%PLATFORMNAME%\dbghelp.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\dbghelp95.dll (
echo Copying dbghelp95 to the output directory...
copy "%PROJECTROOTDIR%\win_build\installerv2\redist\Windows\%PLATFORMNAME%\dbghelp95.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\symsrv.dll (
echo Copying symsrv to the output directory...
copy "%PROJECTROOTDIR%\win_build\installerv2\redist\Windows\%PLATFORMNAME%\symsrv.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\symsrv.yes (
echo Copying symsrv.yes to the output directory...
copy "%PROJECTROOTDIR%\win_build\installerv2\redist\Windows\%PLATFORMNAME%\symsrv.yes" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\srcsrv.dll (
echo Copying srcsrv.dll to the output directory...
copy "%PROJECTROOTDIR%\win_build\installerv2\redist\Windows\%PLATFORMNAME%\srcsrv.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\libcurld.dll (
echo Copying libcurld to the output directory...
copy "%PROJECTROOTDIR%\curl\mswin\%PLATFORMNAME%\%CONFIGNAME%\bin\libcurld.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\libcurl.dll (
echo Copying libcurl to the output directory...
copy "%PROJECTROOTDIR%\curl\mswin\%PLATFORMNAME%\%CONFIGNAME%\bin\libcurl.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\ca-bundle.crt (
echo Copying ca-bundle.crt to the output directory...
copy "%PROJECTROOTDIR%\curl\ca-bundle.crt" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\libeay32.dll (
echo Copying libeay32 to the output directory...
copy "%PROJECTROOTDIR%\openssl\mswin\%PLATFORMNAME%\%CONFIGNAME%\bin\libeay32.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\ssleay32.dll (
echo Copying ssleay32 to the output directory...
copy "%PROJECTROOTDIR%\openssl\mswin\%PLATFORMNAME%\%CONFIGNAME%\bin\ssleay32.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\zlib1d.dll (
echo Copying zlib1d to the output directory...
copy "%PROJECTROOTDIR%\zlib\mswin\%PLATFORMNAME%\%CONFIGNAME%\bin\zlib1d.dll" "%OUTPUTDIR%"
)
if not exist %OUTPUTDIR%\zlib1.dll (
echo Copying zlib1 to the output directory...
copy "%PROJECTROOTDIR%\zlib\mswin\%PLATFORMNAME%\%CONFIGNAME%\bin\zlib1.dll" "%OUTPUTDIR%"
)
EXIT /B 0