1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-10 11:25:08 -05:00
hexchat/win32/deps/win-iconv/build-x86.bat

28 lines
557 B
Batchfile
Raw Normal View History

2012-09-28 12:05:49 -04:00
:: run this from a VS x86 command prompt
@echo off
SET PACKAGE_NAME=win-iconv-0.0.4
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
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