Ticket #438: patch39.patch
File patch39.patch, 13.6 KB (added by , 15 years ago) |
---|
-
ChangeLog
1 Wed Feb 03 11:45:00 GMT 2010 Charlie Hull <charlie@flax.co.uk> 2 3 * win32_backends.mak, win32_backends_brass.mak, Makefile, config.mak, 4 win32_testsuite.mak, win32_bin.mak, version.h.in: add Brass backend 5 6 1 7 Fri Nov 20 11:49:07 GMT 2009 Richard Boulton <richard@tartarus.org> 2 8 3 9 * win32_backends_multi.mak,win32_matcher.mak: Patch from Charlie to -
config.mak
238 238 "$(OUTLIBDIR)\libcommon.lib" \ 239 239 "$(OUTLIBDIR)\libbackend.lib" \ 240 240 "$(OUTLIBDIR)\libexpand.lib" \ 241 "$(OUTLIBDIR)\libbrass.lib" \ 241 242 "$(OUTLIBDIR)\libchert.lib" \ 242 243 "$(OUTLIBDIR)\libflint.lib" \ 243 244 "$(OUTLIBDIR)\libinmemory.lib" \ -
Makefile
101 101 copy win32_api.mak ..\api\Makefile 102 102 copy win32_backends.mak ..\backends\Makefile 103 103 copy win32_backends_flint.mak ..\backends\flint\Makefile 104 copy win32_backends_brass.mak ..\backends\brass\Makefile 104 105 copy win32_backends_chert.mak ..\backends\chert\Makefile 105 106 copy win32_backends_inmemory.mak ..\backends\inmemory\Makefile 106 107 copy win32_backends_multi.mak ..\backends\multi\Makefile -
version.h.in
28 28 #define XAPIAN_MINOR_VERSION @MINOR_VERSION@ 29 29 #define XAPIAN_REVISION @REVISION@ 30 30 31 #define XAPIAN_HAS_BRASS_BACKEND 1 31 32 #define XAPIAN_HAS_CHERT_BACKEND 1 32 33 #define XAPIAN_HAS_FLINT_BACKEND 1 33 34 #define XAPIAN_HAS_QUARTZ_BACKEND 1 -
win32_backends.mak
16 16 "$(OUTDIR)\libremote.lib" \ 17 17 "$(OUTDIR)\libflint.lib" \ 18 18 "$(OUTDIR)\libchert.lib" \ 19 "$(OUTDIR)\libbrass.lib" \ 19 20 $(NULL) 20 21 21 22 OBJS= $(INTDIR)\database.obj \ … … 25 26 $(INTDIR)\alltermslist.obj \ 26 27 $(INTDIR)\valuelist.obj \ 27 28 $(INTDIR)\slowvaluelist.obj \ 28 $(INTDIR)\contiguousalldocspostlist.obj 29 $(INTDIR)\contiguousalldocspostlist.obj \ 30 $(INTDIR)\flint_lock.obj 29 31 30 32 SRCS= $(INTDIR)\database.cc \ 31 33 $(INTDIR)\databasereplicator.cc\ … … 34 36 $(INTDIR)\alltermslist.cc \ 35 37 $(INTDIR)\valuelist.cc \ 36 38 $(INTDIR)\slowvaluelist.cc \ 37 $(INTDIR)\contiguousalldocspostlist.cc 39 $(INTDIR)\contiguousalldocspostlist.cc \ 40 $(INTDIR)\flint_lock.cc 38 41 39 42 40 43 … … 45 48 -@erase /q "$(INTDIR)\*.pch" 46 49 -@erase /q "$(INTDIR)\*.pdb" 47 50 -@erase /q $(OBJS) 48 cd chert51 cd brass 49 52 nmake /$(MAKEFLAGS) CLEAN DEBUG=$(DEBUG) 53 cd ..\chert 54 nmake /$(MAKEFLAGS) CLEAN DEBUG=$(DEBUG) 50 55 cd ..\flint 51 56 nmake /$(MAKEFLAGS) CLEAN DEBUG=$(DEBUG) 52 57 cd ..\inmemory … … 73 78 $(LIB32_FLAGS) /out:"$(OUTDIR)\libbackend.lib" $(DEF_FLAGS) $(OBJS) 74 79 << 75 80 81 "$(OUTDIR)\libbrass.lib": 82 cd brass 83 nmake $(MAKEMACRO) /$(MAKEFLAGS) CFG="$(CFG)" DEBUG="$(DEBUG)" 84 cd .. 85 76 86 "$(OUTDIR)\libflint.lib": 77 87 cd flint 78 88 nmake $(MAKEMACRO) /$(MAKEFLAGS) CFG="$(CFG)" DEBUG="$(DEBUG)" -
win32_backends_brass.mak
1 # Makefile for Microsoft Visual C++ 7.0 (or compatible) 2 # by Charlie Hull, Lemur Consulting Ltd. 3 # www.lemurconsulting.com 4 5 # Will build a Win32 static library (non-debug) libbrass.lib 6 7 !INCLUDE ..\..\win32\config.mak 8 9 OUTDIR=..\..\win32\$(XAPIAN_DEBUG_OR_RELEASE)\libs 10 INTDIR=.\ 11 12 ALL : "$(OUTDIR)\libbrass.lib" "$(OUTDIR)\libbrassbtreecheck.lib" 13 14 LIBBRASSBTREECHECK_OBJS= \ 15 $(INTDIR)\brass_check.obj 16 17 OBJS= \ 18 $(INTDIR)\brass_alldocspostlist.obj\ 19 $(INTDIR)\brass_alltermslist.obj\ 20 $(INTDIR)\brass_btreebase.obj\ 21 $(INTDIR)\brass_cursor.obj\ 22 $(INTDIR)\brass_database.obj\ 23 $(INTDIR)\brass_databasereplicator.obj\ 24 $(INTDIR)\brass_dbstats.obj\ 25 $(INTDIR)\brass_document.obj\ 26 $(INTDIR)\brass_inverter.obj\ 27 $(INTDIR)\brass_io.obj\ 28 $(INTDIR)\brass_metadata.obj\ 29 $(INTDIR)\brass_positionlist.obj\ 30 $(INTDIR)\brass_postlist.obj\ 31 $(INTDIR)\brass_record.obj\ 32 $(INTDIR)\brass_spelling.obj\ 33 $(INTDIR)\brass_spellingwordslist.obj\ 34 $(INTDIR)\brass_synonym.obj\ 35 $(INTDIR)\brass_table.obj\ 36 $(INTDIR)\brass_termlist.obj\ 37 $(INTDIR)\brass_termlisttable.obj\ 38 $(INTDIR)\brass_values.obj\ 39 $(INTDIR)\brass_valuelist.obj\ 40 $(INTDIR)\brass_version.obj 41 42 SRCS= \ 43 $(INTDIR)\brass_alldocspostlist.cc\ 44 $(INTDIR)\brass_alltermslist.cc\ 45 $(INTDIR)\brass_btreebase.cc\ 46 $(INTDIR)\brass_cursor.cc\ 47 $(INTDIR)\brass_database.cc\ 48 $(INTDIR)\brass_databasereplicator.cc\ 49 $(INTDIR)\brass_dbstats.cc\ 50 $(INTDIR)\brass_document.cc\ 51 $(INTDIR)\brass_inverter.cc\ 52 $(INTDIR)\brass_io.cc\ 53 $(INTDIR)\brass_metadata.cc\ 54 $(INTDIR)\brass_positionlist.cc\ 55 $(INTDIR)\brass_postlist.cc\ 56 $(INTDIR)\brass_record.cc\ 57 $(INTDIR)\brass_spelling.cc\ 58 $(INTDIR)\brass_spellingwordslist.cc\ 59 $(INTDIR)\brass_synonym.cc\ 60 $(INTDIR)\brass_table.cc\ 61 $(INTDIR)\brass_termlist.cc\ 62 $(INTDIR)\brass_termlisttable.cc\ 63 $(INTDIR)\brass_values.cc\ 64 $(INTDIR)\brass_valuelist.cc\ 65 $(INTDIR)\brass_version.cc\ 66 $(INTDIR)\brass_check.cc 67 68 CLEAN : 69 -@erase "$(OUTDIR)\libbrass.lib" 70 -@erase "$(OUTDIR)\libbrassbtreecheck.lib" 71 -@erase "*.pch" 72 -@erase "$(INTDIR)\*.pdb" 73 -@erase "$(INTDIR)\getopt.obj" 74 -@erase "$(INTDIR)\brass_check.obj" 75 -@erase $(OBJS) 76 77 78 "$(OUTDIR)" : 79 if not exist "$(OUTDIR)-$(NULL)" mkdir "$(OUTDIR)" 80 81 CPP_PROJ=$(CPPFLAGS_EXTRA) \ 82 -I "..\.." -I "..\..\include" -I"..\..\common" -I"..\..\languages" \ 83 -Fo"$(INTDIR)\\" 84 85 CPP_OBJS=..\..\win32\$(XAPIAN_DEBUG_OR_RELEASE) 86 CPP_SBRS=. 87 88 "$(OUTDIR)\libbrass.lib" : HEADERS "$(OUTDIR)" $(DEF_FILE) $(OBJS) 89 $(LIB32) @<< 90 $(LIB32_FLAGS) -out:"$(OUTDIR)\libbrass.lib" $(DEF_FLAGS) $(OBJS) 91 << 92 93 "$(OUTDIR)\libbrassbtreecheck.lib" : HEADERS "$(OUTDIR)" $(DEF_FILE) $(LIBBRASSBTREECHECK_OBJS) 94 $(LIB32) @<< 95 $(LIB32_FLAGS) -out:"$(OUTDIR)\libbrassbtreecheck.lib" $(DEF_FLAGS) $(LIBBRASSBTREECHECK_OBJS) 96 << 97 98 # inference rules, showing how to create one type of file from another with the same root name 99 {.}.cc{$(INTDIR)}.obj:: 100 $(CPP) @<< 101 $(CPP_PROJ) $< 102 << 103 104 {.}.cc{$(CPP_SBRS)}.sbr:: 105 $(CPP) @<< 106 $(CPP_PROJ) $< 107 << 108 109 # Calculate any header dependencies and automatically insert them into this file 110 HEADERS : 111 if exist "..\win32\$(DEPEND)" ..\win32\$(DEPEND) $(DEPEND_FLAGS) -- $(CPP_PROJ) -- $(SRCS) -I"$(INCLUDE)" 112 # DO NOT DELETE THIS LINE -- make depend depends on it. 113 -
win32_backends_chert.mak
25 25 $(INTDIR)\chert_dbstats.obj\ 26 26 $(INTDIR)\chert_document.obj\ 27 27 $(INTDIR)\chert_io.obj\ 28 $(INTDIR)\chert_lock.obj\29 28 $(INTDIR)\chert_metadata.obj\ 30 29 $(INTDIR)\chert_modifiedpostlist.obj\ 31 30 $(INTDIR)\chert_positionlist.obj\ … … 52 51 $(INTDIR)\chert_dbstats.cc\ 53 52 $(INTDIR)\chert_document.cc\ 54 53 $(INTDIR)\chert_io.cc\ 55 $(INTDIR)\chert_lock.cc\56 54 $(INTDIR)\chert_metadata.cc\ 57 55 $(INTDIR)\chert_modifiedpostlist.cc\ 58 56 $(INTDIR)\chert_positionlist.cc\ -
win32_backends_flint.mak
25 25 $(INTDIR)\flint_databasereplicator.obj\ 26 26 $(INTDIR)\flint_document.obj\ 27 27 $(INTDIR)\flint_io.obj\ 28 $(INTDIR)\flint_lock.obj\29 28 $(INTDIR)\flint_metadata.obj\ 30 29 $(INTDIR)\flint_modifiedpostlist.obj\ 31 30 $(INTDIR)\flint_positionlist.obj\ … … 49 48 $(INTDIR)\flint_databasereplicator.cc\ 50 49 $(INTDIR)\flint_document.cc\ 51 50 $(INTDIR)\flint_io.cc\ 52 $(INTDIR)\flint_lock.cc\53 51 $(INTDIR)\flint_metadata.cc\ 54 52 $(INTDIR)\flint_modifiedpostlist.cc\ 55 53 $(INTDIR)\flint_positionlist.cc\ -
win32_bin.mak
24 24 25 25 SRCS = \ 26 26 "$(INTDIR)\xapian-compact.cc" \ 27 "$(INTDIR)\xapian-compact-chert.cc" \ 28 "$(INTDIR)\xapian-compact-brass.cc" \ 29 "$(INTDIR)\xapian-compact-flint.cc" \ 27 30 "$(INTDIR)\xapian-progsrv.cc" \ 28 31 "$(INTDIR)\xapian-tcpsrv.cc" \ 29 32 "$(INTDIR)\xapian-inspect.cc" \ 30 "$(INTDIR)\xapian-check-flint.cc" \ 33 "$(INTDIR)\xapian-check-chert.cc" \ 34 "$(INTDIR)\xapian-check-brass.cc" \ 35 "$(INTDIR)\xapian-check-flint.cc" \ 31 36 "$(INTDIR)\xapian-check.cc" \ 32 37 "$(INTDIR)\xapian-replicate.cc" \ 33 38 "$(INTDIR)\xapian-replicate-server.cc" … … 35 40 36 41 ALL : $(PROGRAMS) 37 42 38 XAPIAN_COMPACT_OBJS= "$(INTDIR)\xapian-compact.obj" 43 XAPIAN_COMPACT_OBJS= \ 44 "$(INTDIR)\xapian-compact.obj" \ 45 "$(INTDIR)\xapian-compact-flint.obj" \ 46 "$(INTDIR)\xapian-compact-chert.obj" \ 47 "$(INTDIR)\xapian-compact-brass.obj" 39 48 40 49 XAPIAN_PROGSRV_OBJS= "$(INTDIR)\xapian-progsrv.obj" 41 50 … … 43 52 44 53 XAPIAN_INSPECT_OBJS= "$(INTDIR)\xapian-inspect.obj" 45 54 46 XAPIAN_CHECK_OBJS= "$(INTDIR)\xapian-check.obj" "$(INTDIR)\xapian-check-flint.obj" 55 XAPIAN_CHECK_OBJS= \ 56 "$(INTDIR)\xapian-check.obj" \ 57 "$(INTDIR)\xapian-check-flint.obj" \ 58 "$(INTDIR)\xapian-check-chert.obj" \ 59 "$(INTDIR)\xapian-check-brass.obj" 47 60 48 61 XAPIAN_REPLICATE_OBJS= "$(INTDIR)\xapian-replicate.obj" 49 62 … … 66 79 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" 67 80 68 81 CPP_PROJ=$(CPPFLAGS_EXTRA) \ 69 /I ".." /I "..\testsuite" /I"..\backends\flint" /I"..\backends\chert" \82 /I ".." /I "..\testsuite" /I"..\backends\flint" /I"..\backends\chert" /I"..\backends\brass"\ 70 83 /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /Tp$(INPUTNAME) 71 84 72 85 CPP_OBJS=..\win32\$(XAPIAN_DEBUG_OR_RELEASE) … … 114 127 "$(OUTDIR)\xapian-check.exe" : "$(OUTDIR)" $(DEF_FILE) $(XAPIAN_CHECK_OBJS) \ 115 128 $(PROGRAM_DEPENDENCIES) 116 129 $(LINK32) @<< 117 $(ALL_LINK32_FLAGS) /out:"$(OUTDIR)\xapian-check.exe" $(DEF_FLAGS) $(XAPIAN_CHECK_OBJS) "$(OUTLIBDIR)\libflintbtreecheck.lib" "$(OUTLIBDIR)\libchertbtreecheck.lib" 130 $(ALL_LINK32_FLAGS) /out:"$(OUTDIR)\xapian-check.exe" $(DEF_FLAGS) $(XAPIAN_CHECK_OBJS) "$(OUTLIBDIR)\libflintbtreecheck.lib" "$(OUTLIBDIR)\libchertbtreecheck.lib" "$(OUTLIBDIR)\libbrassbtreecheck.lib" 118 131 << 119 132 $(MANIFEST) "$(OUTDIR)\xapian-check.exe.manifest" -outputresource:"$(OUTDIR)\xapian-check.exe;1" 120 133 -@erase "$(OUTDIR)\xapian-check.exe.manifest" -
win32_tests.mak
182 182 -@erase api_all.h 183 183 -@erase $(COLLATED_APITEST_HEADERS) 184 184 if exist ".btreetmp" rmdir ".btreetmp" /s /q 185 if exist ".stub" rmdir ".stub" /s /q 186 if exist ".quartz" rmdir ".quartz" /s /q 185 187 if exist ".flint" rmdir ".flint" /s /q 186 if exist ".quartz" rmdir ".quartz" /s /q 188 if exist ".chert" rmdir ".chert" /s /q 189 if exist ".brass" rmdir ".brass" /s /q 190 if exist ".multiflint" rmdir ".multiflint" /s /q 191 if exist ".multichert" rmdir ".multichert" /s /q 192 if exist ".multibrass" rmdir ".multibrass" /s /q 187 193 if exist ".quartztmp" rmdir ".quartztmp" /s /q 188 194 189 195 -
win32_testsuite.mak
21 21 $(INTDIR)\testutils.obj \ 22 22 $(INTDIR)\backendmanager.obj \ 23 23 $(INTDIR)\backendmanager_flint.obj \ 24 $(INTDIR)\backendmanager_brass.obj \ 24 25 $(INTDIR)\backendmanager_chert.obj \ 25 26 $(INTDIR)\backendmanager_inmemory.obj \ 26 27 $(INTDIR)\backendmanager_multi.obj \ … … 37 38 $(INTDIR)\testutils.cc \ 38 39 $(INTDIR)\backendmanager.cc \ 39 40 $(INTDIR)\backendmanager_flint.cc \ 41 $(INTDIR)\backendmanager_brass.cc \ 40 42 $(INTDIR)\backendmanager_chert.cc \ 41 43 $(INTDIR)\backendmanager_inmemory.cc \ 42 44 $(INTDIR)\backendmanager_multi.cc \