summary refs log tree commit diff stats
path: root/win32/deps/win-iconv/build-x86.bat
blob: 6d5d1596adf34925ea815abc0227e096a4e4ed59 (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
:: run this from a VS x86 command prompt
@echo off

SET PACKAGE_NAME=win-iconv-0.0.6

set ICONV_SRC=%cd%
set ICONV_DEST=%cd%-x86
del CMakeCache.txt
rmdir /q /s CMakeFiles
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%ICONV_DEST% -DCMAKE_BUILD_TYPE=Release
nmake clean
nmake
echo.Press return when ready to install!
pause

nmake install
mkdir %ICONV_DEST%\share
mkdir %ICONV_DEST%\share\doc
mkdir %ICONV_DEST%\share\doc\win-iconv
copy COPYING %ICONV_DEST%\share\doc\win-iconv
nmake clean

cd %ICONV_DEST%
set PATH=%PATH%;%ProgramFiles%\7-zip
del ..\%PACKAGE_NAME%-x86.7z
7z a ..\%PACKAGE_NAME%-x86.7z *
cd %ICONV_SRC%
rmdir /q /s %ICONV_DEST%

echo.Finished!
pause