Ticket #495: patch45.patch
File patch45.patch, 47.0 KB (added by , 14 years ago) |
---|
-
ChangeLog
1 Fri Sep 03 13:35:00 GMT 2010 Charlie Hull <charlie@flax.co.uk> 2 3 * README: remove details of some patches that are no longer necessary 4 * config.mak, win32_bindings_python.mak, makebinaries.py, Makefile: 5 add Python 2.7 support 6 * config.mak, win32_bindings_php.mak, makebinaries.py, Makefile: 7 add PHP 5.3 support, improve cleanup behaviour 8 9 Wed Jul 14 15:59:00 GMT 2010 Charlie Hull <charlie@flax.co.uk> 10 11 * win32_tests.mak: add unittest 12 * README: clarify deps.d and compilation errors behaviour, PCRE 13 requirements 14 * win32_common.mak, win32_backends_brass.cc, win32_matcher.cc: 15 remove omdebug.cc, brass_io.cc, rset.cc, localmatch.cc 16 * win32_matcher.cc: xorpostlist.cc now multixorpostlist.cc, add 17 localsubmatch.cc 18 * win32_tests.cc: add missing api_opvalue.cc, api_opsynonym.cc, 19 api_stem.cc 20 * win32_bindings_python.mak: copy test_xapian_star.py for testing 21 * win32_bindings_csharp.mak: add missing StemImplementation.cs 22 * win32_applications_omega: changed way .objs are listed to match 1.0 23 branch), add missing object files, add PCRE lib 24 * config.mak: add PCRE file locations 25 * win32_languages_mak: use SnowballStemImplementation 26 1 27 Mon May 17 10:37:26 GMT 2010 Richard Boulton <richard@tartarus.org> 2 28 3 29 Patch from Charlie Hull: -
config.h.omega.win32
83 83 #define PACKAGE_NAME "xapian-omega" 84 84 85 85 /* Define to the full name and version of this package. */ 86 #define PACKAGE_STRING "xapian-omega 1. 0.11"86 #define PACKAGE_STRING "xapian-omega 1.2.3" 87 87 88 88 /* Define to the one symbol short name of this package. */ 89 89 #define PACKAGE_TARNAME "xapian-omega" 90 90 91 91 /* Define to the version of this package. */ 92 #define PACKAGE_VERSION "1. 0.11"92 #define PACKAGE_VERSION "1.2.3" 93 93 94 94 /* Define to the name of a function implementing snprintf but not caring about 95 95 ISO C90 return value semantics (if one exists) */ … … 106 106 /* USE_ICONV */ 107 107 108 108 /* Version number of package */ 109 #define VERSION "1. 0.11"109 #define VERSION "1.2.3" 110 110 111 111 /* Define to 1 if your processor stores words with the most significant byte 112 112 first (like Motorola and SPARC, unlike Intel and VAX). */ -
config.h.win32
99 99 #define PACKAGE_NAME "xapian-core" 100 100 101 101 /* Define to the full name and version of this package. */ 102 #define PACKAGE_STRING "xapian-core 1. 1.0"102 #define PACKAGE_STRING "xapian-core 1.2.3" 103 103 104 104 /* Define to the one symbol short name of this package. */ 105 105 #define PACKAGE_TARNAME "xapian-core" 106 106 107 107 /* Define to the version of this package. */ 108 #define PACKAGE_VERSION "1. 1.0"108 #define PACKAGE_VERSION "1.2.3" 109 109 110 110 /* explicit prototype needed for pread (if any) */ 111 111 /* #undef PREAD_PROTOTYPE */ … … 128 128 #define STDC_HEADERS 1 129 129 130 130 /* Version number of package */ 131 #define VERSION "1. 1.0"131 #define VERSION "1.2.3" 132 132 133 133 /* Define if you want debugging to be enabled (will cause some slow down) */ 134 134 /* #undef XAPIAN_DEBUG */ -
config.mak
24 24 # win32_applications_omega.mak 25 25 # win32_bindings_python.mak 26 26 # and any other bindings mak files 27 XAPIAN_APPLICATIONS=..\..\xapian- applications\omega27 XAPIAN_APPLICATIONS=..\..\xapian-omega 28 28 XAPIAN_BINDINGS=..\..\xapian-bindings 29 29 30 30 # ------------- Perl settings------------- … … 87 87 # includes any version numbers and debug suffixes ('_d')) 88 88 PYTHON_LIB_DIR_26=$(PYTHON_DIR_26)\libs 89 89 90 # Python folder for 2.7 91 PYTHON_DIR_27=c:\Python27 92 # Python executable 93 PYTHON_EXE_27=$(PYTHON_DIR_27)\python.exe 94 #PYTHON_INCLUDE : Set this to the directory that contains python.h 95 PYTHON_INCLUDE_27=$(PYTHON_DIR_27)\include 96 #A 'PC' directory is also included for people building from a source tree. 97 PYTHON_INCLUDE_2_27=$(PYTHON_DIR_27)\PC 98 99 # PYTHON_LIB_DIR : Set this to the directory containing python*.lib 100 # It should only be necessary to change this for source builds of Python, 101 # where the files are in 'PCBuild' rather than 'libs' (this magically works 102 # as Python uses a #pragma to reference the library base name - which 103 # includes any version numbers and debug suffixes ('_d')) 104 PYTHON_LIB_DIR_27=$(PYTHON_DIR_27)\libs 105 90 106 # Python folder for 3.0 91 107 PYTHON_DIR_30=c:\Program Files\Python30 92 108 # Python executable … … 109 125 110 126 # -------------end Python settings------------- 111 127 112 113 128 # -------------PHP settings------------- 114 129 # PHP source folder 115 PHP _SRC_DIR=C:\work\php-5.2.1130 PHP52_SRC_DIR=C:\work\php-5.2.1 116 131 117 PHP _INCLUDE_CPPFLAGS= \118 -I "$(PHP _SRC_DIR)" -I "$(PHP_SRC_DIR)\tsrm" -I "$(PHP_SRC_DIR)\Zend" -I "$(PHP_SRC_DIR)\main" -I "$(PHP_SRC_DIR)\regex" \119 -D ZTS=1 -D ZEND_WIN32=1 -D PHP_WIN32=1 -D ZEND_WIN32_FORCE_INLINE -D HAVE_WIN32STD=1 \132 PHP52_INCLUDE_CPPFLAGS= \ 133 -I "$(PHP52_SRC_DIR)" -I "$(PHP52_SRC_DIR)\tsrm" -I "$(PHP52_SRC_DIR)\Zend" -I "$(PHP52_SRC_DIR)\main" -I "$(PHP52_SRC_DIR)\regex" \ 134 -D ZTS=1 -D ZEND_WIN32=1 -D PHP_WIN32=1 -D ZEND_WIN32_FORCE_INLINE -D HAVE_WIN32STD=1 120 135 121 # version 4 or 5: Define exactly the one you want and leave the other one 122 # commented out. Note you will have to modify the paths below as well. 123 #PHP_MAJOR_VERSION = 4 124 PHP_MAJOR_VERSION = 5 136 # PHP_EXE_DIR: Set this to the folder where the PHP executable is 137 # PHP_LIB : Set this to the path to the PHP library 138 !if "$(DEBUG)"=="1" 139 PHP52_EXE_DIR="$(PHP52_SRC_DIR)\Debug_TS" 140 PHP52_LIB="$(PHP52_EXE_DIR)\php5ts_debug.lib" 141 PHP52_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=1" 142 !else 143 PHP52_EXE_DIR="$(PHP52_SRC_DIR)\Release_TS" 144 PHP52_LIB="$(PHP52_EXE_DIR)\php5ts.lib" 145 PHP52_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=0" 146 !endif 125 147 148 # PHP executable 149 PHP52_EXE="$(PHP52_EXE_DIR)\PHP.exe" 150 151 # PHP 5.3.0 only ----------------- 152 # We need to build separate bindings for PHP 5.3.0 as the module API has changed 153 154 # PHP source folder - built from a snapshot according to http://wiki.php.net/internals/windows/stepbystepbuild 155 PHP53_SRC_DIR=C:\php-sdk\php53dev\vc9\x86\php5.3-201009020830 156 157 PHP53_INCLUDE_CPPFLAGS= \ 158 -I "$(PHP53_SRC_DIR)" -I "$(PHP53_SRC_DIR)\tsrm" -I "$(PHP53_SRC_DIR)\Zend" -I "$(PHP53_SRC_DIR)\main" \ 159 -D ZTS=1 -D ZEND_WIN32=1 -D PHP_WIN32=1 -D ZEND_WIN32_FORCE_INLINE -D HAVE_WIN32STD=1 160 #-I "$(PHP53_SRC_DIR)\regex" \ 161 126 162 # PHP_EXE_DIR: Set this to the folder where the PHP executable is 127 163 # PHP_LIB : Set this to the path to the PHP library 128 164 !if "$(DEBUG)"=="1" 129 PHP _EXE_DIR=C:\php-5.2.1\Debug_TS130 PHP _LIB=$(PHP_EXE_DIR)\php5ts_debug.lib131 PHP _DEBUG_OR_RELEASE= /D "ZEND_DEBUG=1"165 PHP53_EXE_DIR="$(PHP53_SRC_DIR)\Debug_TS" 166 PHP53_LIB="$(PHP53_EXE_DIR)\php5ts_debug.lib" 167 PHP53_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=1" 132 168 !else 133 PHP _EXE_DIR=C:\work\php-5.2.1-win32134 PHP _LIB=$(PHP_EXE_DIR)\dev\php5ts.lib135 PHP _DEBUG_OR_RELEASE= /D "ZEND_DEBUG=0"169 PHP53_EXE_DIR="$(PHP53_SRC_DIR)\Release_TS" 170 PHP53_LIB="$(PHP53_EXE_DIR)\php5ts.lib" 171 PHP53_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=0" 136 172 !endif 137 173 138 174 # PHP executable 139 PHP_EXE=$(PHP_EXE_DIR)\PHP.exe 175 PHP53_EXE=$(PHP53_EXE_DIR)\PHP.exe 176 # end PHP 5.3.0 only ----------------- 177 140 178 # ------------- end PHP settings------------- 141 179 142 180 # -------------Ruby settings------------- … … 171 209 172 210 # ------------- C# settings ------------ 173 211 174 CSC=" $(LIBPATH)\csc.exe"212 CSC="C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" 175 213 SN="C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\sn.exe" 176 214 177 215 # ------------- end C# settings ------------ … … 190 228 ZLIB_LIB_DIR=$(ZLIB_DIR)\lib 191 229 ZLIB_BIN_DIR=$(ZLIB_DIR) 192 230 231 PCRE_DIR=C:\Program Files\GnuWin32 232 PCRE_INCLUDE_DIR=$(PCRE_DIR)\include 233 PCRE_LIB_DIR=$(PCRE_DIR)\lib 234 235 236 193 237 #-------------------------------------- 194 238 # Visual C++ Compiler and linker programs, and flags for these 195 239 #-------------------------------------- -
makebinaries.py
115 115 zipit("xapian-%s-examples.zip" % rev,"..\\Release\\copydatabase.exe") 116 116 zipandmd5it("xapian-%s-examples.zip" % rev,"..\\Release\\simple*.exe") 117 117 zipandmd5it("xapian-%s-tools.zip" % rev,"..\\Release\\xapian*.exe") 118 zipandmd5it("xapian-%s-bindings-php.zip" % rev,"..\\Release\\PHP\\php5\\dist\\*.*") 118 zipandmd5it("xapian-%s-bindings-php52.zip" % rev,"..\\Release\\PHP52\\php5\\dist\\*.*") 119 zipandmd5it("xapian-%s-bindings-php53.zip" % rev,"..\\Release\\PHP53\\php5\\dist\\*.*") 119 120 120 121 filename = 'xapian-python-bindings for Python 2.4.4 -%s.win32.exe' % rev 121 122 os.system ('copy "..\\Release\\Python24\\dist\\%s" ' % filename) … … 123 124 filename = 'xapian-python-bindings for Python 2.5.1 -%s.win32.exe' % rev 124 125 os.system ('copy "..\\Release\\Python25\\dist\\%s" ' % filename) 125 126 md5it(filename) 126 filename = 'xapian-python-bindings for Python 2.6. 2-%s.win32.exe' % rev127 filename = 'xapian-python-bindings for Python 2.6.4 -%s.win32.exe' % rev 127 128 os.system ('copy "..\\Release\\Python26\\dist\\%s" ' % filename) 128 129 md5it(filename) 130 filename = 'xapian-python-bindings for Python 2.7.0 -%s.win32.exe' % rev 131 os.system ('copy "..\\Release\\Python27\\dist\\%s" ' % filename) 132 md5it(filename) 129 133 130 134 zipandmd5it("xapian-%s-bindings-ruby.zip" % rev,"..\\Release\\Ruby\\dist\\*.*") 131 135 zipandmd5it("xapian-%s-bindings-csharp.zip" % rev,"..\\Release\\CSharp\\dist\\*.*") 132 zipandmd5it("xapian-%s-bindings-java-swig.zip" % rev,"..\\Release\\Java-swig\\dist\\*.*")133 136 137 # Java-Swig bindings do not work in this release, see http://trac.xapian.org/ticket/474 138 # zipandmd5it("xapian-%s-bindings-java-swig.zip" % rev,"..\\Release\\Java-swig\\dist\\*.*") 139 134 140 # Make a HTML list 135 141 ifi = open(tmpfile, "r") 136 142 ofi = open(newhtml, "w") 137 143 print >> ofi, r"<html><head></head><body><table>" 138 144 print >> ofi, r"<!-- cut and paste from after here -->" 139 print >> ofi, r'<tr><td><b>' + rev + '</b><br><br>' 140 print >> ofi, r'<a href=xapian/' + revnodots + '/xapian-core-' + rev + '.tar.gz>xapian-core-' + rev + '.tar.gz</a><br>' 141 print >> ofi, r'<a href=xapian/' + revnodots + '/xapian-bindings-' + rev + '.tar.gz>xapian-bindings-' + rev + '.tar.gz</a><br>' 142 print >> ofi, r'<a href=xapian/' + revnodots + '/xapian-omega-' + rev + '.tar.gz>xapian-omega-' + rev + '.tar.gz</a></td>' 143 print >> ofi, '<td><a href=\"xapian/' + revnodots + '/win32.zip\">win32.zip</a></td>' 144 print >> ofi, r'<td><a href="xapian/' + revnodots + '/readme.txt\">readme.txt</a></td><td>' 145 print >> ofi, r" <tr>" 146 print >> ofi, r" <td class version>" 147 print >> ofi, r" <h3>" + rev + " <?php binaries_link('xapian/" + revnodots + "/readme.txt'); ?></h3>" 148 print >> ofi, r" <h4>Source</h4>" 149 print >> ofi, r" <?php binaries_link('xapian/" + revnodots + "/xapian-core-" + rev + ".tar.gz'); ?>" 150 print >> ofi, r" <?php binaries_link('xapian/" + revnodots + "/xapian-bindings-" + rev + ".tar.gz'); ?>" 151 print >> ofi, r" <?php binaries_link('xapian/" + revnodots + "/xapian-omega-" + rev + ".tar.gz'); ?>" 152 print >> ofi, r" <h4>Build Files</h4>" 153 print >> ofi, r" <?php binaries_link('xapian/" + revnodots + "/win32.zip'); ?>" 154 print >> ofi, r" </td>" 155 print >> ofi, r' <td class="binaries">' 156 print >> ofi, r" <?php binaries_list(array(" 145 157 for line in ifi: 146 158 parts = line.split('*') 147 159 print parts 148 160 parts1mod = parts[1].replace("\n","") 149 print >> ofi, r '<a href="' + newdir + r'/' + parts[1] + r'">' + parts[1] + r'</a> MD5 sum: ' + parts[0] + r'<br>'161 print >> ofi, r" 'xapian/" + revnodots + "/" + parts1mod + r"' => '" + parts[0] + r"'," 150 162 163 print >> ofi, r" )); ?>" 164 print >> ofi, r" </td>" 165 print >> ofi, r" </tr>" 166 151 167 print >> ofi, r"<!-- cut and paste to before here -->" 152 168 print >> ofi, r"</table></body></html>" 153 169 -
Makefile
133 133 copy win32_queryparser.mak ..\queryparser\Makefile 134 134 copy win32_tests.mak ..\tests\Makefile 135 135 copy win32_testsuite.mak ..\tests\harness\Makefile 136 if exist $(XAPIAN_BINDINGS) copy $(XAPIAN_BINDINGS)\xapian-version.h.in $(XAPIAN_BINDINGS)\xapian-version.h137 136 if exist $(XAPIAN_BINDINGS) copy win32_bindings_python.mak $(XAPIAN_BINDINGS)\python\Makefile 138 137 if exist $(XAPIAN_BINDINGS) copy doccomments.i $(XAPIAN_BINDINGS)\python 139 138 if exist $(XAPIAN_BINDINGS) copy version.rc.python $(XAPIAN_BINDINGS)\python\version.rc … … 169 168 170 169 nmake PYTHON_VER=26 CLEAN 171 170 nmake PYTHON_VER=26 DIST 172 171 172 nmake PYTHON_VER=27 CLEAN 173 nmake PYTHON_VER=27 DIST 174 173 175 cd $(XAPIAN_BINDINGS)\php 174 nmake CLEAN 175 nmake DIST 176 nmake PHP_VER=52 CLEAN 177 nmake PHP_VER=52 DIST 178 nmake PHP_VER=53 CLEAN 179 nmake PHP_VER=53 DIST 176 180 177 cd $(XAPIAN_BINDINGS)\java-swig 181 # Java-Swig bindings do not work in this release, see http://trac.xapian.org/ticket/474 182 # cd $(XAPIAN_BINDINGS)\java-swig 183 # nmake CLEAN 184 # nmake DIST 185 cd $(XAPIAN_BINDINGS)\csharp 178 186 nmake CLEAN 179 187 nmake DIST 180 188 189 # Ruby fails a test in this release, but we package anyway 181 190 cd $(XAPIAN_BINDINGS)\ruby 182 191 nmake CLEAN 183 nmake DIST 192 nmake DISTNOCHECK 184 193 185 cd $(XAPIAN_BINDINGS)\csharp 186 nmake CLEAN 187 nmake DIST 194 188 195 189 196 # Header files generated automatically from various .in files 190 197 MAKEHEADERS: ..\include\xapian\error.h ..\include\xapian\version.h -
README
1 1 README for Xapian/Visual C++ Tools 2 2 ================================== 3 2010-0 3-02 for Xapian SVN HEAD3 2010-09-03 for Xapian 1.2.3 (with PHP 5.3 added) 4 4 5 5 Make files, some extra headers and associated tools for compiling Xapian on 6 6 Win32 using the Microsoft Visual C++ compilers. This is particularly useful … … 29 29 What works? 30 30 =========== 31 31 32 - The Python, PHP, Ruby, C# bindings32 - The Python, PHP, C#, Ruby bindings (but see below for the latter) 33 33 - The xapian-compact, xapian-check, xapian-inspect binaries 34 34 - The xapian-progsrv and xapian-tcpsrv binaries 35 35 - The delve, quest and copydatabase binaries 36 36 - The Xapian example binaries 37 - The testsuite, which is run as part of the makefile in tests/ 37 - The testsuite, which is run as part of the makefile in tests/, *but* see below regarding the tests 38 38 - omega, omindex and scriptindex (although these may have difficulty parsing 39 Windows directory paths) .39 Windows directory paths) 40 40 41 41 What doesn't work? 42 42 ================== 43 43 44 - Any other bindings. Java-Swig bindings do not work for SVN HEAD (note that the Java-Swig bindings 45 are still rather alpha, and may be subject to significant API change). 44 - Any other bindings. Java-Swig bindings do not work for SVN HEAD and the 45 1.2.0 series (note that the Java-Swig bindings are still rather alpha, 46 and may be subject to significant API change). See http://trac.xapian.org/ticket/474 46 47 47 48 - Warning: unlike Unix, windows does not usually allow open files to be 48 49 deleted. This caused a serious problem with releases of Xapian on … … 54 55 not expect it to cause serious problems. 55 56 56 57 - To get round the fact that MSVC doesn't do dependency checking correctly, 57 we use an external program 'xapdep'. Each Makefile use the -showIncludes switch of the MSVC 58 compiler to generate a list of includes, which xapdep then processes and inserts 59 into the Makefile in the various subdirectories. 58 we use an external program 'xapdep'. Each Makefile use the -showIncludes switch of the MSVC 59 compiler to generate a list of includes as deps.d, which xapdep then processes and inserts 60 into the Makefile in the various subdirectories. An unfortunate side effect is that 61 details of any compilation errors may be hidden: if you see: 60 62 63 NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' 64 65 this signifies a compilation error while dependencies were being checked. Look at the file 66 deps.d in the appropriate folder to see what actually caused the failure. 67 68 - The 'replicate3' test currently fails on Windows for the Flint database. 69 This may be due to the test itself or the replication subsystem, so at 70 present we do not advise the use of the replication system on Windows when using a 71 Flint database. The test also hangs forever with the Brass database: if you want to run all 72 the other tests (with 'nmake check') you can comment out lines 454-495 of api_replicate.cc. 73 74 - The ruby bindings fail one of the tests, see http://trac.xapian.org/ticket/478 for 75 more details. We have opted to package them anyway (see win32_bindings_ruby.mak for how) 76 61 77 TODOS 62 78 ===== 63 79 … … 157 173 http://www.zlib.net/zlib123-dll.zip 158 174 and make sure the path to where you downloaded it matches the path in config.mak (ZLIB_DIR). 159 175 176 - For Omega you will need the PCRE library. Download from 177 http://gnuwin32.sourceforge.net/downlinks/pcre.php 178 (we have used pcre-7.0.exe) 179 and make sure the path to where you downloaded it matches the path in config.mak (PCRE_DIR). 180 160 181 - To compile the Python bindings you need Python from www.python.org. Make sure the paths to this are set correctly in config.mak (PYTHON_DIR). 161 Note that the build system supports Python 2.4, 2.5, 2.6 , and 3.0currently, you must specify which you require.182 Note that the build system supports Python 2.4, 2.5, 2.6 and 2.7 currently, you must specify which you require. 162 183 163 - To compile the PHP bindings you need:184 - To compile the PHP bindings for PHP 5.2 you need: 164 185 165 186 a. the PHP sources from www.php.net (we have used 5.2.1). 166 187 b. the built sources from a Windows binary distribution 167 c. to edit config.mak to use the correct paths to PHP and to select the right version of PHP to build. 188 c. to edit config.mak to use the correct paths to PHP 5.2 and to select the right version of PHP to build. 189 190 - To compile the PHP bindings for PHP 5.3 you need to: 168 191 192 a. follow the instructions at http://wiki.php.net/internals/windows/stepbystepbuild 193 b. to edit config.mak to use the correct paths to PHP 5.3 and to select the right version of PHP to build. 194 169 195 - To compile the Java-swig bindings you need the Java SE Development Kit from http://java.sun.com/javase/downloads/index.jsp (we have used the 1.6.0_05 release). Make sure the paths to this are set correctly in config.mak (JAVA_DIR) 170 196 171 197 - To compile the Ruby bindings you will need the one-click installer for Ruby 1.8.6 from http://www.ruby-lang.org/en/downloads/ - config.mak has settings that will work if this is installed at the default location of c:\ruby. Note that you will have to change the "!=" in the first line of c:\ruby\lib\ruby\1.8\i386-mswin32\config.h … … 216 242 - to build and run the test suite 217 243 5b) nmake 218 244 - to just build. 245 246 **NOTE: if you get the following error: 219 247 248 NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' 249 250 this signifies a compilation error while dependencies were being checked. Look at the file 251 deps.d in the appropriate folder to see what actually caused the failure. 252 220 253 To build the bindings (do steps 1-5 above first to make sure you have Xapian built): 221 254 222 255 6) cd to xapian-core-0.x.y\win32 or the appropriate path on your system. … … 244 277 nmake PYTHON_VER=24 .. 245 278 to make bindings for Python 2.4 or 246 279 nmake PYTHON_VER=25 .. 247 280 etc. 281 248 282 11f) For Ruby only, use 249 283 nmake INSTALL 250 284 to install the bindings to the standard Ruby library folder. 251 285 252 286 11g) For PHP only, use 287 nmake PHP_VER=52 288 to make bindings for PHP 5.2.x, or 289 nmake PHP_VER=53 290 to make bindings for PHP 5.3.x 291 253 292 To build *all* the bindings (usually only done by those distributing binaries): 254 293 255 294 12) cd to xapian-core-0.x.y\win32 or the appropriate path on your system. -
win32_applications_omega.mak
10 10 11 11 # Where the core is, relative to the Omega application 12 12 # Change this to match your environment 13 XAPIAN_CORE_REL_OMEGA=..\ ..\xapian-core13 XAPIAN_CORE_REL_OMEGA=..\xapian-core 14 14 15 15 !IF "$(OS)" == "Windows_NT" 16 16 NULL= … … 31 31 OUTEXEDIR=$(XAPIAN_CORE_REL_OMEGA)\win32\$(XAPIAN_DEBUG_OR_RELEASE) 32 32 33 33 PROGRAMS = "$(OUTEXEDIR)\scriptindex.exe" "$(OUTEXEDIR)\omindex.exe" "$(OUTEXEDIR)\omega.exe" \ 34 "$(OUTEXEDIR)\md5test.exe" "$(OUTEXEDIR)\htmlparsetest.exe" "$(OUTEXEDIR)\utf8converttest.exe" 34 "$(OUTEXEDIR)\md5test.exe" "$(OUTEXEDIR)\htmlparsetest.exe" "$(OUTEXEDIR)\utf8converttest.exe" 35 35 36 ALL : $(PROGRAMS)36 ALL : HEADERS $(PROGRAMS) 37 37 38 38 OMEGA_OBJS= \ 39 omindex.obj myhtmlparse.obj htmlparse.obj\ 40 getopt.obj commonhelp.obj utils.obj hashterm.obj loadfile.obj md5.obj\ 41 md5wrap.obj xmlparse.obj metaxmlparse.obj utf8convert.obj sample.obj diritor.obj\ 42 runfilter.obj freemem.obj msvc_dirent.obj xpsxmlparse.obj mkdtemp.obj 43 39 "$(OUTDIR)\omega.obj" \ 40 "$(OUTDIR)\query.obj" \ 41 "$(OUTDIR)\cgiparam.obj" \ 42 "$(OUTDIR)\utils.obj" \ 43 "$(OUTDIR)\configfile.obj" \ 44 "$(OUTDIR)\date.obj" \ 45 "$(OUTDIR)\cdb_init.obj" \ 46 "$(OUTDIR)\cdb_find.obj" \ 47 "$(OUTDIR)\cdb_hash.obj" \ 48 "$(OUTDIR)\cdb_unpack.obj" \ 49 "$(OUTDIR)\loadfile.obj" \ 50 "$(OUTDIR)\utf8convert.obj" \ 51 "$(OUTDIR)\datematchdecider.obj" \ 52 "$(OUTDIR)\weight.obj" \ 53 "$(OUTDIR)\str.obj" \ 54 "$(OUTDIR)\transform.obj" 55 44 56 OMINDEX_OBJS= \ 45 omindex.obj myhtmlparse.obj htmlparse.obj\ 46 getopt.obj commonhelp.obj utils.obj hashterm.obj loadfile.obj md5.obj\ 47 md5wrap.obj xmlparse.obj metaxmlparse.obj utf8convert.obj sample.obj diritor.obj\ 48 runfilter.obj freemem.obj msvc_dirent.obj xpsxmlparse.obj mkdtemp.obj 57 "$(OUTDIR)\omindex.obj" \ 58 "$(OUTDIR)\myhtmlparse.obj" \ 59 "$(OUTDIR)\htmlparse.obj" \ 60 "$(OUTDIR)\getopt.obj" \ 61 "$(OUTDIR)\commonhelp.obj" \ 62 "$(OUTDIR)\utils.obj" \ 63 "$(OUTDIR)\hashterm.obj" \ 64 "$(OUTDIR)\loadfile.obj" \ 65 "$(OUTDIR)\md5.obj" \ 66 "$(OUTDIR)\md5wrap.obj" \ 67 "$(OUTDIR)\xmlparse.obj" \ 68 "$(OUTDIR)\metaxmlparse.obj" \ 69 "$(OUTDIR)\utf8convert.obj" \ 70 "$(OUTDIR)\sample.obj" \ 71 "$(OUTDIR)\diritor.obj" \ 72 "$(OUTDIR)\mkdtemp.obj" \ 73 "$(OUTDIR)\runfilter.obj" \ 74 "$(OUTDIR)\freemem.obj" \ 75 "$(OUTDIR)\msvc_dirent.obj" \ 76 "$(OUTDIR)\xpsxmlparse.obj" \ 77 "$(OUTDIR)\str.obj" 49 78 50 79 51 80 SCRIPTINDEX_OBJS= \ 52 scriptindex.obj myhtmlparse.obj htmlparse.obj\ 53 getopt.obj commonhelp.obj utils.obj hashterm.obj loadfile.obj\ 54 safe.obj stringutils.obj utf8convert.obj utf8truncate.obj 81 "$(OUTDIR)\scriptindex.obj" \ 82 "$(OUTDIR)\myhtmlparse.obj" \ 83 "$(OUTDIR)\htmlparse.obj" \ 84 "$(OUTDIR)\getopt.obj" \ 85 "$(OUTDIR)\commonhelp.obj" \ 86 "$(OUTDIR)\utils.obj" \ 87 "$(OUTDIR)\hashterm.obj" \ 88 "$(OUTDIR)\loadfile.obj" \ 89 "$(OUTDIR)\safe.obj" \ 90 "$(OUTDIR)\stringutils.obj" \ 91 "$(OUTDIR)\utf8convert.obj" \ 92 "$(OUTDIR)\utf8truncate.obj" 55 93 56 94 57 95 HTMLPARSETEST_OBJS= \ 58 htmlparsetest.obj myhtmlparse.obj htmlparse.obj utf8convert.obj 96 "$(OUTDIR)\htmlparsetest.obj" \ 97 "$(OUTDIR)\myhtmlparse.obj" \ 98 "$(OUTDIR)\htmlparse.obj" \ 99 "$(OUTDIR)\utf8convert.obj" 59 100 60 101 MD5TEST_OBJS= \ 61 md5test.obj md5wrap.obj md5.obj 102 "$(OUTDIR)\md5.obj" \ 103 "$(OUTDIR)\md5wrap.obj" \ 104 "$(OUTDIR)\md5test.obj" 62 105 63 106 UTF8CONVERTTEST_OBJS= \ 64 utf8converttest.obj utf8convert.obj 107 "$(OUTDIR)\utf8convert.obj" \ 108 "$(OUTDIR)\utf8converttest.obj" 65 109 66 110 SRCS= \ 67 111 "$(INTDIR)\omega.cc" \ … … 75 119 "$(INTDIR)\cdb_hash.cc" \ 76 120 "$(INTDIR)\cdb_unpack.cc" \ 77 121 "$(INTDIR)\loadfile.cc" \ 78 "$(INTDIR)\utf8convert.cc" \79 122 "$(INTDIR)\datematchdecider.cc" \ 80 123 "$(INTDIR)\omindex.cc" \ 81 124 "$(INTDIR)\myhtmlparse.cc" \ … … 95 138 "$(INTDIR)\scriptindex.cc" \ 96 139 "$(INTDIR)\myhtmlparse.cc" \ 97 140 "$(INTDIR)\htmlparse.cc" \ 98 "$(INTDIR)\common\getopt.cc" \99 141 "$(INTDIR)\commonhelp.cc" \ 100 142 "$(INTDIR)\utils.cc" \ 101 143 "$(INTDIR)\hashterm.cc" \ 102 144 "$(INTDIR)\loadfile.cc" \ 103 145 "$(INTDIR)\common\safe.cc" \ 104 "$(INTDIR)\utf8convert test.cc" \146 "$(INTDIR)\utf8convert.cc" \ 105 147 "$(INTDIR)\utf8truncate.cc" \ 106 148 "$(INTDIR)\htmlparsetest.cc" \ 107 149 "$(INTDIR)\myhtmlparse.cc" \ … … 112 154 "$(INTDIR)\md5test.cc" \ 113 155 "$(INTDIR)\diritor.cc" \ 114 156 "$(INTDIR)\runfilter.cc" \ 115 "$(OUTDIR)\xpsxmlparse.cc" \ 116 "$(OUTDIR)\weight.cc" \ 117 "$(OUTDIR)\freemem.cc" 157 "$(OUTDIR)\xpsxmlparse.cc" \ 158 "$(OUTDIR)\common\stringutils.cc" \ 159 "$(OUTDIR)\common\str.cc" \ 160 "$(OUTDIR)\common\safe.cc" \ 161 "$(OUTDIR)\transform.cc" 118 162 119 163 120 164 CLEAN : … … 123 167 -@erase $(OMINDEX_OBJS) 124 168 -@erase $(SCRIPTINDEX_OBJS) 125 169 -@erase $(HTMLPARSETEST_OBJS) 126 -@erase $(UTF8CONVERTTEST_OBJS)127 170 -@erase $(MD5TEST_OBJS) 171 -@erase $(UTF8CONVERTTEST_OBJS) 128 172 -@erase "$(INTDIR)\*.pdb" 129 173 174 #"$(OUTDIR)" : 175 # if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" 130 176 131 177 CPP_PROJ=$(CPPFLAGS_EXTRA) \ 132 -I.. -I. -I "common" -I "$(XAPIAN_CORE_REL_OMEGA)\include" -I "$(XAPIAN_CORE_REL_OMEGA)\win32" \ 178 -I "." -I "common" -I "$(XAPIAN_CORE_REL_OMEGA)\include" -I "$(XAPIAN_CORE_REL_OMEGA)\win32" \ 179 -I "$(PCRE_INCLUDE_DIR)" \ 133 180 -Fo"$(INTDIR)\\" -Fd"$(INTDIR)\\" -Tp$(INPUTNAME) 134 181 135 182 CPP_OBJS=..\win32\$(XAPIAN_DEBUG_OR_RELEASE) 136 183 CPP_SBRS=. 137 184 138 ALL_LINK32_FLAGS=$(LINK32_FLAGS) $(XAPIAN_LIBS) 185 ALL_LINK32_FLAGS=$(LINK32_FLAGS) $(XAPIAN_LIBS) "$(PCRE_LIB_DIR)/pcre.lib" 139 186 140 187 PROGRAM_DEPENDENCIES = 141 188 … … 173 220 $(ALL_LINK32_FLAGS) /out:"$(OUTEXEDIR)\md5test.exe" $(DEF_FLAGS) $(MD5TEST_OBJS) 174 221 << 175 222 176 "$(OUTEXEDIR)\ UTF8CONVERTTEST.exe" : "$(OUTEXEDIR)" $(DEF_FILE) $(UTF8CONVERTTEST_OBJS)223 "$(OUTEXEDIR)\utf8converttest.exe" : "$(OUTEXEDIR)" $(DEF_FILE) $(UTF8CONVERTTEST_OBJS) 177 224 $(PROGRAM_DEPENDENCIES) 178 225 $(LINK32) @<< 179 $(ALL_LINK32_FLAGS) /out:"$(OUTEXEDIR)\ UTF8CONVERTTEST.exe" $(DEF_FLAGS) $(UTF8CONVERTTEST_OBJS)226 $(ALL_LINK32_FLAGS) /out:"$(OUTEXEDIR)\utf8converttest.exe" $(DEF_FLAGS) $(UTF8CONVERTTEST_OBJS) 180 227 << 181 228 182 # rules for various files in subfolders 183 184 "dirent.obj" : "$(XAPIAN_CORE_REL_OMEGA)\win32\dirent.c" 229 "$(INTDIR)\msvc_dirent.obj" : ".\common\msvc_dirent.cc" 185 230 $(CPP) @<< 186 231 $(CPP_PROJ) $** 187 232 << 188 233 189 "getopt.obj" : ".\common\getopt.cc" 234 235 "$(INTDIR)\getopt.obj" : ".\common\getopt.cc" 190 236 $(CPP) @<< 191 237 $(CPP_PROJ) $** 192 238 << 193 239 194 " stringutils.obj" : ".\common\stringutils.cc"240 "$(INTDIR)\mkdtemp.obj" : ".\portability\mkdtemp.cc" 195 241 $(CPP) @<< 196 242 $(CPP_PROJ) $** 197 243 << 198 244 199 " mkdtemp.obj" : ".\portability\mkdtemp.cc"245 "$(INTDIR)\safe.obj" : ".\common\safe.cc" 200 246 $(CPP) @<< 201 247 $(CPP_PROJ) $** 202 248 << 203 249 204 " safe.obj" : ".\common\safe.cc"250 "$(INTDIR)\stringutils.obj" : ".\common\stringutils.cc" 205 251 $(CPP) @<< 206 252 $(CPP_PROJ) $** 207 253 << 208 254 209 " msvc_dirent.obj" : "$(XAPIAN_CORE_REL_OMEGA)\common\msvc_dirent.cc"255 "$(INTDIR)\str.obj" : ".\common\str.cc" 210 256 $(CPP) @<< 211 257 $(CPP_PROJ) $** 212 258 << … … 228 274 -@erase deps.d 229 275 $(CPP) -showIncludes $(CPP_PROJ) $(SRCS) >>deps.d 230 276 if exist "$(XAPIAN_CORE_REL_OMEGA)\win32\$(DEPEND)" $(XAPIAN_CORE_REL_OMEGA)\win32\$(DEPEND) 231 # DO NOT DELETE THIS LINE -- xapdep depends on it. 232 No newline at end of file 277 # DO NOT DELETE THIS LINE -- xapdep depends on it. -
win32_backends_brass.mak
24 24 $(INTDIR)\brass_dbstats.obj\ 25 25 $(INTDIR)\brass_document.obj\ 26 26 $(INTDIR)\brass_inverter.obj\ 27 $(INTDIR)\brass_io.obj\28 27 $(INTDIR)\brass_metadata.obj\ 29 28 $(INTDIR)\brass_positionlist.obj\ 30 29 $(INTDIR)\brass_postlist.obj\ … … 49 48 $(INTDIR)\brass_dbstats.cc\ 50 49 $(INTDIR)\brass_document.cc\ 51 50 $(INTDIR)\brass_inverter.cc\ 52 $(INTDIR)\brass_io.cc\53 51 $(INTDIR)\brass_metadata.cc\ 54 52 $(INTDIR)\brass_positionlist.cc\ 55 53 $(INTDIR)\brass_postlist.cc\ -
win32_bindings_csharp.mak
20 20 BINDING=_XapianSharp 21 21 22 22 XAPIAN_SWIG_CSHARP_SRCS=\ 23 AssemblyInfo.cs \24 23 Auto.cs \ 25 24 BM25Weight.cs \ 26 25 BoolWeight.cs \ 26 Brass.cs \ 27 27 Chert.cs \ 28 28 Database.cs \ 29 29 DateValueRangeProcessor.cs \ … … 34 34 ExpandDecider.cs \ 35 35 Flint.cs \ 36 36 InMemory.cs \ 37 KeyMaker.cs \ 38 MatchSpy.cs \ 37 39 MatchDecider.cs \ 38 40 MSet.cs \ 39 41 MSetIterator.cs \ … … 44 46 PostingSource.cs \ 45 47 Query.cs \ 46 48 QueryParser.cs \ 49 Registry.cs \ 47 50 Remote.cs \ 48 51 RSet.cs \ 49 SerialisationContext.cs \50 52 SimpleStopper.cs \ 51 53 SmokeTest.cs \ 52 54 Sorter.cs \ 53 55 Stem.cs \ 56 StemImplementation.cs \ 54 57 Stopper.cs \ 55 58 StringValueRangeProcessor.cs \ 56 59 SWIGTYPE_p_std__string.cs \ -
win32_bindings_java-swig.mak
19 19 Auto.java\ 20 20 BM25Weight.java\ 21 21 BoolWeight.java\ 22 Brass.java\ 22 23 Chert.java\ 23 24 Database.java\ 24 25 DateValueRangeProcessor.java\ … … 37 38 PositionIterator.java\ 38 39 PostingIterator.java\ 39 40 PostingSource.java\ 40 Quartz.java\41 41 Query.java\ 42 42 QueryParser.java\ 43 43 Remote.java\ -
win32_bindings_php.mak
14 14 !INCLUDE $(XAPIAN_CORE_REL_PHP)\win32\config.mak 15 15 16 16 LIB_XAPIAN_OBJS= ".\xapian_wrap.obj" ".\version.res" 17 18 17 CPP=cl.exe 19 18 RSC=rc.exe 20 19 21 OUTROOT=$(XAPIAN_CORE_REL_PHP)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\PHP 22 OUTDIR=$(OUTROOT)\php$(PHP_MAJOR_VERSION) 20 !if "$(PHP_VER)" == "52" 21 PHP_EXE_DIR=$(PHP52_EXE_DIR) 22 PHP_LIB = $(PHP52_LIB) 23 PHP_SRC_DIR = $(PHP52_SRC_DIR) 24 PHP_INCLUDE_CPPFLAGS = $(PHP52_INCLUDE_CPPFLAGS) 25 PHP_DEBUG_OR_RELEASE = $(PHP52_DEBUG_OR_RELEASE) 26 OUTROOT = $(XAPIAN_CORE_REL_PHP)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\PHP52 27 PHP_EXE = $(PHP52_EXE) 28 !else if "$(PHP_VER)" == "53" 29 PHP_EXE_DIR = $(PHP53_EXE_DIR) 30 PHP_LIB = $(PHP53_LIB) 31 PHP_SRC_DIR = $(PHP53_SRC_DIR) 32 PHP_INCLUDE_CPPFLAGS = $(PHP53_INCLUDE_CPPFLAGS) 33 PHP_DEBUG_OR_RELEASE = $(PHP53_DEBUG_OR_RELEASE) 34 OUTROOT = $(XAPIAN_CORE_REL_PHP)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\PHP53 35 PHP_EXE = $(PHP53_EXE) 36 !endif 37 38 OUTDIR=$(OUTROOT)\php5 23 39 INTDIR=.\ 24 25 40 26 41 ALL : "$(OUTDIR)\php_xapian.dll" "$(OUTDIR)\xapian.php" \ 27 "$(OUTROOT)\smoketest.php" "$(OUTDIR)\smoketest$(PHP_MAJOR_VERSION).php"42 "$(OUTROOT)\smoketest.php" 28 43 29 44 CLEAN : 30 45 -@erase "$(OUTDIR)\php_xapian.dll" … … 32 47 -@erase "$(OUTDIR)\php_xapian.lib" 33 48 -@erase $(LIB_XAPIAN_OBJS) 34 49 -@erase "$(OUTDIR)\xapian.php" 35 -@erase "$(OUTDIR)\smoketest4.php"36 -@erase "$(OUTDIR)\smoketest5.php"37 50 -@erase "$(OUTROOT)\smoketest.php" 38 51 -@erase "$(OUTDIR)\*.pdb 52 -@erase "$(OUTDIR)\*.ilk 53 -@erase "$(OUTDIR)\*.manifest 54 -@erase "$(OUTDIR)\dist\*.php 55 -@erase "$(OUTDIR)\dist\*.dll 39 56 40 57 CLEANSWIG : 41 -@erase /Q /s php442 58 -@erase /Q /s php5 43 if exist "php4" rmdir "php4" /s /q44 59 if exist "php5" rmdir "php5" /s /q 45 60 46 61 DOTEST : 47 62 cd "$(OUTROOT)" 48 $(PHP_EXE) -q -n -d safe_mode=off -d enable_dl=on -d extension_dir="php $(PHP_MAJOR_VERSION)" -d include_path="php$(PHP_MAJOR_VERSION)" smoketest.php63 $(PHP_EXE) -q -n -d safe_mode=off -d enable_dl=on -d extension_dir="php5" -d include_path="php5" smoketest.php 49 64 50 65 CHECK: ALL DOTEST 51 66 … … 73 88 CPP_SBRS=. 74 89 75 90 !IF "$(SWIGBUILD)" == "1" 76 php4/xapian_wrap.cc php4/php_xapian.h php4/xapian.php: ../xapian.i util.i77 -erase /Q /s php478 -md php479 $(SWIG) -I"$(XAPIAN_CORE_REL_PHP)\include" $(SWIG_FLAGS) -c++ -php4 \80 -outdir php4 -o php4/xapian_wrap.cc $(srcdir)/../xapian.i81 91 82 92 php5/xapian_wrap.cc php5/php_xapian.h php5/xapian.php: ../xapian.i util.i 83 93 -erase /Q /s php5 … … 95 105 $(ALL_LINK32_FLAGS) /DLL /out:"$(OUTDIR)\php_xapian.dll" $(DEF_FLAGS) $(LIB_XAPIAN_OBJS) 96 106 << 97 107 98 "$(OUTDIR)\xapian.php" : php $(PHP_MAJOR_VERSION)\xapian.php108 "$(OUTDIR)\xapian.php" : php5\xapian.php 99 109 -copy $** "$(OUTDIR)\xapian.php" 100 110 # REMOVE THIS NEXT LINE if using Visual C++ .net 2003 - you won't need to worry about manifests 101 111 $(MANIFEST) "$(OUTDIR)\php_xapian.dll.manifest" -outputresource:"$(OUTDIR)\php_xapian.dll;2" 102 112 -@erase "$(OUTDIR)\php_xapian.dll.manifest" 103 "$(OUTDIR)\smoketest5.php" : ".\smoketest5.php" 104 -copy $** "$(OUTDIR)\smoketest5.php" 105 "$(OUTDIR)\smoketest4.php" : ".\smoketest4.php" 106 -copy $** "$(OUTDIR)\smoketest4.php" 113 107 114 "$(OUTROOT)\smoketest.php" : ".\smoketest.php" 108 115 -copy $** "$(OUTROOT)\smoketest.php" 109 116 # … … 115 122 /fo version.res \ 116 123 /I "$(XAPIAN_CORE_REL_PHP)\include" \ 117 124 /I "$(PHP_SRC_DIR)\main" \ 118 /d PHP_MAJOR_VERSION="\" $(PHP_MAJOR_VERSION)\"" \125 /d PHP_MAJOR_VERSION="\"5\"" \ 119 126 version.rc 120 127 121 ".\xapian_wrap.obj" : "php $(PHP_MAJOR_VERSION)\xapian_wrap.cc"128 ".\xapian_wrap.obj" : "php5\xapian_wrap.cc" 122 129 $(CPP) @<< 123 130 $(CPP_PROJ) $** 124 131 << … … 153 160 $(CPP_PROJ) $< 154 161 << 155 162 163 164 -
win32_bindings_python.mak
44 44 PYTHON_INCLUDE_2 = $(PYTHON_INCLUDE_2_26) 45 45 PYTHON_LIB_DIR= $(PYTHON_LIB_DIR_26) 46 46 OUTDIR=$(XAPIAN_CORE_REL_PYTHON)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\Python26 47 !else if "$(PYTHON_VER)" == "27" 48 PYTHON_EXE = $(PYTHON_EXE_27) 49 PYTHON_INCLUDE = $(PYTHON_INCLUDE_27) 50 PYTHON_INCLUDE_2 = $(PYTHON_INCLUDE_2_27) 51 PYTHON_LIB_DIR= $(PYTHON_LIB_DIR_27) 52 OUTDIR=$(XAPIAN_CORE_REL_PYTHON)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\Python27 47 53 !else if "$(PYTHON_VER)" == "30" 48 54 PYTHON_EXE = $(PYTHON_EXE_30) 49 55 PYTHON_INCLUDE = $(PYTHON_INCLUDE_30) … … 83 89 copy testsuite*.py "$(OUTDIR)" 84 90 copy smoketest*.py "$(OUTDIR)" 85 91 copy replication*.py "$(OUTDIR)" 92 copy test_xapian_star.py "$(OUTDIR)" 86 93 cd "$(OUTDIR)" 87 94 copy "$(ZLIB_BIN_DIR)\zlib1.dll" 88 95 "$(PYTHON_EXE)" smoketest.py -
win32_bindings_ruby.mak
38 38 39 39 CHECK: ALL DOTEST 40 40 41 DIST: CHECK 41 # currently the bindings fail a test so we need a target that builds DIST without CHECKing 42 # not great and should be fixed in the next release 43 DISTNOCHECK: ALL DISTROOT 44 @echo *** Built Ruby without running tests!!!! *** 45 46 DIST: CHECK DISTROOT 47 48 DISTROOT: 42 49 cd $(MAKEDIR) 43 50 if not exist "$(OUTDIR)\dist\$(NULL)" mkdir "$(OUTDIR)\dist" 44 51 if not exist "$(OUTDIR)\dist\docs\$(NULL)" mkdir "$(OUTDIR)\dist\docs" -
win32_common.mak
21 21 $(INTDIR)\io_utils.obj \ 22 22 $(INTDIR)\msvc_dirent.obj \ 23 23 $(INTDIR)\msvc_posix_wrapper.obj \ 24 $(INTDIR)\omdebug.obj \25 24 $(INTDIR)\replicate_utils.obj \ 26 25 $(INTDIR)\safe.obj \ 27 26 $(INTDIR)\serialise-double.obj \ … … 40 39 $(INTDIR)\io_utils.cc \ 41 40 $(INTDIR)\msvc_dirent.cc \ 42 41 $(INTDIR)\msvc_posix_wrapper.cc \ 43 $(INTDIR)\omdebug.cc \44 42 $(INTDIR)\replicate_utils.cc \ 45 43 $(INTDIR)\safe.cc \ 46 44 $(INTDIR)\serialise-double.cc \ -
win32_expand.mak
61 61 -@erase deps.d 62 62 $(CPP) -showIncludes $(CPP_PROJ) $(SRCS) >>deps.d 63 63 if exist "..\win32\$(DEPEND)" ..\win32\$(DEPEND) 64 # DO NOT DELETE THIS LINE -- xapdep depends on it. 64 # DO NOT DELETE THIS LINE -- xapdep depends on it. 65 No newline at end of file -
win32_languages.mak
112 112 # Generate .h and .cc files from Snowball algorithms using Snowball compiler 113 113 114 114 ".\danish.h" ".\danish.cc" : ".\danish.sbl" 115 $(SBL) danish.sbl $(SBL_OPTIONS) -o danish -n InternalStemDanish -p S tem::Internal115 $(SBL) danish.sbl $(SBL_OPTIONS) -o danish -n InternalStemDanish -p SnowballStemImplementation 116 116 117 117 ".\dutch.h" ".\dutch.cc" : ".\dutch.sbl" 118 $(SBL) dutch.sbl $(SBL_OPTIONS) -o dutch -n InternalStemDutch -p S tem::Internal118 $(SBL) dutch.sbl $(SBL_OPTIONS) -o dutch -n InternalStemDutch -p SnowballStemImplementation 119 119 120 120 ".\english.h" ".\english.cc" : ".\english.sbl" 121 $(SBL) english.sbl $(SBL_OPTIONS) -o english -n InternalStemEnglish -p S tem::Internal121 $(SBL) english.sbl $(SBL_OPTIONS) -o english -n InternalStemEnglish -p SnowballStemImplementation 122 122 123 123 ".\french.h" ".\french.cc" : ".\french.sbl" 124 $(SBL) french.sbl $(SBL_OPTIONS) -o french -n InternalStemFrench -p S tem::Internal124 $(SBL) french.sbl $(SBL_OPTIONS) -o french -n InternalStemFrench -p SnowballStemImplementation 125 125 126 126 ".\german.h" ".\german.cc" : ".\german.sbl" 127 $(SBL) german.sbl $(SBL_OPTIONS) -o german -n InternalStemGerman -p S tem::Internal127 $(SBL) german.sbl $(SBL_OPTIONS) -o german -n InternalStemGerman -p SnowballStemImplementation 128 128 129 129 ".\german2.h" ".\german2.cc" : ".\german2.sbl" 130 $(SBL) german2.sbl $(SBL_OPTIONS) -o german2 -n InternalStemGerman2 -p S tem::Internal130 $(SBL) german2.sbl $(SBL_OPTIONS) -o german2 -n InternalStemGerman2 -p SnowballStemImplementation 131 131 132 132 ".\hungarian.h" ".\hungarian.cc" : ".\hungarian.sbl" 133 $(SBL) hungarian.sbl $(SBL_OPTIONS) -o hungarian -n InternalStemHungarian -p S tem::Internal133 $(SBL) hungarian.sbl $(SBL_OPTIONS) -o hungarian -n InternalStemHungarian -p SnowballStemImplementation 134 134 135 135 ".\italian.h" ".\italian.cc" : ".\italian.sbl" 136 $(SBL) italian.sbl $(SBL_OPTIONS) -o italian -n InternalStemItalian -p S tem::Internal136 $(SBL) italian.sbl $(SBL_OPTIONS) -o italian -n InternalStemItalian -p SnowballStemImplementation 137 137 138 138 ".\norwegian.h" ".\norwegian.cc" : ".\norwegian.sbl" 139 $(SBL) norwegian.sbl $(SBL_OPTIONS) -o norwegian -n InternalStemNorwegian -p S tem::Internal139 $(SBL) norwegian.sbl $(SBL_OPTIONS) -o norwegian -n InternalStemNorwegian -p SnowballStemImplementation 140 140 141 141 ".\porter.h" ".\porter.cc" : ".\porter.sbl" 142 $(SBL) porter.sbl $(SBL_OPTIONS) -o porter -n InternalStemPorter -p S tem::Internal142 $(SBL) porter.sbl $(SBL_OPTIONS) -o porter -n InternalStemPorter -p SnowballStemImplementation 143 143 144 144 ".\portuguese.h" ".\portuguese.cc" : ".\portuguese.sbl" 145 $(SBL) portuguese.sbl $(SBL_OPTIONS) -o portuguese -n InternalStemPortuguese -p S tem::Internal145 $(SBL) portuguese.sbl $(SBL_OPTIONS) -o portuguese -n InternalStemPortuguese -p SnowballStemImplementation 146 146 147 147 ".\russian.h" ".\russian.cc" : ".\russian.sbl" 148 $(SBL) russian.sbl $(SBL_OPTIONS) -o russian -n InternalStemRussian -p S tem::Internal148 $(SBL) russian.sbl $(SBL_OPTIONS) -o russian -n InternalStemRussian -p SnowballStemImplementation 149 149 150 150 ".\spanish.h" ".\spanish.cc" : ".\spanish.sbl" 151 $(SBL) spanish.sbl $(SBL_OPTIONS) -o spanish -n InternalStemSpanish -p S tem::Internal151 $(SBL) spanish.sbl $(SBL_OPTIONS) -o spanish -n InternalStemSpanish -p SnowballStemImplementation 152 152 153 153 ".\swedish.h" ".\swedish.cc" : ".\swedish.sbl" 154 $(SBL) swedish.sbl $(SBL_OPTIONS) -o swedish -n InternalStemSwedish -p S tem::Internal154 $(SBL) swedish.sbl $(SBL_OPTIONS) -o swedish -n InternalStemSwedish -p SnowballStemImplementation 155 155 156 156 ".\kraaij_pohlmann.h" ".\kraaij_pohlmann.cc" : ".\kraaij_pohlmann.sbl" 157 $(SBL) kraaij_pohlmann.sbl $(SBL_OPTIONS) -o kraaij_pohlmann -n InternalStemKraaij_pohlmann -p S tem::Internal157 $(SBL) kraaij_pohlmann.sbl $(SBL_OPTIONS) -o kraaij_pohlmann -n InternalStemKraaij_pohlmann -p SnowballStemImplementation 158 158 159 159 ".\romanian.h" ".\romanian.cc" : ".\romanian.sbl" 160 $(SBL) romanian.sbl $(SBL_OPTIONS) -o romanian -n InternalStemRomanian -p S tem::Internal160 $(SBL) romanian.sbl $(SBL_OPTIONS) -o romanian -n InternalStemRomanian -p SnowballStemImplementation 161 161 162 162 ".\turkish.h" ".\turkish.cc" : ".\turkish.sbl" 163 $(SBL) turkish.sbl $(SBL_OPTIONS) -o turkish -n InternalStemTurkish -p S tem::Internal163 $(SBL) turkish.sbl $(SBL_OPTIONS) -o turkish -n InternalStemTurkish -p SnowballStemImplementation 164 164 165 165 ".\finnish.h" ".\finnish.cc" : ".\finnish.sbl" 166 $(SBL) finnish.sbl $(SBL_OPTIONS) -o finnish -n InternalStemFinnish -p S tem::Internal166 $(SBL) finnish.sbl $(SBL_OPTIONS) -o finnish -n InternalStemFinnish -p SnowballStemImplementation 167 167 168 168 ".\lovins.h" ".\lovins.cc" : ".\lovins.sbl" 169 $(SBL) lovins.sbl $(SBL_OPTIONS) -o lovins -n InternalStemLovins -p S tem::Internal169 $(SBL) lovins.sbl $(SBL_OPTIONS) -o lovins -n InternalStemLovins -p SnowballStemImplementation 170 170 171 171 172 172 "$(INTDIR)\stem.obj" : ".\stem.cc" -
win32_matcher.mak
21 21 $(INTDIR)\collapser.obj\ 22 22 $(INTDIR)\exactphrasepostlist.obj\ 23 23 $(INTDIR)\externalpostlist.obj\ 24 $(INTDIR)\local match.obj\24 $(INTDIR)\localsubmatch.obj\ 25 25 $(INTDIR)\mergepostlist.obj\ 26 26 $(INTDIR)\msetcmp.obj\ 27 27 $(INTDIR)\msetpostlist.obj\ 28 28 $(INTDIR)\multiandpostlist.obj\ 29 29 $(INTDIR)\multimatch.obj\ 30 $(INTDIR)\multixorpostlist.obj\ 30 31 $(INTDIR)\orpostlist.obj\ 31 32 $(INTDIR)\phrasepostlist.obj\ 32 33 $(INTDIR)\queryoptimiser.obj\ 33 $(INTDIR)\rset.obj\34 34 $(INTDIR)\selectpostlist.obj\ 35 35 $(INTDIR)\synonympostlist.obj\ 36 36 $(INTDIR)\valuerangepostlist.obj\ 37 37 $(INTDIR)\valuegepostlist.obj\ 38 38 $(INTDIR)\valuestreamdocument.obj\ 39 $(INTDIR)\xorpostlist.obj\40 39 $(INTDIR)\remotesubmatch.obj 41 40 42 41 … … 47 46 $(INTDIR)\collapser.cc\ 48 47 $(INTDIR)\exactphrasepostlist.cc\ 49 48 $(INTDIR)\externalpostlist.cc\ 50 $(INTDIR)\local match.cc\49 $(INTDIR)\localsubmatch.cc\ 51 50 $(INTDIR)\mergepostlist.cc\ 52 51 $(INTDIR)\msetcmp.cc\ 53 52 $(INTDIR)\msetpostlist.cc\ 54 53 $(INTDIR)\multiandpostlist.cc\ 55 54 $(INTDIR)\multimatch.cc\ 55 $(INTDIR)\multixorpostlist.cc\ 56 56 $(INTDIR)\orpostlist.cc\ 57 57 $(INTDIR)\phrasepostlist.cc\ 58 58 $(INTDIR)\queryoptimiser.cc\ 59 $(INTDIR)\rset.cc\60 59 $(INTDIR)\selectpostlist.cc\ 61 60 $(INTDIR)\synonympostlist.cc\ 62 61 $(INTDIR)\valuerangepostlist.cc\ 63 62 $(INTDIR)\valuegepostlist.cc\ 64 63 $(INTDIR)\valuestreamdocument.cc\ 65 $(INTDIR)\xorpostlist.cc\66 64 $(INTDIR)\remotesubmatch.cc 67 65 68 66 CLEAN : -
win32_tests.mak
18 18 PROGRAM_QUERYPARSERTEST= "$(OUTDIR)\queryparsertest.exe" 19 19 PROGRAM_STEMTEST= "$(OUTDIR)\stemtest.exe" 20 20 PROGRAM_TERMGENTEST= "$(OUTDIR)\termgentest.exe" 21 PROGRAM_UNITTEST= "$(OUTDIR)\unittest.exe" 21 22 22 23 ALL : $(CLEAN_COLLATED_HEADERS) $(PROGRAM_APITEST) $(PROGRAM_INTERNALTEST) \ 23 $(PROGRAM_QUERYPARSERTEST) $(PROGRAM_STEMTEST) $(PROGRAM_TERMGENTEST) 24 $(PROGRAM_QUERYPARSERTEST) $(PROGRAM_STEMTEST) $(PROGRAM_TERMGENTEST) $(PROGRAM_UNITTEST) 24 25 25 26 26 27 APITEST : $(PROGRAM_APITEST) … … 28 29 INTERNALTEST : $(PROGRAM_INTERNALTEST) 29 30 QUERYPARSERTEST : $(PROGRAM_QUERYPARSERTEST) 30 31 TERMGENTEST : $(PROGRAM_TERMGENTEST) 32 UNITTEST : $(PROGRAM_UNITTEST) 31 33 32 34 33 35 DOTEST : … … 38 40 queryparsertest 39 41 stemtest 40 42 termgentest 43 unittest 41 44 42 45 43 46 # remotetest … … 58 61 "$(OUTDIR)\api_compact.obj" \ 59 62 "$(OUTDIR)\api_db.obj" \ 60 63 "$(OUTDIR)\api_generated.obj" \ 64 "$(OUTDIR)\api_matchspy.obj" \ 65 "$(OUTDIR)\api_metadata.obj" \ 61 66 "$(OUTDIR)\api_nodb.obj" \ 67 "$(OUTDIR)\api_none.obj" \ 68 "$(OUTDIR)\api_opsynonym.obj" \ 69 "$(OUTDIR)\api_opvalue.obj" \ 62 70 "$(OUTDIR)\api_percentages.obj" \ 63 71 "$(OUTDIR)\api_posdb.obj" \ 72 "$(OUTDIR)\api_postingsource.obj" \ 73 "$(OUTDIR)\api_qpbackend.obj" \ 64 74 "$(OUTDIR)\api_query.obj" \ 75 "$(OUTDIR)\api_replacedoc.obj" \ 65 76 "$(OUTDIR)\api_replicate.obj" \ 77 "$(OUTDIR)\api_scalability.obj" \ 66 78 "$(OUTDIR)\api_serialise.obj" \ 67 79 "$(OUTDIR)\api_sorting.obj" \ 68 80 "$(OUTDIR)\api_sortingold.obj" \ 69 81 "$(OUTDIR)\api_spelling.obj" \ 82 "$(OUTDIR)\api_stem.obj" \ 70 83 "$(OUTDIR)\api_transdb.obj" \ 71 84 "$(OUTDIR)\api_unicode.obj" \ 72 85 "$(OUTDIR)\api_valuestats.obj" \ … … 84 97 85 98 TERMGENTEST_OBJS= "$(OUTDIR)\termgentest.obj" 86 99 100 UNITTEST_OBJS= "$(OUTDIR)\unittest.obj" 101 87 102 SRC = \ 88 103 "$(INTDIR)\apitest.cc" \ 89 104 "$(INTDIR)\dbcheck.cc" \ 90 105 "$(INTDIR)\internaltest.cc" \ 91 106 "$(INTDIR)\queryparsertest.cc" \ 92 107 "$(INTDIR)\stemtest.cc" \ 93 "$(INTDIR)\termgentest.cc" 108 "$(INTDIR)\termgentest.cc" \ 109 "$(INTDIR)\unittest.cc" 94 110 95 111 COLLATED_APITEST_SOURCES= \ 96 112 "$(INTDIR)\api_anydb.cc" \ … … 100 116 "$(INTDIR)\api_compact.cc" \ 101 117 "$(INTDIR)\api_db.cc" \ 102 118 "$(INTDIR)\api_generated.cc" \ 119 "$(INTDIR)\api_matchspy.cc" \ 120 "$(INTDIR)\api_metadata.cc" \ 103 121 "$(INTDIR)\api_nodb.cc" \ 122 "$(INTDIR)\api_none.cc" \ 123 "$(INTDIR)\api_opsynonym.cc" \ 124 "$(INTDIR)\api_opvalue.cc" \ 104 125 "$(INTDIR)\api_percentages.cc" \ 105 126 "$(INTDIR)\api_posdb.cc" \ 127 "$(INTDIR)\api_postingsource.cc" \ 128 "$(INTDIR)\api_qpbackend.cc" \ 106 129 "$(INTDIR)\api_query.cc" \ 130 "$(INTDIR)\api_replacedoc.cc" \ 107 131 "$(INTDIR)\api_replicate.cc" \ 132 "$(INTDIR)\api_scalability.cc" \ 108 133 "$(INTDIR)\api_serialise.cc" \ 109 134 "$(INTDIR)\api_sorting.cc" \ 110 135 "$(INTDIR)\api_sortingold.cc" \ 111 136 "$(INTDIR)\api_spelling.cc" \ 137 "$(INTDIR)\api_stem.cc" \ 112 138 "$(INTDIR)\api_transdb.cc" \ 113 139 "$(INTDIR)\api_unicode.cc" \ 114 140 "$(INTDIR)\api_valuestats.cc" \ … … 123 149 "$(INTDIR)\api_compact.h" \ 124 150 "$(INTDIR)\api_db.h" \ 125 151 "$(INTDIR)\api_generated.h" \ 152 "$(INTDIR)\api_matchspy.h" \ 153 "$(INTDIR)\api_metadata.h" \ 126 154 "$(INTDIR)\api_nodb.h" \ 155 "$(INTDIR)\api_none.h" \ 156 "$(INTDIR)\api_opsynonym.h" \ 127 157 "$(INTDIR)\api_percentages.h" \ 128 158 "$(INTDIR)\api_posdb.h" \ 159 "$(INTDIR)\api_postingsource.h" \ 160 "$(INTDIR)\api_qpbackend.h" \ 129 161 "$(INTDIR)\api_query.h" \ 162 "$(INTDIR)\api_replacedoc.h" \ 130 163 "$(INTDIR)\api_replicate.h" \ 164 "$(INTDIR)\api_scalability.h" \ 131 165 "$(INTDIR)\api_serialise.h" \ 132 166 "$(INTDIR)\api_sorting.h" \ 133 167 "$(INTDIR)\api_sortingold.h" \ 168 "$(INTDIR)\api_opsynonym.h" \ 134 169 "$(INTDIR)\api_spelling.h" \ 135 170 "$(INTDIR)\api_transdb.h" \ 136 171 "$(INTDIR)\api_unicode.h" \ … … 233 268 $(ALL_LINK32_FLAGS) /out:"$(OUTDIR)\remotetest.exe" $(DEF_FLAGS) $(REMOTETEST_OBJS) 234 269 << 235 270 271 "$(OUTDIR)\unittest.exe" : "$(OUTDIR)" $(DEF_FILE) $(UNITTEST_OBJS) \ 272 $(PROGRAM_DEPENDENCIES) 273 $(LINK32) @<< 274 $(ALL_LINK32_FLAGS) /out:"$(OUTDIR)\unittest.exe" $(DEF_FLAGS) $(UNITTEST_OBJS) 275 << 276 236 277 # inference rules, showing how to create one type of file from another with the same root name 237 278 {.}.cc{$(INTDIR)}.obj:: 238 279 $(CPP) @<< -
win32_unicode.mak
60 60 -@erase deps.d 61 61 $(CPP) -showIncludes $(CPP_PROJ) $(SRCS) >>deps.d 62 62 if exist "..\win32\$(DEPEND)" ..\win32\$(DEPEND) 63 # DO NOT DELETE THIS LINE -- xapdep depends on it. 63 # DO NOT DELETE THIS LINE -- xapdep depends on it. 64 No newline at end of file