1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,cppuhelper))
25
26$(eval $(call gb_Library_add_package_headers,cppuhelper,cppuhelper_inc))
27
28$(eval $(call gb_Library_add_precompiled_header,cppuhelper,$(SRCDIR)/formula/inc/pch/precompiled_cppuhelper))
29
30ifeq ($(COMNAME),msci)
31else ifeq ($(COMNAME),mscx)
32else ifeq ($(COMNAME),sunpro5)
33$(eval $(call gb_Library_set_versionmap,cppuhelper,$(SRCDIR)/cppuhelper/source/cc5_solaris_sparc.map))
34else ifeq ($(GUI)$(COMNAME),OS2gcc3)
35$(eval $(call gb_Library_set_versionmap,cppuhelper,$(SRCDIR)/cppuhelper/source/gcc3os2.map))
36else
37ifneq ($(OS),MACOSX)
38$(eval $(call gb_Library_set_versionmap,cppuhelper,$(SRCDIR)/cppuhelper/source/gcc3.map))
39endif
40endif
41
42
43$(eval $(call gb_Library_set_include,cppuhelper,\
44	$$(INCLUDE) \
45	-I$(SRCDIR)/cppuhelper/inc \
46	-I$(SRCDIR)/cppuhelper/inc/pch \
47	-I$(OUTDIR)/inc \
48))
49
50$(eval $(call gb_Library_set_private_api,cppuhelper,$(OUTDIR)/bin/types.rdb,\
51	$(SRCDIR)/cppuhelper/unotypes/cppuhelper/detail/XExceptionThrower.idl,\
52	cppuhelper.detail.XExceptionThrower \
53))
54
55$(eval $(call gb_Library_set_private_extract_of_public_api,cppuhelper,$(OUTDIR)/bin/udkapi.rdb,\
56                com.sun.star.beans.PropertyAttribute \
57                com.sun.star.beans.PropertyValue \
58                com.sun.star.beans.XFastPropertySet \
59                com.sun.star.beans.XMultiPropertySet \
60                com.sun.star.beans.XPropertyAccess \
61                com.sun.star.beans.XPropertySet \
62                com.sun.star.bridge.UnoUrlResolver \
63                com.sun.star.bridge.XUnoUrlResolver \
64                com.sun.star.connection.SocketPermission \
65                com.sun.star.container.XContentEnumerationAccess \
66                com.sun.star.container.XElementAccess \
67                com.sun.star.container.XEnumerationAccess \
68                com.sun.star.container.XHierarchicalNameAccess \
69                com.sun.star.container.XNameAccess \
70                com.sun.star.container.XNameReplace \
71                com.sun.star.container.XNameContainer \
72                com.sun.star.container.XSet \
73                com.sun.star.io.FilePermission \
74                com.sun.star.io.IOException \
75                com.sun.star.lang.DisposedException \
76                com.sun.star.lang.WrappedTargetRuntimeException \
77                com.sun.star.lang.XComponent \
78                com.sun.star.lang.XEventListener \
79                com.sun.star.lang.XInitialization \
80                com.sun.star.lang.XMultiComponentFactory \
81                com.sun.star.lang.XMultiServiceFactory \
82                com.sun.star.lang.XServiceInfo \
83                com.sun.star.lang.XSingleComponentFactory \
84                com.sun.star.lang.XSingleServiceFactory \
85                com.sun.star.lang.XUnoTunnel \
86                com.sun.star.lang.XTypeProvider \
87                com.sun.star.loader.XImplementationLoader \
88                com.sun.star.reflection.XArrayTypeDescription \
89                com.sun.star.reflection.XCompoundTypeDescription \
90                com.sun.star.reflection.XEnumTypeDescription \
91                com.sun.star.reflection.XIdlClass \
92                com.sun.star.reflection.XIdlClassProvider \
93                com.sun.star.reflection.XIdlField2 \
94                com.sun.star.reflection.XIdlReflection \
95                com.sun.star.reflection.XIndirectTypeDescription \
96                com.sun.star.reflection.XInterfaceAttributeTypeDescription \
97                com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
98                com.sun.star.reflection.XInterfaceMemberTypeDescription \
99                com.sun.star.reflection.XInterfaceMethodTypeDescription \
100                com.sun.star.reflection.XInterfaceTypeDescription2 \
101                com.sun.star.reflection.XMethodParameter \
102                com.sun.star.reflection.XStructTypeDescription \
103                com.sun.star.reflection.XTypeDescription \
104                com.sun.star.reflection.XUnionTypeDescription \
105                com.sun.star.registry.XImplementationRegistration \
106                com.sun.star.registry.XRegistryKey \
107                com.sun.star.registry.XSimpleRegistry \
108                com.sun.star.security.RuntimePermission \
109                com.sun.star.security.XAccessController \
110                com.sun.star.uno.DeploymentException \
111                com.sun.star.uno.RuntimeException \
112                com.sun.star.uno.XAggregation \
113                com.sun.star.uno.XComponentContext \
114                com.sun.star.uno.XCurrentContext \
115                com.sun.star.uno.XUnloadingPreference \
116                com.sun.star.uno.XWeak \
117                com.sun.star.util.XMacroExpander \
118))
119
120$(eval $(call gb_Library_add_defs,cppuhelper,\
121	-DCPPUHELPER_DLLIMPLEMENTATION \
122))
123
124$(eval $(call gb_Library_add_linked_libs,cppuhelper,\
125	cppu \
126	sal \
127	salhelper \
128	stl \
129	$(gb_STDLIBS) \
130))
131
132ifeq ($(GUI),WNT)
133$(eval $(call gb_Library_add_linked_libs,cppuhelper,\
134        advapi32 \
135))
136endif
137
138$(eval $(call gb_Library_add_cobjects,cppuhelper,\
139	cppuhelper/source/findsofficepath \
140))
141
142$(eval $(call gb_Library_add_exception_objects,cppuhelper,\
143	cppuhelper/source/access_control \
144	cppuhelper/source/bootstrap \
145	cppuhelper/source/component \
146	cppuhelper/source/component_context \
147	cppuhelper/source/exc_thrower \
148	cppuhelper/source/factory \
149	cppuhelper/source/implbase \
150	cppuhelper/source/implbase_ex \
151	cppuhelper/source/implementationentry \
152	cppuhelper/source/interfacecontainer \
153	cppuhelper/source/macro_expander \
154	cppuhelper/source/primeweak \
155	cppuhelper/source/propertysetmixin \
156	cppuhelper/source/propshlp \
157	cppuhelper/source/servicefactory \
158	cppuhelper/source/stdidlclass \
159	cppuhelper/source/shlib \
160	cppuhelper/source/tdmgr \
161	cppuhelper/source/typeprovider \
162	cppuhelper/source/unourl \
163	cppuhelper/source/weak \
164))
165
166# vim: set noet sw=4 ts=4:
167
168