Kaydet (Commit) 03604560 authored tarafından Christian Lohmaier's avatar Christian Lohmaier

fix compilation with internal python on Mac

üst 7abe7b62
......@@ -85,14 +85,10 @@ $(DLLDEST)$/%.py: %.py
cp $? $@
.ENDIF # L10N_framework
ALLTAR : $(MISC)/pythonloader.component $(eq,$(OS),MACOSX $(MISC)/installname_loader $(NULL))
ALLTAR : $(MISC)/pythonloader.component
$(MISC)/pythonloader.component .ERRREMOVE : \
$(SOLARENV)/bin/createcomponent.xslt pythonloader.component
$(XSLTPROC) --nonet --stringparam uri \
'vnd.sun.star.expand:$$OOO_BASE_DIR/program/$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt pythonloader.component
$(MISC)/installname_loader : $(LB)/$(TARGET)$(DLLPOST)
install_name_tool -change $(PYTHON_MAKEINSTALLDIR)/OOoPython.framework/Versions/$(PYMAJOR).$(PYMINOR)/OOoPython @loader_path/OOoPython.framework/Versions/$(PYMAJOR).$(PYMINOR)/OOoPython $<
touch $@
......@@ -90,7 +90,7 @@ SHL1STDLIBS= \
$(PYTHONLIB) \
$(EXTRA_FRAMEWORK_FLAG)
SHL1DEPN=
SHL1DEPN=$(eq,$(OS),MACOSX $(MISC)/framework_link $(NULL))
SHL1LIBS= $(SLB)$/$(TARGET).lib
SHL1IMPLIB= i$(TARGET)
......@@ -121,7 +121,7 @@ $(LB)$/lib$(TARGET).a: $(MISC)$/$(TARGET).def
targetdll=$(LB)$/$(TARGET)$(DLLPOST)
.ENDIF
ALLTAR : $(eq,$(OS),MACOSX $(MISC)/installname_module $(NULL)) \
ALLTAR : \
$(DLLDEST)$/uno.py \
$(DLLDEST)$/unohelper.py \
$(targetdll) \
......@@ -134,11 +134,10 @@ ALLTAR : $(eq,$(OS),MACOSX $(MISC)/installname_module $(NULL)) \
$(DLLDEST)$/%.py: %.py
cp $? $@
$(MISC)/installname_module : $(LB)/$(DLLPRE)$(TARGET)$(DLLPOST)
install_name_tool -change $(PYTHON_MAKEINSTALLDIR)/OOoPython.framework/Versions/$(PYMAJOR).$(PYMINOR)/OOoPython @loader_path/OOoPython.framework/Versions/$(PYMAJOR).$(PYMINOR)/OOoPython $<
# hack to make checkdll happy
ln -sf $(SOLARLIBDIR)/OOoPython.framework $(LB)/OOoPython.framework
touch $@
# make checkdll happy
$(MISC)/framework_link :
$(COMMAND_ECHO)ln -sf $(SOLARLIBDIR)/OOoPython.framework $(LB)/OOoPython.framework
@touch $@
$(MISC)$/$(PYUNORC) : pyuno
-rm -f $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment