openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1827456 - in /openoffice/trunk/main: ./ registry/ registry/inc/ registry/inc/registry/ registry/prj/ registry/source/ registry/tools/ registry/util/ solenv/gbuild/ solenv/gbuild/platform/
Date Thu, 22 Mar 2018 05:29:37 GMT
Author: damjan
Date: Thu Mar 22 05:29:37 2018
New Revision: 1827456

URL: http://svn.apache.org/viewvc?rev=1827456&view=rev
Log:
Implement the ability to build "UDK versioned" libraries in gbuild
for *nix platforms. Do this by setting the ELF SONAME to the
libxyz.so.3 style library output name, changing the output file
that the linker writes to to be in this format (from libxyz.so),
making a symlink from libxyz.so to libxyz.so.3, adding libxyz.so.3
as a delivery AUXTARGET for the deliverable libxyz.so, and
changing the deliver commands to copy symlinks properly. This is
all what dmake does too.

Use this to port main/registry to gbuild.

Patch by: me


Added:
    openoffice/trunk/main/registry/Executable_checksingleton.mk
    openoffice/trunk/main/registry/Executable_rdbedit.mk
    openoffice/trunk/main/registry/Executable_regcompare.mk
    openoffice/trunk/main/registry/Executable_regmerge.mk
    openoffice/trunk/main/registry/Executable_regview.mk
    openoffice/trunk/main/registry/Library_reg.mk
    openoffice/trunk/main/registry/Makefile
    openoffice/trunk/main/registry/Module_registry.mk
    openoffice/trunk/main/registry/Package_inc.mk
    openoffice/trunk/main/registry/inc/registry/registrydllapi.h
    openoffice/trunk/main/registry/prj/makefile.mk
Removed:
    openoffice/trunk/main/registry/inc/makefile.mk
    openoffice/trunk/main/registry/source/makefile.mk
    openoffice/trunk/main/registry/tools/makefile.mk
    openoffice/trunk/main/registry/util/makefile.mk
Modified:
    openoffice/trunk/main/Repository.mk
    openoffice/trunk/main/registry/inc/registry/reader.h
    openoffice/trunk/main/registry/inc/registry/reflread.hxx
    openoffice/trunk/main/registry/inc/registry/reflwrit.hxx
    openoffice/trunk/main/registry/inc/registry/registry.h
    openoffice/trunk/main/registry/inc/registry/registry.hxx
    openoffice/trunk/main/registry/inc/registry/writer.h
    openoffice/trunk/main/registry/prj/build.lst
    openoffice/trunk/main/registry/prj/d.lst
    openoffice/trunk/main/solenv/gbuild/Deliver.mk
    openoffice/trunk/main/solenv/gbuild/Library.mk
    openoffice/trunk/main/solenv/gbuild/gbuild.mk
    openoffice/trunk/main/solenv/gbuild/platform/freebsd.mk
    openoffice/trunk/main/solenv/gbuild/platform/linux.mk
    openoffice/trunk/main/solenv/gbuild/platform/solaris.mk

