provide a gnu-make compatible include for pyversion
Change-Id: I I7d0de9bc04c26e71c6bd915a659a15c3e1f712d2
This commit is contained in:
committed by
David Tardon
parent
1cb5fa76a8
commit
86d2a9d3c4
@@ -172,6 +172,7 @@ BUILD_ACTION=$(COMPATH)$/vcpackages$/vcbuild.exe pcbuild.sln "$(CONF)|$(ARCH)"
|
||||
.ENDIF
|
||||
|
||||
PYVERSIONFILE=$(MISC)$/pyversion.mk
|
||||
PYVERSIONGFILE=$(MISC)$/pyversion.Makefile
|
||||
|
||||
# --- Targets ------------------------------------------------------
|
||||
|
||||
@@ -207,7 +208,7 @@ $(PYCONFIG) : $(MISC)$/build$/$(TARFILE_NAME)$/PC$/pyconfig.h
|
||||
.ENDIF
|
||||
.ENDIF
|
||||
|
||||
ALLTAR : $(PYVERSIONFILE)
|
||||
ALLTAR : $(PYVERSIONFILE) $(PYVERSIONGFILE)
|
||||
.ENDIF # "$(L10N_framework)"==""
|
||||
|
||||
# rule to allow relocating the whole framework, removing reference to buildinstallation directory
|
||||
@@ -252,4 +253,8 @@ $(PYVERSIONFILE) : pyversion.mk $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
|
||||
@-rm -f $@
|
||||
$(COMMAND_ECHO)$(COPY) pyversion.mk $@
|
||||
|
||||
$(PYVERSIONGFILE) : pyversion.Makefile $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
|
||||
@-rm -f $@
|
||||
$(COMMAND_ECHO)$(COPY) pyversion.Makefile $@
|
||||
|
||||
.ENDIF # DISABLE_PYTHON != TRUE
|
||||
|
@@ -8,6 +8,7 @@ mkdir: %_DEST%\lib\OOoPython.framework\Versions\2.6\include\python2.6
|
||||
# MACOSX - end
|
||||
|
||||
..\%__SRC%\misc\pyversion.mk %_DEST%\inc\pyversion.mk
|
||||
..\%__SRC%\misc\pyversion.Makefile %_DEST%\inc\pyversion.Makefile
|
||||
|
||||
mkdir: %_DEST%\lib\python
|
||||
mkdir: %_DEST%\lib\python\lib-old
|
||||
|
25
python/pyversion.Makefile
Normal file
25
python/pyversion.Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
# when you want to change the python version, you must update the d.lst
|
||||
# in the python project accordingly !!!
|
||||
PYMAJOR:=2
|
||||
PYMINOR:=6
|
||||
PYMICRO:=1
|
||||
PYVERSION:=$(PYMAJOR).$(PYMINOR).$(PYMICRO)
|
||||
|
||||
ifeq ($(GUI),UNX)
|
||||
ifeq ($(OS),MACOSX)
|
||||
PY_FULL_DLL_NAME:=libpython$(PYMAJOR).$(PYMINOR).a
|
||||
PYTHONLIB=-F$(SOLARLIBDIR) -framework OOoPython
|
||||
CFLAGS+=-I$(SOLARLIBDIR)/OOoPython.framework/Versions/$(PYMAJOR).$(PYMINOR)/include/python$(PYMAJOR).$(PYMINOR)
|
||||
else
|
||||
PY_FULL_DLL_NAME:=libpython$(PYMAJOR).$(PYMINOR).so.1.0
|
||||
PYTHONLIB:=-lpython$(PYMAJOR).$(PYMINOR)
|
||||
endif
|
||||
else
|
||||
ifeq ($(COM),GCC)
|
||||
PY_FULL_DLL_NAME:=libpython$(PYMAJOR).$(PYMINOR).dll
|
||||
PYTHONLIB:=-lpython$(PYMAJOR).$(PYMINOR)
|
||||
else
|
||||
PY_FULL_DLL_NAME:=python$(PYMAJOR)$(PYMINOR).dll
|
||||
PYTHONLIB:=python$(PYMAJOR)$(PYMINOR).lib
|
||||
endif
|
||||
endif
|
@@ -41,7 +41,7 @@ $(eval $(call gb_InstallModule_add_defs,scp2/python,\
|
||||
-DSYSTEM_PYTHON \
|
||||
))
|
||||
else
|
||||
include $(OUTDIR)/inc/pyversion.mk
|
||||
include $(OUTDIR)/inc/pyversion.Makefile
|
||||
|
||||
$(eval $(call gb_InstallModule_add_defs,scp2/python,\
|
||||
-DPYVERSION=$(PYVERSION) \
|
||||
|
Reference in New Issue
Block a user