summary refs log tree commit diff stats
path: root/win32/deps/enchant/build-x64.bat
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-02 14:35:59 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-02 14:35:59 +0200
commit47193043a7c8feeeb81611cce86061bd0e5f7cb4 (patch)
tree07c651a12b0573a09b3703be0f48c29dfc47d47d /win32/deps/enchant/build-x64.bat
parent149dc7082162ad6a4951ace52b338826a9e19619 (diff)
Add Enchant build scripts
Diffstat (limited to 'win32/deps/enchant/build-x64.bat')
-rw-r--r--win32/deps/enchant/build-x64.bat49
1 files changed, 49 insertions, 0 deletions
diff --git a/win32/deps/enchant/build-x64.bat b/win32/deps/enchant/build-x64.bat
new file mode 100644
index 00000000..45e762cb
--- /dev/null
+++ b/win32/deps/enchant/build-x64.bat
@@ -0,0 +1,49 @@
+:: run this from a VS x64 command prompt
+@echo off
+
+SET PACKAGE_NAME=enchant-1.6.0
+
+set ENCHANT_SRC=%cd%
+set ENCHANT_DEST=%cd%-x64
+cd src
+nmake -f makefile.mak clean
+nmake -f makefile.mak X64=1 DLL=1 MFLAGS=-MD GLIBDIR=..\..\build\x64\include\glib-2.0
+cd ..
+echo.Press return when ready to install!
+pause
+
+set RELEASE_DIR=bin\release
+rmdir /q /s %ENCHANT_DEST%
+mkdir %ENCHANT_DEST%
+mkdir %ENCHANT_DEST%\bin
+mkdir %ENCHANT_DEST%\include
+mkdir %ENCHANT_DEST%\include\enchant
+mkdir %ENCHANT_DEST%\lib
+mkdir %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\enchant.exe %ENCHANT_DEST%\bin
+copy %RELEASE_DIR%\enchant-lsmod.exe %ENCHANT_DEST%\bin
+copy %RELEASE_DIR%\libenchant.dll %ENCHANT_DEST%\bin
+copy src\enchant.h %ENCHANT_DEST%\include\enchant
+copy "src\enchant++.h" %ENCHANT_DEST%\include\enchant
+copy src\enchant-provider.h %ENCHANT_DEST%\include\enchant
+copy %RELEASE_DIR%\libenchant_ispell.dll %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\libenchant_ispell.exp %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\libenchant_ispell.lib %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\libenchant_myspell.dll %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\libenchant_myspell.exp %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\libenchant_myspell.lib %ENCHANT_DEST%\lib\enchant
+copy %RELEASE_DIR%\libenchant.exp %ENCHANT_DEST%\lib
+copy %RELEASE_DIR%\libenchant.lib %ENCHANT_DEST%\lib
+copy COPYING.LIB %ENCHANT_DEST%\LICENSE.ENCHANT
+cd src
+nmake -f makefile.mak clean
+
+cd %ENCHANT_DEST%
+set PATH=%PATH%;%ProgramFiles%\7-zip
+del ..\%PACKAGE_NAME%-x64.7z
+7z a ..\%PACKAGE_NAME%-x64.7z *
+cd %ENCHANT_SRC%
+rmdir /q /s %ENCHANT_DEST%
+
+echo.Finished!
+pause