Ticket #466: patch4.patch

File patch4.patch, 5.9 KB (added by Charlie Hull, 14 years ago)

Patch for MSVC makefiles - 1.0.19 release

  • ChangeLog

     
     1Fri Apr 16 09:30:20 GMT 2010  Charlie Hull <charlie@flax.co.uk>
     2
     3    * win32_tests.mak: add api_none.cc and api_replacedoc.cc to list
     4    of sources
     5    * win32_applications_omega.cc: remove extra getopt.cc from sources,
     6    change dirent.cc to msvc_dirent.cc
     7    * makebinaries.py: use Python 2.6.4
     8    * xapdep/xapdep.c: improve checking for redundant strings in dep file
     9
    110Wed Mar 17 01:20:08 GMT 2010  Olly Betts <olly@survex.com>
    211
    312        * win32_tests.mak: Remove long-defunct remotetest.cc from list of
  • makebinaries.py

     
    123123filename = 'xapian-python-bindings for Python 2.5.1 -%s.win32.exe' % rev
    124124os.system ('copy "..\\Release\\Python25\\dist\\%s" ' % filename)
    125125md5it(filename)
    126 filename = 'xapian-python-bindings for Python 2.6.2 -%s.win32.exe' % rev
     126filename = 'xapian-python-bindings for Python 2.6.4 -%s.win32.exe' % rev
    127127os.system ('copy "..\\Release\\Python26\\dist\\%s" ' % filename)
    128128md5it(filename)
    129129
  • README

     
    11README for Xapian/Visual C++ Tools
    22==================================
    3 2010-03-02 for Xapian 1.0.18
     32010-04-16 for Xapian 1.0.19
    44
    55Make files, some extra headers and associated tools for compiling Xapian on
    66Win32 using the Microsoft Visual C++ compilers. This is particularly useful
  • win32_applications_omega.mak

     
    1010
    1111# Where the core is, relative to the Omega application
    1212# Change this to match your environment
    13 XAPIAN_CORE_REL_OMEGA=..\..\xapian-core
     13XAPIAN_CORE_REL_OMEGA=..\xapian-core-1.0.19
    1414
    1515!IF "$(OS)" == "Windows_NT"
    1616NULL=
     
    6666        "$(OUTDIR)\utf8convert.obj" \
    6767        "$(OUTDIR)\sample.obj" \
    6868        "$(OUTDIR)\mkdtemp.obj" \
    69         "$(OUTDIR)\dirent.obj" \
     69        "$(OUTDIR)\msvc_dirent.obj" \
    7070        "$(OUTDIR)\diritor.obj" \
    7171        "$(OUTDIR)\runfilter.obj" \
    7272        "$(OUTDIR)\xpsxmlparse.obj"
     
    127127        "$(INTDIR)\utf8convert.cc" \
    128128        "$(INTDIR)\sample.cc" \
    129129        "$(INTDIR)\portability\mkdtemp.cc" \
    130         "$(INTDIR)\dirent.cc" \
    131130        "$(INTDIR)\scriptindex.cc" \
    132131        "$(INTDIR)\myhtmlparse.cc" \
    133132        "$(INTDIR)\htmlparse.cc" \
    134         "$(INTDIR)\getopt.cc" \
    135133        "$(INTDIR)\commonhelp.cc" \
    136134        "$(INTDIR)\utils.cc" \
    137135        "$(INTDIR)\hashterm.cc" \
     
    208206  $(ALL_LINK32_FLAGS) /out:"$(OUTEXEDIR)\md5test.exe" $(DEF_FLAGS) $(MD5TEST_OBJS)
    209207<<
    210208
    211 "$(INTDIR)\dirent.obj" : "$(XAPIAN_CORE_REL_OMEGA)\win32\dirent.c"
     209"$(INTDIR)\msvc_dirent.obj" : ".\common\msvc_dirent.cc"
    212210        $(CPP) @<<
    213211   $(CPP_PROJ) $**
    214212<<
     
    242240
    243241
    244242# Calculate any header dependencies and automatically insert them into this file
     243HEADERS :
    245244    -@erase deps.d
    246245    $(CPP) -showIncludes $(CPP_PROJ) $(SRCS) >>deps.d
    247246    if exist "$(XAPIAN_CORE_REL_OMEGA)\win32\$(DEPEND)" $(XAPIAN_CORE_REL_OMEGA)\win32\$(DEPEND)
  • win32_tests.mak

     
    6464    "$(OUTDIR)\api_generated.obj" \
    6565    "$(OUTDIR)\api_metadata.obj" \
    6666    "$(OUTDIR)\api_nodb.obj" \
     67    "$(OUTDIR)\api_none.obj" \
    6768    "$(OUTDIR)\api_percentages.obj" \
    6869    "$(OUTDIR)\api_posdb.obj" \
    6970    "$(OUTDIR)\api_qpbackend.obj" \
    7071    "$(OUTDIR)\api_query.obj" \
     72    "$(OUTDIR)\api_replacedoc.obj" \
    7173    "$(OUTDIR)\api_scalability.obj" \
    7274    "$(OUTDIR)\api_sorting.obj" \
    7375    "$(OUTDIR)\api_spelling.obj" \
     
    107109    "$(INTDIR)\api_generated.cc" \
    108110    "$(INTDIR)\api_metadata.cc" \
    109111    "$(INTDIR)\api_nodb.cc" \
     112    "$(INTDIR)\api_none.cc" \
    110113    "$(INTDIR)\api_percentages.cc" \
    111114    "$(INTDIR)\api_posdb.cc" \
    112115    "$(INTDIR)\api_qpbackend.cc" \
    113116    "$(INTDIR)\api_query.cc" \
     117    "$(INTDIR)\api_replacedoc.cc" \
    114118    "$(INTDIR)\api_scalability.cc" \
    115119    "$(INTDIR)\api_sorting.cc" \
    116120    "$(INTDIR)\api_spelling.cc" \
  • xapdep/xapdep.c

     
    7878                        while(!feof(indep))
    7979                        {
    8080                /* check for other random strings the compiler emits sometimes */
    81                 while ( (strcmp(buf, DISCARDSTRING)==0) || (strcmp(buf, DISCARDSTRING2)==0) )   
     81                while ( (strncmp(buf, DISCARDSTRING, strlen(DISCARDSTRING))==0) ||
     82                    (strncmp(buf, DISCARDSTRING2, strlen(DISCARDSTRING2))==0) )   
    8283                {
     84                      sprintf(buf,""); /* don't use the discard string later */
    8385                      if(feof(indep)) break;
    8486                      else /* skip line */
    8587                        fgets(buf, sizeof(buf), indep);
    8688                }
     89                if(feof(indep)) break;
    8790
    8891                                /* first line should be a .cc file, use this to generate the .obj file */
    8992                                for (ch=0; (buf[ch]!='.') && (buf[ch]!='\0'); ++ch)
     
    99102                                                break;
    100103                       
    101104                    /* check for other random strings the compiler emits sometimes */
    102                     if ( (strcmp(buf, DISCARDSTRING)==0) || (strcmp(buf, DISCARDSTRING2)==0) ) 
     105                    if ( (strncmp(buf, DISCARDSTRING, strlen(DISCARDSTRING))==0) ||
     106                    (strncmp(buf, DISCARDSTRING2, strlen(DISCARDSTRING2))==0) )   
    103107                        break;
    104                        
     108
    105109                    /* clean up the dependencies and write them to the makefile */
    106110                                        ch=INSET;
    107111                                        endch=strlen(buf);