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 37$(eval $(call gb_Library_set_versionmap,cppuhelper,$(SRCDIR)/cppuhelper/source/gcc3.map)) 38endif 39 40 41$(eval $(call gb_Library_set_include,cppuhelper,\ 42 $$(INCLUDE) \ 43 -I$(SRCDIR)/cppuhelper/inc \ 44 -I$(SRCDIR)/cppuhelper/inc/pch \ 45 -I$(OUTDIR)/inc \ 46)) 47 48$(eval $(call gb_Library_set_private_api,cppuhelper,$(OUTDIR)/bin/types.rdb,\ 49 $(SRCDIR)/cppuhelper/unotypes/cppuhelper/detail/XExceptionThrower.idl,\ 50 cppuhelper.detail.XExceptionThrower \ 51)) 52 53$(eval $(call gb_Library_set_private_extract_of_public_api,cppuhelper,$(OUTDIR)/bin/udkapi.rdb,\ 54 com.sun.star.beans.PropertyAttribute \ 55 com.sun.star.beans.PropertyValue \ 56 com.sun.star.beans.XFastPropertySet \ 57 com.sun.star.beans.XMultiPropertySet \ 58 com.sun.star.beans.XPropertyAccess \ 59 com.sun.star.beans.XPropertySet \ 60 com.sun.star.bridge.UnoUrlResolver \ 61 com.sun.star.bridge.XUnoUrlResolver \ 62 com.sun.star.connection.SocketPermission \ 63 com.sun.star.container.XContentEnumerationAccess \ 64 com.sun.star.container.XElementAccess \ 65 com.sun.star.container.XEnumerationAccess \ 66 com.sun.star.container.XHierarchicalNameAccess \ 67 com.sun.star.container.XNameAccess \ 68 com.sun.star.container.XNameReplace \ 69 com.sun.star.container.XNameContainer \ 70 com.sun.star.container.XSet \ 71 com.sun.star.io.FilePermission \ 72 com.sun.star.io.IOException \ 73 com.sun.star.lang.DisposedException \ 74 com.sun.star.lang.WrappedTargetRuntimeException \ 75 com.sun.star.lang.XComponent \ 76 com.sun.star.lang.XEventListener \ 77 com.sun.star.lang.XInitialization \ 78 com.sun.star.lang.XMultiComponentFactory \ 79 com.sun.star.lang.XMultiServiceFactory \ 80 com.sun.star.lang.XServiceInfo \ 81 com.sun.star.lang.XSingleComponentFactory \ 82 com.sun.star.lang.XSingleServiceFactory \ 83 com.sun.star.lang.XUnoTunnel \ 84 com.sun.star.lang.XTypeProvider \ 85 com.sun.star.loader.XImplementationLoader \ 86 com.sun.star.reflection.XArrayTypeDescription \ 87 com.sun.star.reflection.XCompoundTypeDescription \ 88 com.sun.star.reflection.XEnumTypeDescription \ 89 com.sun.star.reflection.XIdlClass \ 90 com.sun.star.reflection.XIdlClassProvider \ 91 com.sun.star.reflection.XIdlField2 \ 92 com.sun.star.reflection.XIdlReflection \ 93 com.sun.star.reflection.XIndirectTypeDescription \ 94 com.sun.star.reflection.XInterfaceAttributeTypeDescription \ 95 com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \ 96 com.sun.star.reflection.XInterfaceMemberTypeDescription \ 97 com.sun.star.reflection.XInterfaceMethodTypeDescription \ 98 com.sun.star.reflection.XInterfaceTypeDescription2 \ 99 com.sun.star.reflection.XMethodParameter \ 100 com.sun.star.reflection.XStructTypeDescription \ 101 com.sun.star.reflection.XTypeDescription \ 102 com.sun.star.reflection.XUnionTypeDescription \ 103 com.sun.star.registry.XImplementationRegistration \ 104 com.sun.star.registry.XRegistryKey \ 105 com.sun.star.registry.XSimpleRegistry \ 106 com.sun.star.security.RuntimePermission \ 107 com.sun.star.security.XAccessController \ 108 com.sun.star.uno.DeploymentException \ 109 com.sun.star.uno.RuntimeException \ 110 com.sun.star.uno.XAggregation \ 111 com.sun.star.uno.XComponentContext \ 112 com.sun.star.uno.XCurrentContext \ 113 com.sun.star.uno.XUnloadingPreference \ 114 com.sun.star.uno.XWeak \ 115 com.sun.star.util.XMacroExpander \ 116)) 117 118$(eval $(call gb_Library_add_defs,cppuhelper,\ 119 -DCPPUHELPER_DLLIMPLEMENTATION \ 120)) 121 122$(eval $(call gb_Library_add_linked_libs,cppuhelper,\ 123 cppu \ 124 sal \ 125 salhelper \ 126 stl \ 127 $(gb_STDLIBS) \ 128)) 129 130ifeq ($(GUI),WNT) 131$(eval $(call gb_Library_add_linked_libs,cppuhelper,\ 132 advapi32 \ 133)) 134endif 135 136$(eval $(call gb_Library_add_cobjects,cppuhelper,\ 137 cppuhelper/source/findsofficepath \ 138)) 139 140$(eval $(call gb_Library_add_exception_objects,cppuhelper,\ 141 cppuhelper/source/access_control \ 142 cppuhelper/source/bootstrap \ 143 cppuhelper/source/component \ 144 cppuhelper/source/component_context \ 145 cppuhelper/source/exc_thrower \ 146 cppuhelper/source/factory \ 147 cppuhelper/source/implbase \ 148 cppuhelper/source/implbase_ex \ 149 cppuhelper/source/implementationentry \ 150 cppuhelper/source/interfacecontainer \ 151 cppuhelper/source/macro_expander \ 152 cppuhelper/source/primeweak \ 153 cppuhelper/source/propertysetmixin \ 154 cppuhelper/source/propshlp \ 155 cppuhelper/source/servicefactory \ 156 cppuhelper/source/stdidlclass \ 157 cppuhelper/source/shlib \ 158 cppuhelper/source/tdmgr \ 159 cppuhelper/source/typeprovider \ 160 cppuhelper/source/unourl \ 161 cppuhelper/source/weak \ 162)) 163 164# vim: set noet sw=4 ts=4: 165 166