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