You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2019/02/09 09:12:02 UTC
svn commit: r1853252 - in /openoffice/trunk/main: ./
postprocess/packcomponents/ python/ python/prj/ pyuno/ pyuno/demo/
pyuno/inc/pyuno/ pyuno/prj/ pyuno/source/loader/ pyuno/source/module/
scp2/source/python/ testtools/source/bridgetest/pyuno/
Author: damjan
Date: Sat Feb 9 09:12:01 2019
New Revision: 1853252
URL: http://svn.apache.org/viewvc?rev=1853252&view=rev
Log:
Port main/pyuno to gbuild.
Patch by: me
Added:
openoffice/trunk/main/python/pyversion_dmake.mk
openoffice/trunk/main/pyuno/Executable_pyuno_python_exe.mk
openoffice/trunk/main/pyuno/Library_pythonloader.mk
openoffice/trunk/main/pyuno/Library_pyuno.mk
openoffice/trunk/main/pyuno/Library_pyuno_loader.mk
openoffice/trunk/main/pyuno/Makefile (with props)
openoffice/trunk/main/pyuno/Module_pyuno.mk
openoffice/trunk/main/pyuno/Package_py.mk
openoffice/trunk/main/pyuno/Package_python_bin.mk
openoffice/trunk/main/pyuno/Package_pyuno_ini.mk
openoffice/trunk/main/pyuno/Package_pyuno_python_sh.mk
openoffice/trunk/main/pyuno/Package_zipcore.mk
openoffice/trunk/main/pyuno/prj/makefile.mk
Modified:
openoffice/trunk/main/Module_ooo.mk
openoffice/trunk/main/Repository.mk
openoffice/trunk/main/RepositoryExternal.mk
openoffice/trunk/main/RepositoryFixes.mk
openoffice/trunk/main/postprocess/packcomponents/makefile.mk
openoffice/trunk/main/python/makefile.mk
openoffice/trunk/main/python/prj/d.lst
openoffice/trunk/main/python/pyversion.mk
openoffice/trunk/main/pyuno/demo/makefile.mk
openoffice/trunk/main/pyuno/inc/pyuno/pyuno.hxx
openoffice/trunk/main/pyuno/prj/build.lst
openoffice/trunk/main/pyuno/prj/d.lst
openoffice/trunk/main/pyuno/source/loader/pyuno_loader.cxx
openoffice/trunk/main/pyuno/source/module/pyuno_dlopenwrapper.c
openoffice/trunk/main/scp2/source/python/makefile.mk
openoffice/trunk/main/testtools/source/bridgetest/pyuno/makefile.mk
Modified: openoffice/trunk/main/Module_ooo.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/Module_ooo.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/Module_ooo.mk (original)
+++ openoffice/trunk/main/Module_ooo.mk Sat Feb 9 09:12:01 2019
@@ -74,6 +74,7 @@ $(eval $(call gb_Module_add_moduledirs,o
package \
padmin \
psprint_config \
+ pyuno \
rdbmaker \
registry \
remotebridges \
Modified: openoffice/trunk/main/Repository.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/Repository.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/Repository.mk (original)
+++ openoffice/trunk/main/Repository.mk Sat Feb 9 09:12:01 2019
@@ -143,6 +143,8 @@ $(eval $(call gb_Helper_register_librari
odbcbase \
oox \
package2 \
+ pyuno \
+ pyuno_loader \
qstart_gtk \
rpt \
rptui \
@@ -269,6 +271,7 @@ $(eval $(call gb_Helper_register_librari
lnth \
nullcanvas \
passwordcontainer \
+ pythonloader \
simplecanvas \
slideshow \
spell \
Modified: openoffice/trunk/main/RepositoryExternal.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/RepositoryExternal.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/RepositoryExternal.mk (original)
+++ openoffice/trunk/main/RepositoryExternal.mk Sat Feb 9 09:12:01 2019
@@ -702,4 +702,35 @@ endef
endif # SYSTEM_HUNSPELL
+
+
+ifeq ($(SYSTEM_PYTHON),YES)
+
+define gb_LinkTarget__use_python
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(filter -I%,$(PYTHON_CFLAGS)) \
+)
+$(call gb_LinkTarget_add_defs,$(1),\
+ $(filter-out -I%,$(PYTHON_CFLAGS)) \
+)
+$(call gb_LinkTarget_add_libs,$(1),\
+ $(PYTHON_LIBS) \
+)
+endef
+
+else # !SYSTEM_PYTHON
+
+include $(SRCDIR)/python/pyversion.mk
+
+define gb_LinkTarget__use_python
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/python \
+)
+$(call gb_LinkTarget_add_libs,$(1),$(PYTHONLIB))
+endef
+
+endif # SYSTEM_PYTHON
+
# vim: set noet sw=4 ts=4:
Modified: openoffice/trunk/main/RepositoryFixes.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/RepositoryFixes.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/RepositoryFixes.mk (original)
+++ openoffice/trunk/main/RepositoryFixes.mk Sat Feb 9 09:12:01 2019
@@ -33,6 +33,7 @@ gb_Library_FILENAMES := $(patsubst hyphe
gb_Library_FILENAMES := $(patsubst lnth:lnth.uno%,lnth:liblnth.uno%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
+gb_Library_FILENAMES := $(patsubst pyuno_loader:libpyuno%,pyuno_loader:pyuno.so,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst reg:libuno_reg%,reg:libreg%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
@@ -52,6 +53,7 @@ gb_Library_FILENAMES := $(patsubst cppuh
gb_Library_FILENAMES := $(patsubst hyphen_uno:hyphen_uno.uno%,hyphen_uno:libhyphen.uno%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst lnth:lnth.uno%,lnth:liblnth.uno%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
+gb_Library_FILENAMES := $(patsubst pyuno_loader:libpyuno%,pyuno_loader:pyuno.so,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst reg:libuno_reg%,reg:libreg%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst spell:spell.uno%,spell:libspell.uno%,$(gb_Library_FILENAMES))
@@ -68,6 +70,8 @@ gb_Library_FILENAMES := $(patsubst cppuh
gb_Library_FILENAMES := $(patsubst hyphen_uno:hyphen_uno.uno%,hyphen_uno:libhyphen.uno%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst lnth:lnth.uno%,lnth:liblnth.uno%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
+# pyuno.so even on Mac OS X, because it is a python module
+gb_Library_FILENAMES := $(patsubst pyuno_loader:libpyuno%,pyuno_loader:pyuno.so,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst reg:libuno_reg%,reg:libreg%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst spell:spell.uno%,spell:libspell.uno%,$(gb_Library_FILENAMES))
@@ -251,6 +255,7 @@ gb_Library_FILENAMES := $(patsubst lnth:
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst reg:libuno_reg%,reg:libreg%,$(gb_Library_FILENAMES))
+gb_Library_FILENAMES := $(patsubst pyuno_loader:libpyuno%,pyuno_loader:pyuno.so,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst spell:spell.uno%,spell:libspell.uno%,$(gb_Library_FILENAMES))
Modified: openoffice/trunk/main/postprocess/packcomponents/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/postprocess/packcomponents/makefile.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/postprocess/packcomponents/makefile.mk (original)
+++ openoffice/trunk/main/postprocess/packcomponents/makefile.mk Sat Feb 9 09:12:01 2019
@@ -96,6 +96,7 @@ my_components = \
component/oox/util/oox \
component/package/source/xstor/xstor \
component/package/util/package2 \
+ component/pyuno/source/loader/pythonloader \
component/reportdesign/util/rptxml \
component/reportdesign/util/rpt \
component/reportdesign/util/rptui \
@@ -175,7 +176,6 @@ my_components = \
placeware \
preload \
protocolhandler \
- pythonloader \
pythonscript \
res \
scn \
Modified: openoffice/trunk/main/python/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/python/makefile.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/python/makefile.mk (original)
+++ openoffice/trunk/main/python/makefile.mk Sat Feb 9 09:12:01 2019
@@ -29,7 +29,7 @@ TARGET=so_python
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
-.INCLUDE : pyversion.mk
+.INCLUDE : pyversion_dmake.mk
.IF "$(SYSTEM_PYTHON)" == "YES"
all:
@@ -137,6 +137,7 @@ BUILD_ACTION=$(COMPATH)$/vcpackages$/vcb
.ENDIF
.ENDIF
+PYVERSIONFILE_DMAKE=$(MISC)$/pyversion_dmake.mk
PYVERSIONFILE=$(MISC)$/pyversion.mk
# --- Targets ------------------------------------------------------
@@ -160,10 +161,14 @@ $(PYCONFIG) : $(MISC)$/build$/$(TARFILE_
.ENDIF
.ENDIF
-ALLTAR : $(PYVERSIONFILE)
+ALLTAR : $(PYVERSIONFILE_DMAKE) $(PYVERSIONFILE)
.ENDIF # "$(L10N_framework)"==""
+$(PYVERSIONFILE_DMAKE) : pyversion_dmake.mk $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
+ -rm -f $@
+ cat $? > $@
+
$(PYVERSIONFILE) : pyversion.mk $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
-rm -f $@
cat $? > $@
Modified: openoffice/trunk/main/python/prj/d.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/python/prj/d.lst?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/python/prj/d.lst (original)
+++ openoffice/trunk/main/python/prj/d.lst Sat Feb 9 09:12:01 2019
@@ -75,6 +75,7 @@ mkdir: %_DEST%\lib%_EXT%\python\python2.
..\%__SRC%\misc\build\Python-2.7.15\Makefile %_DEST%\lib%_EXT%\python\python2.7\config\Makefile
..\%__SRC%\misc\build\python-inst\lib\python2.7\_sysconfigdata.py %_DEST%\lib%_EXT%\python\_sysconfigdata.py
..\pyversion.mk %_DEST%\inc%_EXT%\pyversion.mk
+..\pyversion_dmake.mk %_DEST%\inc%_EXT%\pyversion_dmake.mk
..\%__SRC%\misc\build\Python-2.7.15\Include\* %_DEST%\inc%_EXT%\python\*
Modified: openoffice/trunk/main/python/pyversion.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/python/pyversion.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/python/pyversion.mk (original)
+++ openoffice/trunk/main/python/pyversion.mk Sat Feb 9 09:12:01 2019
@@ -25,22 +25,22 @@ PYMINOR=7
PYMICRO=15
PYVERSION=$(PYMAJOR).$(PYMINOR).$(PYMICRO)
-.IF "$(GUI)" == "UNX"
-.IF "$(OS)" == "MACOSX"
+ifeq ($(GUI),UNX)
+ifeq ($(OS),MACOSX)
PY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dylib
-.ELSE
+else
PY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).so.1.0
-.ENDIF
+endif
PYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
-.ELIF "$(GUI)" == "OS2"
+else ifeq ($(GUI),OS2)
PY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
PYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
-.ELSE
-.IF "$(COM)" == "GCC"
+else
+ifeq ($(COM),GCC)
PY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dll
PYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
-.ELSE
+else
PY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
PYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
-.ENDIF
-.ENDIF
+endif
+endif
Added: openoffice/trunk/main/python/pyversion_dmake.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/python/pyversion_dmake.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/python/pyversion_dmake.mk (added)
+++ openoffice/trunk/main/python/pyversion_dmake.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,46 @@
+# *************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# *************************************************************
+# when you want to change the python version, you must update the d.lst
+# in the python project accordingly !!!
+PYMAJOR=2
+PYMINOR=7
+PYMICRO=15
+PYVERSION=$(PYMAJOR).$(PYMINOR).$(PYMICRO)
+
+.IF "$(GUI)" == "UNX"
+.IF "$(OS)" == "MACOSX"
+PY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dylib
+.ELSE
+PY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).so.1.0
+.ENDIF
+PYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
+.ELIF "$(GUI)" == "OS2"
+PY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
+PYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
+.ELSE
+.IF "$(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
Added: openoffice/trunk/main/pyuno/Executable_pyuno_python_exe.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Executable_pyuno_python_exe.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Executable_pyuno_python_exe.mk (added)
+++ openoffice/trunk/main/pyuno/Executable_pyuno_python_exe.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,63 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+include $(SRCDIR)/python/pyversion.mk
+
+$(eval $(call gb_Executable_Executable,pyuno_python_exe))
+
+$(eval $(call gb_Executable_set_include,pyuno_python_exe,\
+ $$(INCLUDE) \
+ -I$(WORKDIR)/CustomTarget/pyuno/zipcore \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,pyuno_python_exe,\
+ sal \
+ stl \
+ $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,pyuno_python_exe,\
+ user32 \
+))
+
+$(eval $(call gb_Executable_add_linked_static_libs,pyuno_python_exe,\
+ ooopathutils \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,pyuno_python_exe,\
+ pyuno/zipcore/python \
+))
+
+# Automatic dependency resolution fails; add it ourselves:
+$(SRCDIR)/pyuno/zipcore/python.cxx : $(WORKDIR)/CustomTarget/pyuno/zipcore/pyversion.hxx
+
+$(WORKDIR)/CustomTarget/pyuno/zipcore/pyversion.hxx : $(SRCDIR)/pyuno/zipcore/pyversion.inc
+ mkdir -p $(dir $@) && \
+ sed "s/@/$(PYVERSION)/g" < $< > $@
+
+
+
+# FIXME: cannot specify custom executable path, so must build a wrongly named EXE and then re-deliver it to a different directory!
+$(eval $(call gb_Package_Package,pyuno_python_exe,$(OUTDIR)))
+$(eval $(call gb_Package_add_file,pyuno_python_exe,bin/pyuno/python.exe,bin/pyuno_python_exe.exe))
+
+
+# vim: set noet sw=4 ts=4:
Added: openoffice/trunk/main/pyuno/Library_pythonloader.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Library_pythonloader.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Library_pythonloader.mk (added)
+++ openoffice/trunk/main/pyuno/Library_pythonloader.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,53 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Library_Library,pythonloader))
+
+$(eval $(call gb_Library_set_componentfile,pythonloader,pyuno/source/loader/pythonloader))
+
+$(eval $(call gb_Library_set_include,pythonloader,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/pyuno/inc \
+))
+
+$(eval $(call gb_Library_add_api,pythonloader, \
+ udkapi \
+))
+
+$(eval $(call gb_Library_add_linked_libs,pythonloader,\
+ cppu \
+ cppuhelper \
+ pyuno \
+ sal \
+ stl \
+ $(gb_STDLIBS) \
+))
+
+$(call gb_Library_use_external,pythonloader,python)
+
+$(eval $(call gb_Library_add_exception_objects,pythonloader,\
+ pyuno/source/loader/pyuno_loader \
+))
+
+# vim: set noet sw=4 ts=4:
+
Added: openoffice/trunk/main/pyuno/Library_pyuno.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Library_pyuno.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Library_pyuno.mk (added)
+++ openoffice/trunk/main/pyuno/Library_pyuno.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,58 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Library_Library,pyuno))
+
+$(eval $(call gb_Library_set_include,pyuno,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/pyuno/inc \
+))
+
+$(eval $(call gb_Library_add_api,pyuno, \
+ udkapi \
+))
+
+$(eval $(call gb_Library_add_linked_libs,pyuno,\
+ cppu \
+ cppuhelper \
+ sal \
+ stl \
+ $(gb_STDLIBS) \
+))
+
+$(call gb_Library_use_external,pyuno,python)
+
+$(eval $(call gb_Library_add_exception_objects,pyuno,\
+ pyuno/source/module/pyuno_runtime \
+ pyuno/source/module/pyuno \
+ pyuno/source/module/pyuno_callable \
+ pyuno/source/module/pyuno_module \
+ pyuno/source/module/pyuno_type \
+ pyuno/source/module/pyuno_util \
+ pyuno/source/module/pyuno_except \
+ pyuno/source/module/pyuno_adapter \
+ pyuno/source/module/pyuno_gc \
+))
+
+# vim: set noet sw=4 ts=4:
+
Added: openoffice/trunk/main/pyuno/Library_pyuno_loader.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Library_pyuno_loader.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Library_pyuno_loader.mk (added)
+++ openoffice/trunk/main/pyuno/Library_pyuno_loader.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,39 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+# Name is changd to pyuno.so on all *nix systems in main/RepositoryFixes.mk
+# python expects modules without the lib prefix
+
+$(eval $(call gb_Library_Library,pyuno_loader))
+
+$(eval $(call gb_Library_set_include,pyuno_loader,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/pyuno/inc \
+))
+
+$(eval $(call gb_Library_add_cobjects,pyuno_loader,\
+ pyuno/source/module/pyuno_dlopenwrapper \
+))
+
+
+# vim: set noet sw=4 ts=4:
+
Added: openoffice/trunk/main/pyuno/Makefile
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Makefile?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Makefile (added)
+++ openoffice/trunk/main/pyuno/Makefile Sat Feb 9 09:12:01 2019
@@ -0,0 +1,32 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set!)
+endif
+
+gb_PARTIALBUILD := T
+GBUILDDIR := $(SOLARENV)/gbuild
+include $(GBUILDDIR)/gbuild.mk
+
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
+
+# vim: set noet sw=4 ts=4:
Propchange: openoffice/trunk/main/pyuno/Makefile
------------------------------------------------------------------------------
svn:eol-style = native
Added: openoffice/trunk/main/pyuno/Module_pyuno.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Module_pyuno.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Module_pyuno.mk (added)
+++ openoffice/trunk/main/pyuno/Module_pyuno.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,60 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Module_Module,pyuno))
+
+$(eval $(call gb_Module_add_targets,pyuno,\
+ Library_pyuno \
+ Library_pythonloader \
+ Package_py \
+ Package_pyuno_ini \
+))
+
+ifeq ($(GUI),UNX)
+$(eval $(call gb_Module_add_targets,pyuno,\
+ Library_pyuno_loader \
+))
+endif
+
+ifneq ($(SYSTEM_PYTHON),YES)
+ifneq ($(GUI),OS2)
+
+$(eval $(call gb_Module_add_targets,pyuno,\
+ Package_zipcore \
+))
+
+ifeq ($(GUI),WNT)
+$(eval $(call gb_Module_add_targets,pyuno,\
+ Executable_pyuno_python_exe \
+))
+else ifeq ($(GUI),UNX)
+$(eval $(call gb_Module_add_targets,pyuno,\
+ Package_python_bin \
+ Package_pyuno_python_sh \
+))
+endif
+
+endif
+endif
+
+# vim: set noet sw=4 ts=4:
Added: openoffice/trunk/main/pyuno/Package_py.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Package_py.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Package_py.mk (added)
+++ openoffice/trunk/main/pyuno/Package_py.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,36 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+$(eval $(call gb_Package_Package,pyuno_py,$(SRCDIR)/pyuno))
+
+ifeq ($(GUI),WNT)
+$(eval $(call gb_Package_add_file,pyuno_py,bin/pyuno/pythonloader.py,source/loader/pythonloader.py))
+$(eval $(call gb_Package_add_file,pyuno_py,bin/pyuno/uno.py,source/module/uno.py))
+$(eval $(call gb_Package_add_file,pyuno_py,bin/pyuno/unohelper.py,source/module/unohelper.py))
+else ifeq ($(GUI),OS2)
+$(eval $(call gb_Package_add_file,pyuno_py,bin/pyuno/pythonloader.py,source/loader/pythonloader.py))
+$(eval $(call gb_Package_add_file,pyuno_py,bin/pyuno/uno.py,source/module/uno.py))
+$(eval $(call gb_Package_add_file,pyuno_py,bin/pyuno/unohelper.py,source/module/unohelper.py))
+else
+$(eval $(call gb_Package_add_file,pyuno_py,lib/pyuno/pythonloader.py,source/loader/pythonloader.py))
+$(eval $(call gb_Package_add_file,pyuno_py,lib/pyuno/uno.py,source/module/uno.py))
+$(eval $(call gb_Package_add_file,pyuno_py,lib/pyuno/unohelper.py,source/module/unohelper.py))
+endif
Added: openoffice/trunk/main/pyuno/Package_python_bin.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Package_python_bin.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Package_python_bin.mk (added)
+++ openoffice/trunk/main/pyuno/Package_python_bin.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,31 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+$(eval $(call gb_Package_Package,pyuno_python_bin,$(WORKDIR)/CustomTarget/pyuno/zipcore))
+
+$(eval $(call gb_Package_add_file,pyuno_python_bin,bin/python.bin,python.bin))
+
+$(WORKDIR)/CustomTarget/pyuno/zipcore/python.bin : $(OUTDIR)/bin/python
+ mkdir -p $(dir $@) && \
+ cp $^ $@ && \
+ $(if $(filter-out MACOSX,$(OS)),strip $@ &&) \
+ chmod +x $@
+
Added: openoffice/trunk/main/pyuno/Package_pyuno_ini.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Package_pyuno_ini.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Package_pyuno_ini.mk (added)
+++ openoffice/trunk/main/pyuno/Package_pyuno_ini.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,31 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Package_Package,pyuno_pyuno_ini,$(SRCDIR)/pyuno))
+ifeq ($(GUI),UNX)
+$(eval $(call gb_Package_add_file,pyuno_pyuno_ini,lib/pyunorc,source/module/pyuno))
+else ifeq ($(GUI),OS2)
+$(eval $(call gb_Package_add_file,pyuno_pyuno_ini,bin/pyuno.ini,source/module/pyuno))
+else
+$(eval $(call gb_Package_add_file,pyuno_pyuno_ini,bin/pyuno.ini,source/module/pyuno))
+endif
Added: openoffice/trunk/main/pyuno/Package_pyuno_python_sh.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Package_pyuno_python_sh.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Package_pyuno_python_sh.mk (added)
+++ openoffice/trunk/main/pyuno/Package_pyuno_python_sh.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,33 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+include $(SRCDIR)/python/pyversion.mk
+
+$(eval $(call gb_Package_Package,pyuno_python_sh,$(WORKDIR)/CustomTarget/pyuno/zipcore))
+
+$(eval $(call gb_Package_add_file,pyuno_python_sh,bin/pyuno/python,python.sh))
+
+$(WORKDIR)/CustomTarget/pyuno/zipcore/python.sh : $(SRCDIR)/pyuno/zipcore/python.sh
+ mkdir -p $(dir $@) && \
+ sed 's/%%PYVERSION%%/$(PYVERSION)/g' < $< > $@ && \
+ chmod +x $@
+
+
Added: openoffice/trunk/main/pyuno/Package_zipcore.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/Package_zipcore.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/Package_zipcore.mk (added)
+++ openoffice/trunk/main/pyuno/Package_zipcore.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,61 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+include $(SRCDIR)/python/pyversion.mk
+
+$(eval $(call gb_Package_Package,pyuno_zipcore,$(WORKDIR)/CustomTarget/pyuno/zipcore))
+
+$(eval $(call gb_Package_add_file,pyuno_zipcore,bin/python-core-$(PYVERSION).zip,python-core-$(PYVERSION).zip))
+
+
+
+ifneq ($(GUI),UNX)
+ifeq ($(COM),GCC)
+PYTHONBINARY := $(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION)/bin/python.bin
+else
+PYTHONBINARY := $(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION)/bin/python$(gb_Executable_EXT)
+endif
+endif
+
+PYTHON_CORE_FILES := $(PYTHONBINARY) \
+ $(foreach lib,$(shell find $(OUTDIR)/lib/python -type f | grep -v "\.pyc" | grep -v "\.py~" | grep -v .orig | grep -v _failed),$(subst $(OUTDIR)/lib/python,$(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION)/lib,$(lib))) \
+ $(foreach inc,$(shell find $(OUTDIR)/inc/python -type f | grep -v "\.h~" | grep -v _failed),$(subst $(OUTDIR)/inc/python,$(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION)/include/python$(PYMAJOR).$(PYMINOR),$(inc)))
+
+$(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION).zip : $(PYTHON_CORE_FILES)
+ mkdir -p $(dir $@) && \
+ cd $(dir $@) && \
+ $(if $(filter-out MACOSX,$(OS)),$(if $(filter UNX,$(GUI)),find . -name "*$(gb_Library_PLAINEXT)" | xargs strip &&)) \
+ zip -r python-core-$(PYVERSION).zip python-core-$(PYVERSION)
+
+ifneq ($(GUI),UNX)
+$(PYTHONBINARY) : $(OUTDIR)/bin/python$(gb_Executable_EXT)
+ mkdir -p $(dir $@) && \
+ cp $< $@
+endif
+
+$(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION)/lib/% : $(OUTDIR)/lib/python/%
+ mkdir -p $(dir $@) && \
+ cp $< $@
+
+$(WORKDIR)/CustomTarget/pyuno/zipcore/python-core-$(PYVERSION)/include/python$(PYMAJOR).$(PYMINOR)/% : $(OUTDIR)/inc/python/%
+ mkdir -p $(dir $@) && \
+ cp $< $@
+
Modified: openoffice/trunk/main/pyuno/demo/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/demo/makefile.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/pyuno/demo/makefile.mk (original)
+++ openoffice/trunk/main/pyuno/demo/makefile.mk Sat Feb 9 09:12:01 2019
@@ -22,7 +22,7 @@ PRJNAME=pyuno
PRJ=..
.INCLUDE : settings.mk
-.INCLUDE : pyversion.mk
+.INCLUDE : pyversion_dmake.mk
ROOT=$(MISC)$/pyuno-doc
Modified: openoffice/trunk/main/pyuno/inc/pyuno/pyuno.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/inc/pyuno/pyuno.hxx?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/pyuno/inc/pyuno/pyuno.hxx (original)
+++ openoffice/trunk/main/pyuno/inc/pyuno/pyuno.hxx Sat Feb 9 09:12:01 2019
@@ -68,11 +68,7 @@
to do the necessary conversions.
*/
-#ifdef WIN32
-#define PY_DLLEXPORT __declspec(dllexport)
-#else
-#define PY_DLLEXPORT
-#endif
+#define PY_DLLEXPORT SAL_DLLPUBLIC_EXPORT
/** function called by the python runtime to initialize the
pyuno module.
Modified: openoffice/trunk/main/pyuno/prj/build.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/prj/build.lst?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/pyuno/prj/build.lst (original)
+++ openoffice/trunk/main/pyuno/prj/build.lst Sat Feb 9 09:12:01 2019
@@ -1,5 +1,2 @@
bgpu pyuno : stoc cpputools cppuhelper bridges tools PYTHON:python LIBXSLT:libxslt NULL
-pu pyuno usr1 - all br_mkout NULL
-pu pyuno\zipcore nmake - all pu_zipcore NULL
-pu pyuno\source\module nmake - all pu_module NULL
-pu pyuno\source\loader nmake - all pu_loader pu_module NULL
+pu pyuno\prj nmake - all pu_prj NULL
Modified: openoffice/trunk/main/pyuno/prj/d.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/prj/d.lst?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/pyuno/prj/d.lst (original)
+++ openoffice/trunk/main/pyuno/prj/d.lst Sat Feb 9 09:12:01 2019
@@ -1,26 +0,0 @@
-mkdir: %_DEST%\bin%_EXT%\pyuno
-mkdir: %_DEST%\lib%_EXT%\pyuno
-
-..\%__SRC%\lib\libpyuno.so %_DEST%\lib%_EXT%\libpyuno.so
-..\%__SRC%\lib\libpyuno.dylib %_DEST%\lib%_EXT%\libpyuno.dylib
-..\%__SRC%\lib\pyuno.so %_DEST%\lib%_EXT%\pyuno.so
-..\%__SRC%\lib\pythonloader.uno.so %_DEST%\lib%_EXT%\pythonloader.uno.so
-..\%__SRC%\lib\pythonloader.uno.dylib %_DEST%\lib%_EXT%\pythonloader.uno.dylib
-..\%__SRC%\lib\unohelper.py %_DEST%\lib%_EXT%\pyuno\unohelper.py
-..\%__SRC%\lib\pythonloader.py %_DEST%\lib%_EXT%\pyuno\pythonloader.py
-..\%__SRC%\lib\uno.py %_DEST%\lib%_EXT%\pyuno\uno.py
-..\%__SRC%\misc\pythonloader.component %_DEST%\xml\pythonloader.component
-
-..\%__SRC%\bin\unohelper.py %_DEST%\bin%_EXT%\pyuno\unohelper.py
-..\%__SRC%\bin\pythonloader.py %_DEST%\bin%_EXT%\pyuno\pythonloader.py
-..\%__SRC%\bin\uno.py %_DEST%\bin%_EXT%\pyuno\uno.py
-..\%__SRC%\bin\pyuno.pyd %_DEST%\bin%_EXT%\pyuno.pyd
-..\%__SRC%\bin\pyuno.dll %_DEST%\bin%_EXT%\pyuno.dll
-..\%__SRC%\bin\pythonl*.dll %_DEST%\bin%_EXT%\pythonl*.dll
-
-..\%__SRC%\misc\pyunorc %_DEST%\lib%_EXT%\pyunorc
-..\%__SRC%\misc\pyuno.ini %_DEST%\bin%_EXT%\pyuno.ini
-..\%__SRC%\bin\python-core-*.zip %_DEST%\bin%_EXT%\python-core-*.zip
-..\%__SRC%\bin\python.bin %_DEST%\bin%_EXT%\python.bin
-..\%__SRC%\bin\python.sh %_DEST%\bin%_EXT%\pyuno\python
-..\%__SRC%\bin\python.exe %_DEST%\bin%_EXT%\pyuno\python.exe
Added: openoffice/trunk/main/pyuno/prj/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/prj/makefile.mk?rev=1853252&view=auto
==============================================================================
--- openoffice/trunk/main/pyuno/prj/makefile.mk (added)
+++ openoffice/trunk/main/pyuno/prj/makefile.mk Sat Feb 9 09:12:01 2019
@@ -0,0 +1,44 @@
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+PRJ=..
+TARGET=prj
+
+.INCLUDE : settings.mk
+
+.IF "$(VERBOSE)"!=""
+VERBOSEFLAG :=
+.ELSE
+VERBOSEFLAG := -s
+.ENDIF
+
+.IF "$(DEBUG)"!=""
+DEBUG_ARGUMENT=DEBUG=$(DEBUG)
+.ELIF "$(debug)"!=""
+DEBUG_ARGUMENT=debug=$(debug)
+.ELSE
+DEBUG_ARGUMENT=
+.ENDIF
+
+all:
+ cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) $(DEBUG_ARGUMENT) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog
Modified: openoffice/trunk/main/pyuno/source/loader/pyuno_loader.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/source/loader/pyuno_loader.cxx?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/pyuno/source/loader/pyuno_loader.cxx (original)
+++ openoffice/trunk/main/pyuno/source/loader/pyuno_loader.cxx Sat Feb 9 09:12:01 2019
@@ -219,13 +219,13 @@ extern "C"
{
//==================================================================================================
-void SAL_CALL component_getImplementationEnvironment(
+SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
-void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
return cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
Modified: openoffice/trunk/main/pyuno/source/module/pyuno_dlopenwrapper.c
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/pyuno/source/module/pyuno_dlopenwrapper.c?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/pyuno/source/module/pyuno_dlopenwrapper.c (original)
+++ openoffice/trunk/main/pyuno/source/module/pyuno_dlopenwrapper.c Sat Feb 9 09:12:01 2019
@@ -33,7 +33,7 @@
#endif
#include <dlfcn.h>
-void initpyuno ()
+SAL_DLLPUBLIC_EXPORT void initpyuno ()
{
Dl_info dl_info;
void (*func)(void);
Modified: openoffice/trunk/main/scp2/source/python/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/scp2/source/python/makefile.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/scp2/source/python/makefile.mk (original)
+++ openoffice/trunk/main/scp2/source/python/makefile.mk Sat Feb 9 09:12:01 2019
@@ -36,7 +36,7 @@ TARGETTYPE=CUI
.IF "$(SYSTEM_PYTHON)" == "YES"
SCPDEFS+=-DSYSTEM_PYTHON
.ELSE
-.INCLUDE : pyversion.mk
+.INCLUDE : pyversion_dmake.mk
.ENDIF
SCPDEFS+=\
Modified: openoffice/trunk/main/testtools/source/bridgetest/pyuno/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/testtools/source/bridgetest/pyuno/makefile.mk?rev=1853252&r1=1853251&r2=1853252&view=diff
==============================================================================
--- openoffice/trunk/main/testtools/source/bridgetest/pyuno/makefile.mk (original)
+++ openoffice/trunk/main/testtools/source/bridgetest/pyuno/makefile.mk Sat Feb 9 09:12:01 2019
@@ -29,7 +29,7 @@ LIBTARGET=NO
TARGETTYPE=CUI
ENABLE_EXCEPTIONS=TRUE
-my_components = pythonloader
+my_components = component/pyuno/source/loader/pythonloader
# --- Settings -----------------------------------------------------