Modified: openoffice/trunk/main/Repository.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/Repository.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/Repository.mk (original)
+++ openoffice/trunk/main/Repository.mk Thu Mar 22 05:29:37 2018
@@ -27,8 +27,10 @@ $(eval $(call gb_Helper_register_reposit
 $(eval $(call gb_Helper_register_executables,NONE, \
 	bmp \
 	bmpsum \
+	checksingleton \
 	g2g \
 	mkunroll \
+	rdbedit \
 	rdbmaker \
 	rscdep \
 	so_checksum \
@@ -42,6 +44,15 @@ $(eval $(call gb_Helper_register_executa
     spadmin.bin \
 ))
 
+$(eval $(call gb_Helper_register_executables,SDK, \
+	regcompare \
+))
+
+$(eval $(call gb_Helper_register_executables,UREBIN, \
+	regmerge \
+	regview \
+))
+
 $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
     AppleRemote \
 	adabas \
@@ -101,7 +112,6 @@ $(eval $(call gb_Helper_register_librari
 	oox \
 	package2 \
 	qstart_gtk \
-	reg \
 	rpt \
 	rptui \
 	rptxml \
@@ -163,6 +173,8 @@ $(eval $(call gb_Helper_register_librari
 ))
 
 $(eval $(call gb_Helper_register_libraries,PLAINLIBS_URE, \
+	reg \
+	store \
 	xmlreader \
 ))
 

Added: openoffice/trunk/main/registry/Executable_checksingleton.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Executable_checksingleton.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Executable_checksingleton.mk (added)
+++ openoffice/trunk/main/registry/Executable_checksingleton.mk Thu Mar 22 05:29:37 2018
@@ -0,0 +1,49 @@
+#**************************************************************
+#  
+#  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_Executable_Executable,checksingleton))
+
+$(eval $(call gb_Library_add_package_headers,checksingleton,registry_inc))
+
+$(eval $(call gb_Executable_set_include,checksingleton,\
+       $$(INCLUDE) \
+       -I$(SRCDIR)/registry/inc/ \
+       -I$(SRCDIR)/registry/inc/pch \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,checksingleton,\
+       reg \
+       sal \
+       salhelper \
+       stl \
+       $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,checksingleton,\
+       registry/tools/checksingleton \
+       registry/tools/fileurl \
+       registry/tools/options \
+))
+
+# vim: set noet sw=4 ts=4:
+

Added: openoffice/trunk/main/registry/Executable_rdbedit.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Executable_rdbedit.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Executable_rdbedit.mk (added)
+++ openoffice/trunk/main/registry/Executable_rdbedit.mk Thu Mar 22 05:29:37 2018
@@ -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.
+#  
+#**************************************************************
+
+
+
+$(eval $(call gb_Executable_Executable,rdbedit))
+
+$(eval $(call gb_Library_add_package_headers,rdbedit,registry_inc))
+
+$(eval $(call gb_Executable_set_include,rdbedit,\
+	$$(INCLUDE) \
+	-I$(SRCDIR)/registry/inc/ \
+	-I$(SRCDIR)/registry/inc/pch \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,rdbedit,\
+	reg \
+	sal \
+	salhelper \
+	stl \
+    $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,rdbedit,\
+	registry/tools/rdbedit \
+))
+
+# vim: set noet sw=4 ts=4:

Added: openoffice/trunk/main/registry/Executable_regcompare.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Executable_regcompare.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Executable_regcompare.mk (added)
+++ openoffice/trunk/main/registry/Executable_regcompare.mk Thu Mar 22 05:29:37 2018
@@ -0,0 +1,48 @@
+#**************************************************************
+#  
+#  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_Executable_Executable,regcompare))
+
+$(eval $(call gb_Library_add_package_headers,regcompare,registry_inc))
+
+$(eval $(call gb_Executable_set_include,regcompare,\
+	$$(INCLUDE) \
+	-I$(SRCDIR)/registry/inc/ \
+	-I$(SRCDIR)/registry/inc/pch \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,regcompare,\
+	reg \
+	sal \
+	salhelper \
+	stl \
+    $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,regcompare,\
+	registry/tools/regcompare \
+	registry/tools/fileurl \
+	registry/tools/options \
+))
+
+# vim: set noet sw=4 ts=4:

Added: openoffice/trunk/main/registry/Executable_regmerge.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Executable_regmerge.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Executable_regmerge.mk (added)
+++ openoffice/trunk/main/registry/Executable_regmerge.mk Thu Mar 22 05:29:37 2018
@@ -0,0 +1,47 @@
+#**************************************************************
+#  
+#  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_Executable_Executable,regmerge))
+
+$(eval $(call gb_Library_add_package_headers,regmerge,registry_inc))
+
+$(eval $(call gb_Executable_set_include,regmerge,\
+	$$(INCLUDE) \
+	-I$(SRCDIR)/registry/inc/ \
+	-I$(SRCDIR)/registry/inc/pch \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,regmerge,\
+	reg \
+	sal \
+	stl \
+    $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,regmerge,\
+	registry/tools/regmerge \
+	registry/tools/fileurl \
+	registry/tools/options \
+))
+
+# vim: set noet sw=4 ts=4:

Added: openoffice/trunk/main/registry/Executable_regview.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Executable_regview.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Executable_regview.mk (added)
+++ openoffice/trunk/main/registry/Executable_regview.mk Thu Mar 22 05:29:37 2018
@@ -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.
+#  
+#**************************************************************
+
+
+
+$(eval $(call gb_Executable_Executable,regview))
+
+$(eval $(call gb_Library_add_package_headers,regview,registry_inc))
+
+$(eval $(call gb_Executable_set_include,regview,\
+	$$(INCLUDE) \
+	-I$(SRCDIR)/registry/inc/ \
+	-I$(SRCDIR)/registry/inc/pch \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,regview,\
+	reg \
+	sal \
+	stl \
+    $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,regview,\
+	registry/tools/regview \
+	registry/tools/fileurl \
+))
+
+# vim: set noet sw=4 ts=4:

Added: openoffice/trunk/main/registry/Library_reg.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Library_reg.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Library_reg.mk (added)
+++ openoffice/trunk/main/registry/Library_reg.mk Thu Mar 22 05:29:37 2018
@@ -0,0 +1,64 @@
+#**************************************************************
+#  
+#  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,reg))
+
+$(eval $(call gb_Library_add_package_headers,reg,registry_inc))
+
+$(eval $(call gb_Library_add_precompiled_header,reg,$(SRCDIR)/registry/inc/pch/precompiled_registry))
+
+$(eval $(call gb_Library_set_versionmap,reg,$(SRCDIR)/registry/util/reg.map))
+
+$(eval $(call gb_Library_set_include,reg,\
+	$$(INCLUDE) \
+	-I$(SRCDIR)/registry/inc/pch \
+	-I$(OUTDIR)/inc \
+))
+
+#$(eval $(call gb_Library_add_api,reg, \
+#        udkapi \
+#	offapi \
+#))
+
+$(eval $(call gb_Library_add_defs,reg,\
+        -DREGISTRY_DLLIMPLEMENTATION \
+))
+
+$(eval $(call gb_Library_add_linked_libs,reg,\
+	sal \
+	store \
+	stl \
+	$(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Library_add_exception_objects,reg,\
+	registry/source/regimpl \
+	registry/source/regkey \
+	registry/source/registry \
+	registry/source/keyimpl \
+	registry/source/reflread \
+	registry/source/reflwrit \
+))
+
+# vim: set noet sw=4 ts=4:
+

Added: openoffice/trunk/main/registry/Makefile
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Makefile?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Makefile (added)
+++ openoffice/trunk/main/registry/Makefile Thu Mar 22 05:29:37 2018
@@ -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:

Added: openoffice/trunk/main/registry/Module_registry.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Module_registry.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Module_registry.mk (added)
+++ openoffice/trunk/main/registry/Module_registry.mk Thu Mar 22 05:29:37 2018
@@ -0,0 +1,38 @@
+#**************************************************************
+#  
+#  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,registry))
+
+$(eval $(call gb_Module_add_targets,registry,\
+	Library_reg \
+	Executable_regmerge \
+	Executable_regview \
+	Executable_regcompare \
+	Executable_checksingleton \
+	Package_inc \
+))
+
+#	Executable_rdbedit \
+
+
+# vim: set noet sw=4 ts=4:

Added: openoffice/trunk/main/registry/Package_inc.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/Package_inc.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/Package_inc.mk (added)
+++ openoffice/trunk/main/registry/Package_inc.mk Thu Mar 22 05:29:37 2018
@@ -0,0 +1,37 @@
+#**************************************************************
+#  
+#  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,registry_inc,$(SRCDIR)/registry/inc))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/reader.h,registry/reader.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/reader.hxx,registry/reader.hxx))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/reflread.hxx,registry/reflread.hxx))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/refltype.hxx,registry/refltype.hxx))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/reflwrit.hxx,registry/reflwrit.hxx))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/registry.h,registry/registry.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/registry.hxx,registry/registry.hxx))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/registrydllapi.h,registry/registrydllapi.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/regtype.h,registry/regtype.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/types.h,registry/types.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/version.h,registry/version.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/writer.h,registry/writer.h))
+$(eval $(call gb_Package_add_file,registry_inc,inc/registry/writer.hxx,registry/writer.hxx))

Modified: openoffice/trunk/main/registry/inc/registry/reader.h
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/reader.h?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/reader.h (original)
+++ openoffice/trunk/main/registry/inc/registry/reader.h Thu Mar 22 05:29:37 2018
@@ -26,6 +26,7 @@
 
 #include "registry/types.h"
 #include "registry/version.h"
+#include "registry/registrydllapi.h"
 
 #include "rtl/ustring.h"
 #include "sal/types.h"
@@ -65,7 +66,7 @@ extern "C" {
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_reader_create(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_reader_create(
     void const * buffer, sal_uInt32 length, sal_Bool copy,
     enum typereg_Version maxVersion, void ** result)
     SAL_THROW_EXTERN_C();
@@ -77,7 +78,7 @@ sal_Bool SAL_CALL typereg_reader_create(
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_acquire(void * handle) SAL_THROW_EXTERN_C();
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_acquire(void * handle) SAL_THROW_EXTERN_C();
 
 /**
    Decrements the reference count of a type reader.
@@ -88,7 +89,7 @@ void SAL_CALL typereg_reader_acquire(voi
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_release(void * handle) SAL_THROW_EXTERN_C();
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_release(void * handle) SAL_THROW_EXTERN_C();
 
 /**
    Returns the binary blob version of a type reader.
@@ -101,7 +102,7 @@ void SAL_CALL typereg_reader_release(voi
 
    @since UDK 3.2.0
  */
-enum typereg_Version SAL_CALL typereg_reader_getVersion(void * handle)
+REGISTRY_DLLPUBLIC enum typereg_Version SAL_CALL typereg_reader_getVersion(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -115,7 +116,7 @@ enum typereg_Version SAL_CALL typereg_re
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getDocumentation(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getDocumentation(
     void * handle, rtl_uString ** result) SAL_THROW_EXTERN_C();
 
 /**
@@ -130,7 +131,7 @@ void SAL_CALL typereg_reader_getDocument
    @since UDK 3.2.0
    @deprecated
  */
-void SAL_CALL typereg_reader_getFileName(void * handle, rtl_uString ** result)
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getFileName(void * handle, rtl_uString ** result)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -148,7 +149,7 @@ void SAL_CALL typereg_reader_getFileName
 
    @since UDK 3.2.0
  */
-enum RTTypeClass SAL_CALL typereg_reader_getTypeClass(void * handle)
+REGISTRY_DLLPUBLIC enum RTTypeClass SAL_CALL typereg_reader_getTypeClass(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -161,7 +162,7 @@ enum RTTypeClass SAL_CALL typereg_reader
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_reader_isPublished(void * handle)
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_reader_isPublished(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -175,7 +176,7 @@ sal_Bool SAL_CALL typereg_reader_isPubli
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getTypeName(void * handle, rtl_uString ** result)
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getTypeName(void * handle, rtl_uString ** result)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -188,7 +189,7 @@ void SAL_CALL typereg_reader_getTypeName
 
    @since UDK 3.2.0
  */
-sal_uInt16 SAL_CALL typereg_reader_getSuperTypeCount(void * handle)
+REGISTRY_DLLPUBLIC sal_uInt16 SAL_CALL typereg_reader_getSuperTypeCount(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -205,7 +206,7 @@ sal_uInt16 SAL_CALL typereg_reader_getSu
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getSuperTypeName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getSuperTypeName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -219,7 +220,7 @@ void SAL_CALL typereg_reader_getSuperTyp
 
    @since UDK 3.2.0
  */
-sal_uInt16 SAL_CALL typereg_reader_getFieldCount(void * handle)
+REGISTRY_DLLPUBLIC sal_uInt16 SAL_CALL typereg_reader_getFieldCount(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -235,7 +236,7 @@ sal_uInt16 SAL_CALL typereg_reader_getFi
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getFieldDocumentation(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getFieldDocumentation(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -253,7 +254,7 @@ void SAL_CALL typereg_reader_getFieldDoc
    @since UDK 3.2.0
    @deprecated
  */
-void SAL_CALL typereg_reader_getFieldFileName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getFieldFileName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -268,7 +269,7 @@ void SAL_CALL typereg_reader_getFieldFil
 
    @since UDK 3.2.0
  */
-RTFieldAccess SAL_CALL typereg_reader_getFieldFlags(
+REGISTRY_DLLPUBLIC RTFieldAccess SAL_CALL typereg_reader_getFieldFlags(
     void * handle, sal_uInt16 index) SAL_THROW_EXTERN_C();
 
 /**
@@ -284,7 +285,7 @@ RTFieldAccess SAL_CALL typereg_reader_ge
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getFieldName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getFieldName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -301,7 +302,7 @@ void SAL_CALL typereg_reader_getFieldNam
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getFieldTypeName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getFieldTypeName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -323,7 +324,7 @@ void SAL_CALL typereg_reader_getFieldTyp
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_reader_getFieldValue(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_reader_getFieldValue(
     void * handle, sal_uInt16 index, enum RTValueType * type,
     union RTConstValueUnion * value)
     SAL_THROW_EXTERN_C();
@@ -338,7 +339,7 @@ sal_Bool SAL_CALL typereg_reader_getFiel
 
    @since UDK 3.2.0
  */
-sal_uInt16 SAL_CALL typereg_reader_getMethodCount(void * handle)
+REGISTRY_DLLPUBLIC sal_uInt16 SAL_CALL typereg_reader_getMethodCount(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -354,7 +355,7 @@ sal_uInt16 SAL_CALL typereg_reader_getMe
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getMethodDocumentation(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getMethodDocumentation(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -369,7 +370,7 @@ void SAL_CALL typereg_reader_getMethodDo
 
    @since UDK 3.2.0
  */
-enum RTMethodMode SAL_CALL typereg_reader_getMethodFlags(
+REGISTRY_DLLPUBLIC enum RTMethodMode SAL_CALL typereg_reader_getMethodFlags(
     void * handle, sal_uInt16 index) SAL_THROW_EXTERN_C();
 
 /**
@@ -385,7 +386,7 @@ enum RTMethodMode SAL_CALL typereg_reade
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getMethodName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getMethodName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -402,7 +403,7 @@ void SAL_CALL typereg_reader_getMethodNa
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getMethodReturnTypeName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getMethodReturnTypeName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -417,7 +418,7 @@ void SAL_CALL typereg_reader_getMethodRe
 
    @since UDK 3.2.0
  */
-sal_uInt16 SAL_CALL typereg_reader_getMethodParameterCount(
+REGISTRY_DLLPUBLIC sal_uInt16 SAL_CALL typereg_reader_getMethodParameterCount(
     void * handle, sal_uInt16 index) SAL_THROW_EXTERN_C();
 
 /**
@@ -436,7 +437,7 @@ sal_uInt16 SAL_CALL typereg_reader_getMe
 
    @since UDK 3.2.0
  */
-enum RTParamMode SAL_CALL typereg_reader_getMethodParameterFlags(
+REGISTRY_DLLPUBLIC enum RTParamMode SAL_CALL typereg_reader_getMethodParameterFlags(
     void * handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
     SAL_THROW_EXTERN_C();
 
@@ -457,7 +458,7 @@ enum RTParamMode SAL_CALL typereg_reader
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getMethodParameterName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getMethodParameterName(
     void * handle, rtl_uString ** result, sal_uInt16 methodIndex,
     sal_uInt16 parameterIndex)
     SAL_THROW_EXTERN_C();
@@ -479,7 +480,7 @@ void SAL_CALL typereg_reader_getMethodPa
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getMethodParameterTypeName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getMethodParameterTypeName(
     void * handle, rtl_uString ** result, sal_uInt16 methodIndex,
     sal_uInt16 parameterIndex)
     SAL_THROW_EXTERN_C();
@@ -495,7 +496,7 @@ void SAL_CALL typereg_reader_getMethodPa
 
    @since UDK 3.2.0
  */
-sal_uInt16 SAL_CALL typereg_reader_getMethodExceptionCount(
+REGISTRY_DLLPUBLIC sal_uInt16 SAL_CALL typereg_reader_getMethodExceptionCount(
     void * handle, sal_uInt16 index) SAL_THROW_EXTERN_C();
 
 /**
@@ -515,7 +516,7 @@ sal_uInt16 SAL_CALL typereg_reader_getMe
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getMethodExceptionTypeName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getMethodExceptionTypeName(
     void * handle, rtl_uString ** result, sal_uInt16 methodIndex,
     sal_uInt16 exceptionIndex)
     SAL_THROW_EXTERN_C();
@@ -530,7 +531,7 @@ void SAL_CALL typereg_reader_getMethodEx
 
    @since UDK 3.2.0
  */
-sal_uInt16 SAL_CALL typereg_reader_getReferenceCount(void * handle)
+REGISTRY_DLLPUBLIC sal_uInt16 SAL_CALL typereg_reader_getReferenceCount(void * handle)
     SAL_THROW_EXTERN_C();
 
 /**
@@ -547,7 +548,7 @@ sal_uInt16 SAL_CALL typereg_reader_getRe
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getReferenceDocumentation(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getReferenceDocumentation(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 
@@ -563,7 +564,7 @@ void SAL_CALL typereg_reader_getReferenc
 
    @since UDK 3.2.0
  */
-RTFieldAccess SAL_CALL typereg_reader_getReferenceFlags(
+REGISTRY_DLLPUBLIC RTFieldAccess SAL_CALL typereg_reader_getReferenceFlags(
     void * handle, sal_uInt16 index) SAL_THROW_EXTERN_C();
 
 /**
@@ -578,7 +579,7 @@ RTFieldAccess SAL_CALL typereg_reader_ge
 
    @since UDK 3.2.0
  */
-enum RTReferenceType SAL_CALL typereg_reader_getReferenceSort(
+REGISTRY_DLLPUBLIC enum RTReferenceType SAL_CALL typereg_reader_getReferenceSort(
     void * handle, sal_uInt16 index) SAL_THROW_EXTERN_C();
 
 /**
@@ -595,7 +596,7 @@ enum RTReferenceType SAL_CALL typereg_re
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_reader_getReferenceTypeName(
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_reader_getReferenceTypeName(
     void * handle, rtl_uString ** result, sal_uInt16 index)
     SAL_THROW_EXTERN_C();
 

Modified: openoffice/trunk/main/registry/inc/registry/reflread.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/reflread.hxx?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/reflread.hxx (original)
+++ openoffice/trunk/main/registry/inc/registry/reflread.hxx Thu Mar 22 05:29:37 2018
@@ -26,6 +26,7 @@
 
 #include <registry/refltype.hxx>
 #include <registry/regtype.h>
+#include "registry/registrydllapi.h"
 #include <rtl/ustring.hxx>
 
 /// Implememetation handle
@@ -86,7 +87,7 @@ struct RegistryTypeReader_Api
 
 /** the API initialization function.
 */
-RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(void);
+REGISTRY_DLLPUBLIC RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(void);
 
 #ifdef __cplusplus
 }

Modified: openoffice/trunk/main/registry/inc/registry/reflwrit.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/reflwrit.hxx?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/reflwrit.hxx (original)
+++ openoffice/trunk/main/registry/inc/registry/reflwrit.hxx Thu Mar 22 05:29:37 2018
@@ -26,6 +26,7 @@
 
 #include <registry/refltype.hxx>
 #include <registry/regtype.h>
+#include "registry/registrydllapi.h"
 #include <rtl/ustring.hxx>
 
 /// Implememetation handle
@@ -65,7 +66,7 @@ struct RegistryTypeWriter_Api
 
 /** the API initialization function.
 */
-RegistryTypeWriter_Api* TYPEREG_CALLTYPE initRegistryTypeWriter_Api(void);
+REGISTRY_DLLPUBLIC RegistryTypeWriter_Api* TYPEREG_CALLTYPE initRegistryTypeWriter_Api(void);
 
 #ifdef __cplusplus
 }

Modified: openoffice/trunk/main/registry/inc/registry/registry.h
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/registry.h?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/registry.h (original)
+++ openoffice/trunk/main/registry/inc/registry/registry.h Thu Mar 22 05:29:37 2018
@@ -27,6 +27,7 @@
 #include <stddef.h>
 #include <rtl/ustring.h>
 #include <registry/regtype.h>
+#include "registry/registrydllapi.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -43,7 +44,7 @@ extern "C" {
                      reg_closeKey. If the function fails, phNewKey is NULL.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_createKey(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_createKey(RegKeyHandle hKey, 
 										 rtl_uString* keyName, 
 										 RegKeyHandle* phNewKey);
 
@@ -58,7 +59,7 @@ RegError REGISTRY_CALLTYPE reg_createKey
                      reg_closeKey. If the function fails, phNewKey is NULL.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_openKey(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openKey(RegKeyHandle hKey, 
 					  				   rtl_uString* keyName, 
 					  				   RegKeyHandle* phOpenKey);
 					  
@@ -76,7 +77,7 @@ RegError REGISTRY_CALLTYPE reg_openKey(R
 	@param	pnSubKeys specifies the length of the array (the number of open subkeys).
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_openSubKeys(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openSubKeys(RegKeyHandle hKey, 
 						  				   rtl_uString* keyName, 
 						  				   RegKeyHandle** pphSubKeys, 
 						  				   sal_uInt32* pnSubKeys);
@@ -89,7 +90,7 @@ RegError REGISTRY_CALLTYPE reg_openSubKe
 	@param	nSubKeys specifies the length of the array (the number of subkeys to closed).
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_closeSubKeys(RegKeyHandle* phSubKeys, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_closeSubKeys(RegKeyHandle* phSubKeys, 
 						   					sal_uInt32 nSubKeys);
 
 
@@ -101,7 +102,7 @@ RegError REGISTRY_CALLTYPE reg_closeSubK
                     be deleted.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_deleteKey(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_deleteKey(RegKeyHandle hKey, 
 										 rtl_uString* keyName);
 
 
@@ -111,7 +112,7 @@ RegError REGISTRY_CALLTYPE reg_deleteKey
                  The memory of the variable specifying the key will be freed.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_closeKey(RegKeyHandle hKey);
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_closeKey(RegKeyHandle hKey);
 
 
 /**	This function returns the name of a key.
@@ -119,7 +120,7 @@ RegError REGISTRY_CALLTYPE reg_closeKey(
 	@param	hKey identifies a currently open key which name will be returned.
 	@param	pKeyName contains the keyname if succeeds else an empty string. 
 */
-RegError REGISTRY_CALLTYPE reg_getKeyName(RegKeyHandle hKey, rtl_uString** pKeyName);
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getKeyName(RegKeyHandle hKey, rtl_uString** pKeyName);
 
 
 /**	This function sets a value of a key.
@@ -134,7 +135,7 @@ RegError REGISTRY_CALLTYPE reg_getKeyNam
 	@param	valueSize specifies the size of pData in bytes
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_setValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_setValue(RegKeyHandle hKey, 
 					   					rtl_uString* keyName, 
 					   					RegValueType valueType, 
 					   					RegValue pData, 
@@ -150,7 +151,7 @@ RegError REGISTRY_CALLTYPE reg_setValue(
 	@param	len specifies the len of pValueList.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_setLongListValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_setLongListValue(RegKeyHandle hKey, 
 					   		 	  				rtl_uString* keyName, 
 			   			 		  				sal_Int32* pValueList, 
 			   			 		  				sal_uInt32 len);
@@ -165,7 +166,7 @@ RegError REGISTRY_CALLTYPE reg_setLongLi
 	@param	len specifies the len of pValueList.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_setStringListValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_setStringListValue(RegKeyHandle hKey, 
 					   		 	  			  	  rtl_uString* keyName, 
 			   			 		  			  	  sal_Char** pValueList, 
 			   			 		  			  	  sal_uInt32 len);
@@ -180,7 +181,7 @@ RegError REGISTRY_CALLTYPE reg_setString
 	@param	len	specifies the len of pValueList.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_setUnicodeListValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_setUnicodeListValue(RegKeyHandle hKey, 
 					   		 	  			   	   rtl_uString* keyName, 
 			   			 		  			   	   sal_Unicode** pValueList, 
 			   			 		  			   	   sal_uInt32 len);
@@ -197,7 +198,7 @@ RegError REGISTRY_CALLTYPE reg_setUnicod
 	@param	pValueSize returns the size of the value in bytes
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_getValueInfo(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getValueInfo(RegKeyHandle hKey, 
 						   					rtl_uString* keyName, 
 						   					RegValueType* pValueType, 
 						   					sal_uInt32* pValueSize);
@@ -213,7 +214,7 @@ RegError REGISTRY_CALLTYPE reg_getValueI
 	@param	pData points to an allocated memory block receiving the data of the value. 
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_getValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getValue(RegKeyHandle hKey, 
 					   					rtl_uString* keyName, 
 					   					RegValue pData);
 
@@ -227,7 +228,7 @@ RegError REGISTRY_CALLTYPE reg_getValue(
 	@param	pLen returns the length of the value list.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_getLongListValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getLongListValue(RegKeyHandle hKey, 
 					   		 	  				rtl_uString* keyName, 
 			   			 		  				sal_Int32** pValueList, 
 			   			 		  				sal_uInt32* pLen);
@@ -242,7 +243,7 @@ RegError REGISTRY_CALLTYPE reg_getLongLi
 	@param	pLen returns the length of the value list.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_getStringListValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getStringListValue(RegKeyHandle hKey, 
 				   			  					  rtl_uString* keyName, 
 				   			  					  sal_Char*** pValueList,
 				   			  					  sal_uInt32* pLen);
@@ -257,7 +258,7 @@ RegError REGISTRY_CALLTYPE reg_getString
 	@param	pLen returns the length of the value list.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_getUnicodeListValue(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getUnicodeListValue(RegKeyHandle hKey, 
 					   		 	  				   rtl_uString* keyName, 
 			   			 		  				   sal_Unicode*** pValueList, 
 			   			 		  				   sal_uInt32* pLen);
@@ -270,7 +271,7 @@ RegError REGISTRY_CALLTYPE reg_getUnicod
 	@param	len specifies the length of the value list.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_freeValueList(RegValueType valueType, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_freeValueList(RegValueType valueType, 
 				   			  				 RegValue pValueList, 
 				   			  				 sal_uInt32 len);
 
@@ -280,7 +281,7 @@ RegError REGISTRY_CALLTYPE reg_freeValue
 
 	@return	REG_INVALID_LINK
 */
-RegError REGISTRY_CALLTYPE reg_createLink(RegKeyHandle hKey,
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_createLink(RegKeyHandle hKey,
 				  			   		      rtl_uString* linkName, 
 										  rtl_uString* linkTarget);
 
@@ -290,7 +291,7 @@ RegError REGISTRY_CALLTYPE reg_createLin
 
 	@return	REG_INVALID_LINK
 */
-RegError REGISTRY_CALLTYPE reg_deleteLink(RegKeyHandle hKey,
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_deleteLink(RegKeyHandle hKey,
 								  		  rtl_uString* linkName);
 
 /** This function returns the type of a key.
@@ -303,7 +304,7 @@ RegError REGISTRY_CALLTYPE reg_deleteLin
     @param  pKeyType returns the type of the key.   
 	@return	REG_NO_ERROR if succeeds else an error code.    
 */
-RegError REGISTRY_CALLTYPE reg_getKeyType(RegKeyHandle hKey,
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getKeyType(RegKeyHandle hKey,
 										  rtl_uString* keyName,
 					   					  RegKeyType* pKeyType);
 
@@ -313,7 +314,7 @@ RegError REGISTRY_CALLTYPE reg_getKeyTyp
 
 	@return	REG_INVALID_LINK
 */
-RegError REGISTRY_CALLTYPE reg_getLinkTarget(RegKeyHandle hKey,
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getLinkTarget(RegKeyHandle hKey,
 											 rtl_uString* linkName,
 						  					 rtl_uString** pLinkTarget);
 
@@ -327,7 +328,7 @@ RegError REGISTRY_CALLTYPE reg_getLinkTa
     @param firstLinkOnly ignored
 	@return	REG_NO_ERROR if succeeds else an error code. 
  */
-RegError REGISTRY_CALLTYPE reg_getResolvedKeyName(RegKeyHandle hKey,
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getResolvedKeyName(RegKeyHandle hKey,
 											  	  rtl_uString* keyName,
 											 	  sal_Bool firstLinkOnly,
 							  				  	  rtl_uString** pResolvedName);
@@ -344,7 +345,7 @@ RegError REGISTRY_CALLTYPE reg_getResolv
 			            registry information.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_loadKey(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_loadKey(RegKeyHandle hKey, 
 					  				   rtl_uString* keyName, 
 					  				   rtl_uString* regFileName);
 
@@ -361,7 +362,7 @@ RegError REGISTRY_CALLTYPE reg_loadKey(R
 			            registry information.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_saveKey(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_saveKey(RegKeyHandle hKey, 
 					  				   rtl_uString* keyName, 
 					  				   rtl_uString* regFileName);
 
@@ -381,7 +382,7 @@ RegError REGISTRY_CALLTYPE reg_saveKey(R
 	@param	bReport if TRUE the function reports warnings on stdout if a key already exists. 
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_mergeKey(RegKeyHandle hKey, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_mergeKey(RegKeyHandle hKey, 
 					   					rtl_uString* keyName, 
 					   					rtl_uString* regFileName,
 					   					sal_Bool bWarnings,
@@ -394,7 +395,7 @@ RegError REGISTRY_CALLTYPE reg_mergeKey(
 	@param 	phRegistry points to a handle of the new registry if the function succeeds otherwise NULL.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_createRegistry(rtl_uString* registryName, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_createRegistry(rtl_uString* registryName, 
 							 				  RegHandle* phRegistry);
 
 
@@ -404,7 +405,7 @@ RegError REGISTRY_CALLTYPE reg_createReg
 	@param 	phRootKey points to a handle of the open root key if the function succeeds otherwise NULL.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_openRootKey(RegHandle hRegistry, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openRootKey(RegHandle hRegistry, 
 						  				   RegKeyHandle* phRootKey);
 
 
@@ -414,7 +415,7 @@ RegError REGISTRY_CALLTYPE reg_openRootK
 	@param  pName returns the name of the registry if the function succeeds otherwise an empty string. 
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_getName(RegHandle hRegistry, rtl_uString** pName);
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_getName(RegHandle hRegistry, rtl_uString** pName);
 
 
 /**	This function returns the access mode of the registry.
@@ -422,7 +423,7 @@ RegError REGISTRY_CALLTYPE reg_getName(R
 	@param	hReg identifies a currently open registry.
 	@return	TRUE if accessmode is read only else FALSE. 
 */
-sal_Bool REGISTRY_CALLTYPE reg_isReadOnly(RegHandle hReg);
+REGISTRY_DLLPUBLIC sal_Bool REGISTRY_CALLTYPE reg_isReadOnly(RegHandle hReg);
 
 
 /**	This function opens a registry with the specified name.
@@ -432,7 +433,7 @@ sal_Bool REGISTRY_CALLTYPE reg_isReadOnl
 	@param 	accessMode specifies the accessmode of the registry, REG_READONLY or REG_READWRITE.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_openRegistry(rtl_uString* registryName, 
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openRegistry(rtl_uString* registryName, 
 						   					RegHandle* phRegistry,
 						   					RegAccessMode accessMode);
 
@@ -442,7 +443,7 @@ RegError REGISTRY_CALLTYPE reg_openRegis
 	@param	hRegistry identifies a currently open registry which should be closed.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_closeRegistry(RegHandle hRegistry);
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_closeRegistry(RegHandle hRegistry);
 
 
 /**	This function destroys a registry.
@@ -452,7 +453,7 @@ RegError REGISTRY_CALLTYPE reg_closeRegi
                          name is NULL the registry itselfs will be destroyed.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_destroyRegistry(RegHandle hRegistry,
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_destroyRegistry(RegHandle hRegistry,
 											   rtl_uString* registryName);
 
 
@@ -463,7 +464,7 @@ RegError REGISTRY_CALLTYPE reg_destroyRe
 	@param	hKey identifies a currently open key which content will be reported.
 	@return	REG_NO_ERROR if succeeds else an error code. 
 */
-RegError REGISTRY_CALLTYPE reg_dumpRegistry(RegKeyHandle hKey);
+REGISTRY_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_dumpRegistry(RegKeyHandle hKey);
 
 #ifdef __cplusplus
 }

Modified: openoffice/trunk/main/registry/inc/registry/registry.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/registry.hxx?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/registry.hxx (original)
+++ openoffice/trunk/main/registry/inc/registry/registry.hxx Thu Mar 22 05:29:37 2018
@@ -26,6 +26,7 @@
 
 #include <registry/regtype.h>
 #include <rtl/ustring.hxx>
+#include "registry/registrydllapi.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -81,7 +82,7 @@ struct Registry_Api
 
 /** the API initialization function.
 */
-Registry_Api* REGISTRY_CALLTYPE initRegistry_Api(void);
+REGISTRY_DLLPUBLIC Registry_Api* REGISTRY_CALLTYPE initRegistry_Api(void);
 
 #ifdef __cplusplus
 }

Added: openoffice/trunk/main/registry/inc/registry/registrydllapi.h
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/registrydllapi.h?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/registrydllapi.h (added)
+++ openoffice/trunk/main/registry/inc/registry/registrydllapi.h Thu Mar 22 05:29:37 2018
@@ -0,0 +1,37 @@
+/**************************************************************
+ * 
+ * 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.
+ * 
+ *************************************************************/
+
+
+
+#ifndef INCLUDED_REGISTRYDLLAPI_H
+#define INCLUDED_REGISTRYDLLAPI_H
+                                                                                                                             
+#include "sal/types.h"
+
+#if defined(REGISTRY_DLLIMPLEMENTATION)
+#define REGISTRY_DLLPUBLIC  SAL_DLLPUBLIC_EXPORT
+#else
+#define REGISTRY_DLLPUBLIC  SAL_DLLPUBLIC_IMPORT
+#endif
+#define REGISTRY_DLLPRIVATE SAL_DLLPRIVATE
+                                                                                    
+#endif /* INCLUDED_REGISTRYDLLAPI_H */
+

Modified: openoffice/trunk/main/registry/inc/registry/writer.h
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/inc/registry/writer.h?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/inc/registry/writer.h (original)
+++ openoffice/trunk/main/registry/inc/registry/writer.h Thu Mar 22 05:29:37 2018
@@ -26,6 +26,7 @@
 
 #include "registry/types.h"
 #include "registry/version.h"
+#include "registry/registrydllapi.h"
 
 #include "rtl/ustring.h"
 #include "sal/types.h"
@@ -67,7 +68,7 @@ extern "C" {
 
    @since UDK 3.2.0
  */
-void * SAL_CALL typereg_writer_create(
+REGISTRY_DLLPUBLIC void * SAL_CALL typereg_writer_create(
     typereg_Version version, rtl_uString const * documentation,
     rtl_uString const * fileName, RTTypeClass typeClass, sal_Bool published,
     rtl_uString const * typeName, sal_uInt16 superTypeCount,
@@ -82,7 +83,7 @@ void * SAL_CALL typereg_writer_create(
 
    @since UDK 3.2.0
  */
-void SAL_CALL typereg_writer_destroy(void * handle) SAL_THROW_EXTERN_C();
+REGISTRY_DLLPUBLIC void SAL_CALL typereg_writer_destroy(void * handle) SAL_THROW_EXTERN_C();
 
 /**
    Sets the type name of a super type of a type writer.
@@ -99,7 +100,7 @@ void SAL_CALL typereg_writer_destroy(voi
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_writer_setSuperTypeName(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setSuperTypeName(
     void * handle, sal_uInt16 index, rtl_uString const * typeName)
         SAL_THROW_EXTERN_C();
 
@@ -129,7 +130,7 @@ sal_Bool SAL_CALL typereg_writer_setSupe
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_writer_setFieldData(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setFieldData(
     void * handle, sal_uInt16 index, rtl_uString const * documentation,
     rtl_uString const * fileName, RTFieldAccess flags, rtl_uString const * name,
     rtl_uString const * typeName, RTValueType valueType,
@@ -160,7 +161,7 @@ sal_Bool SAL_CALL typereg_writer_setFiel
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_writer_setMethodData(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setMethodData(
     void * handle, sal_uInt16 index, rtl_uString const * documentation,
     RTMethodMode flags, rtl_uString const * name,
     rtl_uString const * returnTypeName, sal_uInt16 parameterCount,
@@ -189,7 +190,7 @@ sal_Bool SAL_CALL typereg_writer_setMeth
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_writer_setMethodParameterData(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setMethodParameterData(
     void * handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex,
     RTParamMode flags, rtl_uString const * name, rtl_uString const * typeName)
     SAL_THROW_EXTERN_C();
@@ -212,7 +213,7 @@ sal_Bool SAL_CALL typereg_writer_setMeth
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_writer_setMethodExceptionTypeName(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setMethodExceptionTypeName(
     void * handle, sal_uInt16 methodIndex, sal_uInt16 exceptionIndex,
     rtl_uString const * typeName)
     SAL_THROW_EXTERN_C();
@@ -238,7 +239,7 @@ sal_Bool SAL_CALL typereg_writer_setMeth
 
    @since UDK 3.2.0
  */
-sal_Bool SAL_CALL typereg_writer_setReferenceData(
+REGISTRY_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setReferenceData(
     void * handle, sal_uInt16 index, rtl_uString const * documentation,
     RTReferenceType sort, RTFieldAccess flags, rtl_uString const * typeName)
     SAL_THROW_EXTERN_C();
@@ -255,7 +256,7 @@ sal_Bool SAL_CALL typereg_writer_setRefe
    the given type writer; if an out-of-memory condition occurs, null is returned
    and <code>size</code> is not modified
  */
-void const * SAL_CALL typereg_writer_getBlob(void * handle, sal_uInt32 * size)
+REGISTRY_DLLPUBLIC void const * SAL_CALL typereg_writer_getBlob(void * handle, sal_uInt32 * size)
     SAL_THROW_EXTERN_C();
 
 #ifdef __cplusplus

Modified: openoffice/trunk/main/registry/prj/build.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/prj/build.lst?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/prj/build.lst (original)
+++ openoffice/trunk/main/registry/prj/build.lst Thu Mar 22 05:29:37 2018
@@ -1,7 +1,2 @@
 rg	registry	:	salhelper store NULL
-rg	registry								usr1	-	all	rg_mkout NULL
-rg	registry\inc							nmake	-	all	rg_inc NULL
-rg	registry\prj							get		-	all	rg_prj rg_inc NULL
-rg	registry\source							nmake	-	all	rg_src rg_inc NULL
-rg	registry\util							nmake	-	all	rg_utl rg_src NULL
-rg	registry\tools							nmake	-	all	rg_tls rg_utl NULL
+rg	registry\prj							nmake		-	all rg_prj NULL

Modified: openoffice/trunk/main/registry/prj/d.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/prj/d.lst?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/registry/prj/d.lst (original)
+++ openoffice/trunk/main/registry/prj/d.lst Thu Mar 22 05:29:37 2018
@@ -1,20 +0,0 @@
-mkdir: %_DEST%\inc%_EXT%\registry
-
-..\inc\registry\*.h %_DEST%\inc%_EXT%\registry\*.h
-..\inc\registry\*.hxx %_DEST%\inc%_EXT%\registry\*.hxx
-
-..\%__SRC%\lib\ireg.lib %_DEST%\lib%_EXT%\ireg.lib
-..\%__SRC%\lib\reg*.lib %_DEST%\lib%_EXT%\*
-..\%__SRC%\lib\libreg.*.* %_DEST%\lib%_EXT%\*
-..\%__SRC%\bin\reg*.dll %_DEST%\bin%_EXT%\reg*.dll
-
-..\%__SRC%\bin\checksingleton.exe %_DEST%\bin%_EXT%\checksingleton.exe
-..\%__SRC%\bin\regcompare.exe %_DEST%\bin%_EXT%\regcompare.exe
-..\%__SRC%\bin\regmerge.exe %_DEST%\bin%_EXT%\regmerge.exe
-..\%__SRC%\bin\regview.exe %_DEST%\bin%_EXT%\regview.exe
-..\%__SRC%\bin\checksingleton %_DEST%\bin%_EXT%\checksingleton
-..\%__SRC%\bin\regcompare %_DEST%\bin%_EXT%\regcompare
-..\%__SRC%\bin\regmerge %_DEST%\bin%_EXT%\regmerge
-..\%__SRC%\bin\regview %_DEST%\bin%_EXT%\regview
-
-linklib: libreg.*.*

Added: openoffice/trunk/main/registry/prj/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/registry/prj/makefile.mk?rev=1827456&view=auto
==============================================================================
--- openoffice/trunk/main/registry/prj/makefile.mk (added)
+++ openoffice/trunk/main/registry/prj/makefile.mk Thu Mar 22 05:29:37 2018
@@ -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/solenv/gbuild/Deliver.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/gbuild/Deliver.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/gbuild/Deliver.mk (original)
+++ openoffice/trunk/main/solenv/gbuild/Deliver.mk Thu Mar 22 05:29:37 2018
@@ -56,11 +56,11 @@ endef
 
 ifeq ($(strip $(gb_Deliver_GNUCOPY)),)
 define gb_Deliver__deliver
-mkdir -p $(dir $(2)) && $(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) cp -f $(1) $(2) && touch -r $(1) $(2)
+mkdir -p $(dir $(2)) && $(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) cp -R -P -f $(1) $(2) && touch -r $(1) $(2)
 endef
 else
 define gb_Deliver__deliver
-mkdir -p $(dir $(2)) && $(gb_Deliver_GNUCOPY) $(if $(gb_Deliver_CLEARONDELIVER),--remove-destination) --force --preserve=timestamps $(1) $(2)
+mkdir -p $(dir $(2)) && $(gb_Deliver_GNUCOPY) $(if $(gb_Deliver_CLEARONDELIVER),--remove-destination) -R -P --force --preserve=timestamps $(1) $(2)
 endef
 endif
 

Modified: openoffice/trunk/main/solenv/gbuild/Library.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/gbuild/Library.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/gbuild/Library.mk (original)
+++ openoffice/trunk/main/solenv/gbuild/Library.mk Thu Mar 22 05:29:37 2018
@@ -100,6 +100,15 @@ endef
 gb_Library_get_runtime_filename = \
  $(or $(call gb_Library_get_dllname,$(1)),$(call gb_Library_get_filename,$(1)))
 
+# FIXME: is there a better way?
+define gb_Library_is_udk_versioned
+$(or \
+	$(filter $(patsubst %:$(notdir $(1)),%,$(filter %:$(notdir $(1)),$(gb_Library_FILENAMES))),$(gb_Library_RTVERLIBS)),\
+	$(filter $(patsubst %:$(notdir $(1)),%,$(filter %:$(notdir $(1)),$(gb_Library_FILENAMES))),$(gb_Library_UNOVERLIBS)),\
+	$(filter reg,$(patsubst %:$(notdir $(1)),%,$(filter %:$(notdir $(1)),$(gb_Library_FILENAMES)))),\
+	$(filter store,$(patsubst %:$(notdir $(1)),%,$(filter %:$(notdir $(1)),$(gb_Library_FILENAMES)))))
+endef
+
 $(eval $(foreach method,\
 	add_cobject \
 	add_cobjects \

Modified: openoffice/trunk/main/solenv/gbuild/gbuild.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/gbuild/gbuild.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/gbuild/gbuild.mk (original)
+++ openoffice/trunk/main/solenv/gbuild/gbuild.mk Thu Mar 22 05:29:37 2018
@@ -118,6 +118,8 @@ else
 gb_FULLDEPS := $(true)
 endif
 
+gb_UDK_MAJOR := 3
+
 include $(GBUILDDIR)/Helper.mk
 include $(GBUILDDIR)/TargetLocations.mk
 

Modified: openoffice/trunk/main/solenv/gbuild/platform/freebsd.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/gbuild/platform/freebsd.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/gbuild/platform/freebsd.mk (original)
+++ openoffice/trunk/main/solenv/gbuild/platform/freebsd.mk Thu Mar 22 05:29:37 2018
@@ -256,6 +256,7 @@ $(call gb_Helper_abbreviate_dirs,\
 	$(gb_CXX) \
 		$(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
 		$(if $(VERSIONMAP),$(gb_Library_VERSIONMAPFLAG) $(VERSIONMAP)) \
+		$(if $(call gb_Library_is_udk_versioned,$(1)),-Wl$(COMMA)-h$(notdir $(1)).$(gb_UDK_MAJOR)) \
 		$(subst \d,$$,$(RPATH)) \
 		$(T_LDFLAGS) \
 		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
@@ -265,7 +266,13 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
 		$(patsubst %,-l%,$(EXTERNAL_LIBS)) \
 		$(LIBS) \
-		-o $(1))
+		-o $(if $(call gb_Library_is_udk_versioned,$(1)),$(1).$(gb_UDK_MAJOR),$(1)))
+endef
+
+define gb_LinkTarget__command_symlink_udk_versioned_library
+	$(if $(call gb_Library_is_udk_versioned,$(1)),
+		$(call gb_Helper_abbreviate_dirs,\
+			rm -f $(1) && ln -s $(notdir $(1)).$(gb_UDK_MAJOR) $(1)))
 endef
 
 define gb_LinkTarget__command_staticlink
@@ -281,6 +288,7 @@ endef
 define gb_LinkTarget__command
 $(call gb_Output_announce,$(2),$(true),LNK,4)
 $(if $(filter Library GoogleTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1)))
+$(if $(filter Library,$(TARGETTYPE)),$(call gb_LinkTarget__command_symlink_udk_versioned_library,$(1)))
 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1)))
 endef
 
@@ -352,6 +360,12 @@ endef
 define gb_Library_Library_platform
 $(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
 
+ifneq (,$(call gb_Library_is_udk_versioned,$(call gb_Library_get_target,$(1))))
+$(call gb_Library_get_target,$(1)) \
+$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS +=  \
+	$(call gb_Library_get_target,$(1)).$(gb_UDK_MAJOR)
+
+endif
 endef
 
 

Modified: openoffice/trunk/main/solenv/gbuild/platform/linux.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/gbuild/platform/linux.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/gbuild/platform/linux.mk (original)
+++ openoffice/trunk/main/solenv/gbuild/platform/linux.mk Thu Mar 22 05:29:37 2018
@@ -245,6 +245,7 @@ $(call gb_Helper_abbreviate_dirs,\
 	$(gb_CXX) \
 		$(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
 		$(if $(VERSIONMAP),$(gb_Library_VERSIONMAPFLAG) $(VERSIONMAP)) \
+		$(if $(call gb_Library_is_udk_versioned,$(1)),-Wl$(COMMA)-h$(notdir $(1)).$(gb_UDK_MAJOR)) \
 		$(subst \d,$$,$(RPATH)) \
 		$(T_LDFLAGS) \
 		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
@@ -255,7 +256,13 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(patsubst %,-l%,$(EXTERNAL_LIBS)) \
 		$(LIBS) \
 		-lc \
-		-o $(1))
+		-o $(if $(call gb_Library_is_udk_versioned,$(1)),$(1).$(gb_UDK_MAJOR),$(1)))
+endef
+
+define gb_LinkTarget__command_symlink_udk_versioned_library
+	$(if $(call gb_Library_is_udk_versioned,$(1)),
+		$(call gb_Helper_abbreviate_dirs,\
+			rm -f $(1) && ln -s $(notdir $(1)).$(gb_UDK_MAJOR) $(1)))
 endef
 
 define gb_LinkTarget__command_staticlink
@@ -271,6 +278,7 @@ endef
 define gb_LinkTarget__command
 $(call gb_Output_announce,$(2),$(true),LNK,4)
 $(if $(filter Library GoogleTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1)))
+$(if $(filter Library,$(TARGETTYPE)),$(call gb_LinkTarget__command_symlink_udk_versioned_library,$(1)))
 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1)))
 endef
 
@@ -342,6 +350,11 @@ endef
 define gb_Library_Library_platform
 $(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
 
+ifneq (,$(call gb_Library_is_udk_versioned,$(call gb_Library_get_target,$(1))))
+$(call gb_Library_get_target,$(1)) \
+$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS +=  \
+	$(call gb_Library_get_target,$(1)).$(gb_UDK_MAJOR)
+endif
 endef
 
 

Modified: openoffice/trunk/main/solenv/gbuild/platform/solaris.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/gbuild/platform/solaris.mk?rev=1827456&r1=1827455&r2=1827456&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/gbuild/platform/solaris.mk (original)
+++ openoffice/trunk/main/solenv/gbuild/platform/solaris.mk Thu Mar 22 05:29:37 2018
@@ -211,6 +211,7 @@ $(call gb_Helper_abbreviate_dirs,\
 	$(gb_CXX) \
 		$(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
 		$(if $(VERSIONMAP),$(gb_Library_VERSIONMAPFLAG) $(VERSIONMAP)) \
+		$(if $(call gb_Library_is_udk_versioned,$(1)),-Wl$(COMMA)-h$(notdir $(1)).$(gb_UDK_MAJOR)) \
 		$(subst \d,$$,$(RPATH)) \
 		$(T_LDFLAGS) \
 		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
@@ -220,7 +221,13 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
 		$(patsubst %,-l%,$(EXTERNAL_LIBS)) \
 		$(LIBS) \
-		-o $(1))
+		-o $(if $(call gb_Library_is_udk_versioned,$(1)),$(1).$(gb_UDK_MAJOR),$(1)))
+endef
+
+define gb_LinkTarget__command_symlink_udk_versioned_library
+	$(if $(call gb_Library_is_udk_versioned,$(1)),
+		$(call gb_Helper_abbreviate_dirs,\
+			rm -f $(1) && ln -s $(notdir $(1)).$(gb_UDK_MAJOR) $(1)))
 endef
 
 define gb_LinkTarget__command_staticlink
@@ -236,6 +243,7 @@ endef
 define gb_LinkTarget__command
 $(call gb_Output_announce,$(2),$(true),LNK,4)
 $(if $(filter Library GoogleTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1)))
+$(if $(filter Library,$(TARGETTYPE)),$(call gb_LinkTarget__command_symlink_udk_versioned_library,$(1)))
 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1)))
 endef
 
@@ -310,6 +318,11 @@ endef
 define gb_Library_Library_platform
 $(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
 
+ifneq (,$(call gb_Library_is_udk_versioned,$(call gb_Library_get_target,$(1))))
+$(call gb_Library_get_target,$(1)) \
+$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS +=  \
+	$(call gb_Library_get_target,$(1)).$(gb_UDK_MAJOR)
+endif
 endef
 
 



Mime
View raw message