Ticket #116: pylib.2.patch

File pylib.2.patch, 2.4 KB (added by Mark Hammond, 17 years ago)

includes both relevant files

  • xapian-maintainer-tools/win32msvc/win32_bindings_python.mak

     
    3030 "$(OUTLIBDIR)\libqueryparser.lib" \
    3131 "$(OUTLIBDIR)\libremote.lib" \
    3232 "$(OUTLIBDIR)\libnet.lib" \
    33  "$(PYTHON_LIB)"
     33 $(NULL)
    3434
    3535LIB_XAPIAN_OBJS= ".\xapian_wrap.obj"
    3636
     
    7171CPP_OBJS=$(XAPIAN_CORE_REL_PYTHON)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\
    7272CPP_SBRS=.
    7373
    74 ALL_LINK32_FLAGS=$(LINK32_FLAGS) $(XAPIAN_DEPENDENCIES)
     74ALL_LINK32_FLAGS=$(LINK32_FLAGS) $(XAPIAN_DEPENDENCIES) "/LIBPATH:$(PYTHON_LIB_DIR)"
    7575
    7676modern/xapian_wrap.cc modern/xapian_wrap.h modern/xapian.py: ../xapian.i util.i extra.i except.i
    7777        -erase /Q modern
  • xapian-maintainer-tools/win32msvc/config.mak

     
    44# www.lemurconsulting.com
    55#
    66# Modify this file to set any extra Xapian build flags
     7#
     8# HINT: Instead of modifying this file, consider passing new values
     9# on the command-line.  For example:
     10#  % nmake -f win32.mak PERL_DIR=c:\perl\bin SWIG=c:\something\swig.exe
     11# Would override the variables without requiring you change anything...
    712
    813!IF "$(OS)" == "Windows_NT"
    914NULL=
     
    4348#A 'PC' directory is also included for people building from a source tree.
    4449PYTHON_INCLUDE_2=$(PYTHON_DIR)\PC
    4550
    46  # PYTHON_LIB : Set this to the python library including path for linking with
    47 # Currently, a DEBUG xapian implies a DEBUG Python - in the future, it
    48 # might be desirable to mix-and-match, but for now, we stay consistent.
    49 !if "$(DEBUG)"=="1"
    50 PYTHON_LIB=$(PYTHON_DIR)\PCBuild\python25_d.lib
    51 !else
    52 PYTHON_LIB=$(PYTHON_DIR)\PCBuild\python25.lib
    53 !endif
     51# PYTHON_LIB_DIR : Set this to the directory containing python*.lib
     52# It should only be necessary to change this for source builds of Python,
     53# where the files are in 'PCBuild' rather than 'libs' (this magically works
     54# as Python uses a #pragma to reference the library base name - which
     55# includes any version numbers and debug suffixes ('_d'))
     56PYTHON_LIB_DIR=$(PYTHON_DIR)\libs
    5457# -------------end Python settings-------------
    5558
    5659