blob: 18702ecff657d65d16727728f225c8d97f6244c9 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
:: run this from a VS x86 command prompt
@echo off
SET PACKAGE_NAME=enchant-1.6.0
set ENCHANT_SRC=%cd%
set ENCHANT_DEST=%cd%-x86
cd src
nmake -f makefile.mak clean
nmake -f makefile.mak DLL=1 MFLAGS=-MD GLIBDIR=..\..\build\Win32\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%-x86.7z
7z a ..\%PACKAGE_NAME%-x86.7z *
cd %ENCHANT_SRC%
rmdir /q /s %ENCHANT_DEST%
echo.Finished!
pause
|