2012-09-29 00:27:58 +04:00
|
|
|
:: run this from a VS x64 command prompt
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
SET PACKAGE_NAME=gettext-runtime-0.18
|
|
|
|
|
|
|
|
set GETTEXT_SRC=%cd%
|
|
|
|
set GETTEXT_DEST=%cd%-x64
|
|
|
|
del CMakeCache.txt
|
|
|
|
rmdir /q /s CMakeFiles
|
|
|
|
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%GETTEXT_DEST% -DCMAKE_BUILD_TYPE=Release -DICONV_INCLUDE_DIR=%GETTEXT_SRC%\..\build\x64\include -DICONV_LIBRARIES=%GETTEXT_SRC%\..\build\x64\lib\iconv.lib
|
|
|
|
nmake clean
|
|
|
|
nmake
|
|
|
|
echo.Press return when ready to install!
|
|
|
|
pause
|
|
|
|
|
|
|
|
nmake install
|
2012-10-03 18:31:24 +04:00
|
|
|
mkdir %GETTEXT_DEST%\share
|
|
|
|
mkdir %GETTEXT_DEST%\share\doc
|
|
|
|
mkdir %GETTEXT_DEST%\share\doc\gettext
|
|
|
|
copy COPYING %GETTEXT_DEST%\share\doc\gettext
|
2012-09-29 00:27:58 +04:00
|
|
|
nmake clean
|
|
|
|
|
|
|
|
cd %GETTEXT_DEST%
|
|
|
|
set PATH=%PATH%;%ProgramFiles%\7-zip
|
|
|
|
del ..\%PACKAGE_NAME%-x64.7z
|
|
|
|
7z a ..\%PACKAGE_NAME%-x64.7z *
|
|
|
|
cd %GETTEXT_SRC%
|
|
|
|
rmdir /q /s %GETTEXT_DEST%
|
|
|
|
|
|
|
|
echo.Finished!
|
|
|
|
pause
|