Skip to content

Commit

Permalink
updated build tools in Win32(VC).
Browse files Browse the repository at this point in the history
  • Loading branch information
t2001 authored and kou committed Jan 28, 2011
1 parent 8d41a38 commit 2a7f1f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions build_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ nmake -f Makefile.msvc
cd ..

@rem build suggest
cd modules\suggest
cd plugins\suggest
nmake -f Makefile.msvc clean
nmake -f Makefile.msvc
cd ..\..

@rem build mecab
cd modules\tokenizers
cd plugins\tokenizers
nmake -f Makefile.msvc clean
nmake -f Makefile.msvc
cd ..\..
Expand Down
4 changes: 2 additions & 2 deletions install_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ cd src
nmake -f Makefile.msvc install
cd ..

cd modules\suggest
cd plugins\suggest
nmake -f Makefile.msvc install
cd ..\..

cd modules\tokenizers
cd plugins\tokenizers
nmake -f Makefile.msvc install
cd ..\..
29 changes: 17 additions & 12 deletions mkmfwin32.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ strarch = shell.expandenvironmentstrings("%PROCESSOR_ARCHITECTURE%")
msgbox strarch


dim PLUGINS_DIR, PLUGINS_DIR2, INSTALL_DIR, LOG_PATH, MECAB_LIB, CONFIG_PATH,DOCUMENT_ROOT
dim PLUGINS_DIR, PLUGINS_DIR2, INSTALL_DIR, LOG_PATH, MECAB_LIB, CONFIG_PATH,DOCUMENT_ROOT, RELATIVE_PLUGINS_DIR
PLUGINS_DIR = "c:\\groonga\\plugins"
PLUGINS_DIR2 = "c:\groonga\plugins"
INSTALL_DIR = "c:\windows\system32"
LOG_PATH = "c:\\groonga\\log\\groonga.log"
MECAB_LIB = "c:\program files\mecab\sdk\libmecab.lib"
CONFIG_PATH ="c:\\groonga\\etc\\config"
DOCUMENT_ROOT ="c:\\groonga\\data\\admin_html"
RELATIVE_PLUGINS_DIR = "lib\\groonga\\plugins"

'control warning
dim no_warning
Expand Down Expand Up @@ -69,9 +70,9 @@ sub common_header()
ts.write "LINK=link.exe" + vbLf
ts.write vbLf
if use_debug = 1 then
ts.write "CFLAGS = /nologo /Od /W4 /MT /Zi -I../ " + no_warning + vbLf
ts.write "CFLAGS = /nologo /Od /W4 /MT /Zi -I../include " + no_warning + vbLf
else
ts.write "CFLAGS = /nologo /Ox /W4 /MT /Zi -I../ " + no_warning + vbLf
ts.write "CFLAGS = /nologo /Ox /W4 /MT /Zi -I../include " + no_warning + vbLf
end if

ts.write "LDFLAGS = /nologo "
Expand All @@ -98,23 +99,27 @@ sub common_header()
ts.write " -DNO_LZO \" + vbLf
ts.write " -DNO_ZLIB \" + vbLf
ts.write " -DUSE_SELECT \" + vbLf
ts.write " -DGROONGA_DEFAULT_ENCODING=""\""utf-8\"""" \" + vbLf
ts.write " -DGRN_DEFAULT_ENCODING=""\""utf-8\"""" \" + vbLf
ts.write " -DGRN_PLUGIN_SUFFIX=""\"".dll\"""" \" + vbLf
ts.write " -DPLUGINS_DIR=""\"""
ts.write " -DGRN_PLUGINS_DIR=""\"""
ts.write PLUGINS_DIR
ts.write "\"""" \" + vbLf

ts.write " -DGROONGA_DEFAULT_MATCH_ESCALATION_THRESHOLD=""0"" \" + vbLf
ts.write " -DGRN_RELATIVE_PLUGINS_DIR=""\"""
ts.write RELATIVE_PLUGINS_DIR
ts.write "\"""" \" + vbLf

ts.write " -DGRN_DEFAULT_MATCH_ESCALATION_THRESHOLD=""0"" \" + vbLf

ts.write " -DGROONGA_LOG_PATH=""\"""
ts.write " -DGRN_LOG_PATH=""\"""
ts.write LOG_PATH
ts.write "\"""" \" + vbLf

ts.write " -DGRN_CONFIG_PATH=""\"""
ts.write CONFIG_PATH
ts.write "\"""" \" + vbLf

ts.write " -DDEFAULT_DOCUMENT_ROOT=""\"""
ts.write " -DGRN_DEFAULT_DOCUMENT_ROOT=""\"""
ts.write DOCUMENT_ROOT
ts.write "\"""" \" + vbLf

Expand Down Expand Up @@ -213,9 +218,9 @@ ts.write "CC = cl.exe" + vbLf
ts.write "LINK=link.exe" + vbLf
ts.write vbLf
if use_debug = 1 then
ts.write "CFLAGS = /nologo /Od /W4 /MT /Zi -DWIN32 -I../../ -I../../lib/ " + no_warning + vbLf
ts.write "CFLAGS = /nologo /Od /W4 /MT /Zi -DWIN32 -I../../include -I../../lib/ " + no_warning + vbLf
else
ts.write "CFLAGS = /nologo /Ox /W4 /MT /Zi -DWIN32 -I../../ -I../../lib/ " + no_wwarning+ vbLf
ts.write "CFLAGS = /nologo /Ox /W4 /MT /Zi -DWIN32 -I../../include -I../../lib/ " + no_wwarning+ vbLf
end if

ts.write "LDFLAGS = /nologo "
Expand Down Expand Up @@ -272,9 +277,9 @@ ts.write "CC = cl.exe" + vbLf
ts.write "LINK=link.exe" + vbLf
ts.write vbLf
if use_debug = 1 then
ts.write "CFLAGS = /nologo /Od /W3 /MT /Zi -DWIN32 -I../../ -I../../lib/ " + no_warning + vbLf
ts.write "CFLAGS = /nologo /Od /W3 /MT /Zi -DWIN32 -I../../include -I../../lib/ " + no_warning + vbLf
else
ts.write "CFLAGS = /nologo /Ox /W3 /MT /Zi -DWIN32 -I../../ -I../../lib/ " + no_warning + vbLf
ts.write "CFLAGS = /nologo /Ox /W3 /MT /Zi -DWIN32 -I../../include -I../../lib/ " + no_warning + vbLf
end if

ts.write "LDFLAGS = /nologo "
Expand Down

0 comments on commit 2a7f1f2

Please sign in to comment.