source: indexers/trunk/winMake.bat@ 20861

Last change on this file since 20861 was 20861, checked in by ak19, 13 years ago

Renames the recently committed iconv.h.win file to iconv.h on Windows (iconv.h shouldn't be present on Linux as it can mess up static linking to libiconv.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1@echo off
2
3set MAKE=nmake
4set MAKE_OPTIONS=/f
5
6if "%DEBUG%" == "" (
7 set MAKE_VARS=DEBUG=0
8) else (
9 set MAKE_VARS=DEBUG=%DEBUG%
10)
11
12if ""%1"" == """" goto all
13if ""%1"" == ""all"" goto go
14if ""%1"" == ""install"" goto go
15if ""%1"" == ""clean"" goto clean
16
17:unknown
18 echo Error: Unrecognized argument %1.
19 goto done
20
21:clean
22 del bin\*
23
24:go
25 if ""%2"" == ""javaonly"" goto java
26 if ""%2"" == ""nojava"" goto nojava
27 if ""%2"" == ""gs2"" goto gs2
28
29:all
30 if NOT EXIST "bin" mkdir bin
31
32 cd packages\windows\iconv
33 if NOT EXIST "iconv" unzip iconv.zip
34 cd iconv
35 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
36 cd ..\..\..\..
37
38 cd packages\unac
39 if NOT EXIST "iconv.h" if EXIST "iconv.h.win" RENAME "%CD%\iconv.h.win" iconv.h
40 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
41 cd ..\..
42
43 cd mg
44 call winMake.bat %1
45 cd ..
46
47 cd mgpp
48 call winMake.bat %1
49 cd ..
50
51 cd lucene-gs
52 call winMake.bat %1
53 cd ..
54
55 if ""%1"" == ""clean"" goto clean2
56 goto done
57
58:: Need another clean because a pre-all clean command sent to iconv regenerates some lib
59:: and object files. So we delete these after it's finished processing the clean command
60:clean2
61 for %%I in (lib srclib libcharset\lib) do if exist packages\windows\iconv\iconv\%%I\^*.obj del packages\windows\iconv\iconv\%%I\*.obj;
62 for %%I in (lib srclib libcharset\lib) do if exist packages\windows\iconv\iconv\%%I\^*.lib del packages\windows\iconv\iconv\%%I\*.lib;
63
64:java
65 cd mg
66 call winMake.bat %1 javaonly
67 cd ..
68
69 cd mgpp
70 call winMake.bat %1 javaonly
71 cd ..
72
73 cd lucene-gs
74 call winMake.bat %1
75 cd ..
76 goto done
77
78:nojava
79 cd packages\windows\iconv\iconv
80 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
81 cd ..\..\..\..
82
83 cd packages\unac
84 if NOT EXIST "iconv.h" if EXIST "iconv.h.win" RENAME "%CD%\iconv.h.win" iconv.h
85 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
86 cd ..\..
87
88 cd mg
89 call winMake.bat %1 nojava
90 cd ..
91
92 cd mgpp
93 call winMake.bat %1 nojava
94 cd ..
95 goto done
96
97:gs2
98 if NOT EXIST "bin" mkdir bin
99
100 cd packages\windows\iconv\iconv
101 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
102 cd ..\..\..\..
103
104 cd packages\unac
105 if NOT EXIST "iconv.h" if EXIST "iconv.h.win" RENAME "%CD%\iconv.h.win" iconv.h
106 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
107 cd ..\..
108
109 cd mg
110 call winMake.bat %1 nojava
111 cd ..
112
113 cd mgpp
114 call winMake.bat %1 nojava
115 cd ..
116
117 cd lucene-gs
118 call winMake.bat %1
119 cd ..
120 goto done
121
122:done
Note: See TracBrowser for help on using the repository browser.