forked from groonga/groonga
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_windows.bat
48 lines (38 loc) · 1.2 KB
/
build_windows.bat
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
@rem Groonga for Windows build script.
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
@set MECAB_SDK_PATH=C:\Program Files\MeCab\sdk
@set OLD_INCLUDE=%INCLUDE%
@set OLD_LIB=%LIB%
@set INCLUDE=%INCLUDE%;.;..;%MECAB_SDK_PATH%
@set LIB=%LIB%;%MECAB_SDK_PATH%
@rem build libgroonga.dll
cd lib
nmake -f Makefile.msvc clean
nmake -f Makefile.msvc
cd ..
@rem build groonga.exe
cd src
nmake -f Makefile.msvc clean
nmake -f Makefile.msvc
cd ..
@set INCLUDE=%OLD_INCLUDE%
@set LIB=%OLD_LIB%
@goto end
:error_no_VSINSTALLDIR
:error_no_VCINSTALLDIR
@echo ERROR: execute vcvarsall.bat first!
@echo.
@echo Visual Studio 2005
@echo c:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat
@echo Visual Studio 2008
@echo c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
@echo.
@echo if you want to get x86 binary on x86/x64 environment,
@echo you have to pass "x86" to vcvarsall.bat.
@echo if you want to get x64 binary on x86 environment,
@echo you have to pass "x86_amd64" to vcvarsall.bat.
@echo if you want to get x64 binary on x64 environment,
@echo you have to pass "amd64" to vcvarsall.bat.
@goto end
:end