diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-05-20 09:11:40 -0500 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 07:35:26 +0200 |
commit | 86d2a9d3c4b61118aed2fa97dcff9df36557bc84 (patch) | |
tree | e3f68d87a0e1fe3eedba0070d2bd72e08fa60f03 /python | |
parent | 1cb5fa76a8414a072271e2655d8aa6b25fcd03bc (diff) |
provide a gnu-make compatible include for pyversion
Change-Id: I I7d0de9bc04c26e71c6bd915a659a15c3e1f712d2
Diffstat (limited to 'python')
-rw-r--r-- | python/makefile.mk | 7 | ||||
-rw-r--r-- | python/prj/d.lst | 1 | ||||
-rw-r--r-- | python/pyversion.Makefile | 25 |
3 files changed, 32 insertions, 1 deletions
diff --git a/python/makefile.mk b/python/makefile.mk index 3e710954a7fc..1f41a96866a7 100644 --- a/python/makefile.mk +++ b/python/makefile.mk @@ -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 diff --git a/python/prj/d.lst b/python/prj/d.lst index 4fb4405ebaa7..0c936ab04d48 100644 --- a/python/prj/d.lst +++ b/python/prj/d.lst @@ -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 diff --git a/python/pyversion.Makefile b/python/pyversion.Makefile new file mode 100644 index 000000000000..4b4be9cb2431 --- /dev/null +++ b/python/pyversion.Makefile @@ -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 |