diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-09-28 18:05:49 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-09-28 18:05:49 +0200 |
commit | f816bd4d715727f9b0617a46265fec26b41f0448 (patch) | |
tree | b434d8968680a1820b8abd64503649ca1e7f0d09 | |
parent | b783207bca05a710b82772324241731e272c921e (diff) |
Add win-iconv build scripts
-rw-r--r-- | win32/deps/win-iconv/build-x64.bat | 27 | ||||
-rw-r--r-- | win32/deps/win-iconv/build-x86.bat | 27 |
2 files changed, 54 insertions, 0 deletions
diff --git a/win32/deps/win-iconv/build-x64.bat b/win32/deps/win-iconv/build-x64.bat new file mode 100644 index 00000000..7f97bc6e --- /dev/null +++ b/win32/deps/win-iconv/build-x64.bat @@ -0,0 +1,27 @@ +:: run this from a VS x64 command prompt +@echo off + +SET PACKAGE_NAME=win-iconv-0.0.4 + +set ICONV_SRC=%cd% +set ICONV_DEST=%cd%-x64 +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%-x64.7z +7z a ..\%PACKAGE_NAME%-x64.7z * +cd %ICONV_SRC% +rmdir /q /s %ICONV_DEST% + +echo.Finished! +pause diff --git a/win32/deps/win-iconv/build-x86.bat b/win32/deps/win-iconv/build-x86.bat new file mode 100644 index 00000000..31447f15 --- /dev/null +++ b/win32/deps/win-iconv/build-x86.bat @@ -0,0 +1,27 @@ +:: 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 |