-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_zlib.bat
37 lines (27 loc) · 1022 Bytes
/
install_zlib.bat
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
@echo off
cls
setlocal
set PROJECT=zlib
set PKGVERSION=1.2.11
set REMAKEN_PLATFORM=win-cl-14.1
REM check whether user had supplied -h or --help . If yes display usage
for %%A in ("--help" "-h") do if "%1"==%%A (call:display_usage %1 & exit /b 0)
REM ####################
REM REMAKEN_PKG_ROOT
REM ####################
set REMAKEN_PKG_ROOT_WIN=%USERPROFILE%\.remaken\packages
echo "REMAKEN_PKG_ROOT_WIN:%REMAKEN_PKG_ROOT_WIN%"
set input_dir=%REMAKEN_PKG_ROOT_WIN%\%REMAKEN_PLATFORM%\static
set output_dir=%REMAKEN_PKG_ROOT_WIN%\%REMAKEN_PLATFORM%
xcopy /y /s %input_dir%\debug\%PROJECT%\%PKGVERSION%\ %output_dir%\%PROJECT%\%PKGVERSION%\
xcopy /y /s %input_dir%\release\%PROJECT%\%PKGVERSION%\ %output_dir%\%PROJECT%\%PKGVERSION%\
endlocal
goto:eof
::--------------------------------------------------------
::-- Function display_usage starts below here
::--------------------------------------------------------
:display_usage
echo This script install %PROJECT% (needs package zlib before).
echo.
exit /b 0
:end