Ticket #127: win32_bindings_python.patch
File win32_bindings_python.patch, 1.8 KB (added by , 18 years ago) |
---|
-
win32_bindings_python.mak
37 37 OUTDIR=$(XAPIAN_CORE_REL_PYTHON)\win32\$(XAPIAN_DEBUG_OR_RELEASE)\Python 38 38 INTDIR=.\ 39 39 40 ALL : "$(OUTDIR)\_xapian.pyd" "$(OUTDIR)\xapian.py" "$(OUTDIR)\smoketest.py" 40 # Debug builds of Python *insist* on a '_d' suffix for extension modules. 41 !if "$(DEBUG)" == "1" 42 PY_DEBUG_SUFFIX=_d 43 !else 44 PY_DEBUG_SUFFIX= 45 !endif 41 46 47 48 ALL : "$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).pyd" "$(OUTDIR)\xapian.py" "$(OUTDIR)\smoketest.py" 49 42 50 CLEAN : 43 -@erase "$(OUTDIR)\_xapian .pyd"44 -@erase "$(OUTDIR)\_xapian .exp"45 -@erase "$(OUTDIR)\_xapian .lib"51 -@erase "$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).pyd" 52 -@erase "$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).exp" 53 -@erase "$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).lib" 46 54 -@erase $(LIB_XAPIAN_OBJS) 47 55 -@erase "$(OUTDIR)\xapian.py" 48 56 -@erase "$(OUTDIR)\xapian.pyc" … … 83 91 -erase modern/xapian.py 84 92 -rename modern/xapian_py.tmp modern/xapian.py 85 93 86 "$(OUTDIR)\_xapian .pyd" : "$(OUTDIR)" $(DEF_FILE) $(LIB_XAPIAN_OBJS) \94 "$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).pyd" : "$(OUTDIR)" $(DEF_FILE) $(LIB_XAPIAN_OBJS) \ 87 95 $(XAPIAN_DEPENDENCIES) 88 96 $(LINK32) @<< 89 $(ALL_LINK32_FLAGS) /DLL /out:"$(OUTDIR)\_xapian .pyd" $(DEF_FLAGS) $(LIB_XAPIAN_OBJS)97 $(ALL_LINK32_FLAGS) /DLL /out:"$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).pyd" $(DEF_FLAGS) $(LIB_XAPIAN_OBJS) 90 98 << 91 99 92 100 … … 99 107 100 108 "$(OUTDIR)\xapian.py" : "modern\xapian.py" 101 109 -copy $** "$(OUTDIR)\xapian.py" 102 $(MANIFEST) "$(OUTDIR)\_xapian .pyd.manifest" -outputresource:"$(OUTDIR)\_xapian.pyd;2"110 $(MANIFEST) "$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).pyd.manifest" -outputresource:"$(OUTDIR)\_xapian$(PY_DEBUG_SUFFIX).pyd;2" 103 111 104 112 105 113 "$(OUTDIR)\smoketest.py" : ".\smoketest.py"