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 23PRJ=.. 24 25PRJNAME=cppuhelper 26TARGET=cppuhelper 27 28ENABLE_EXCEPTIONS=TRUE 29USE_DEFFILE=TRUE 30 31# not strictly a bootstrap service but containing 32# bootstrap code that may require generated files 33# without "-L" (light) switch 34BOOTSTRAP_SERVICE=TRUE 35 36.IF "$(OS)" != "WNT" && "$(GUI)"!="OS2" 37UNIXVERSIONNAMES=UDK 38.ENDIF # WNT 39 40# --- Settings ----------------------------------------------------- 41 42.INCLUDE : settings.mk 43 44# --- Files -------------------------------------------------------- 45 46UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb 47UNOUCRDEP=$(UNOUCRRDB) 48UNOUCROUT=$(OUT)$/inc$/$(TARGET) 49INCPRE+=$(OUT)$/inc$/$(TARGET) $(OUT)$/inc$/private 50 51CPPUMAKERFLAGS= -C 52 53UNOTYPES= \ 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.XElementAccess \ 64 com.sun.star.container.XEnumerationAccess \ 65 com.sun.star.container.XHierarchicalNameAccess \ 66 com.sun.star.container.XNameAccess \ 67 com.sun.star.container.XNameReplace \ 68 com.sun.star.container.XNameContainer \ 69 com.sun.star.container.XSet \ 70 com.sun.star.io.FilePermission \ 71 com.sun.star.io.IOException \ 72 com.sun.star.lang.DisposedException \ 73 com.sun.star.lang.WrappedTargetRuntimeException \ 74 com.sun.star.lang.XComponent \ 75 com.sun.star.lang.XEventListener \ 76 com.sun.star.lang.XInitialization \ 77 com.sun.star.lang.XMultiComponentFactory \ 78 com.sun.star.lang.XMultiServiceFactory \ 79 com.sun.star.lang.XServiceInfo \ 80 com.sun.star.lang.XSingleComponentFactory \ 81 com.sun.star.lang.XSingleServiceFactory \ 82 com.sun.star.lang.XUnoTunnel \ 83 com.sun.star.lang.XTypeProvider \ 84 com.sun.star.loader.XImplementationLoader \ 85 com.sun.star.reflection.XArrayTypeDescription \ 86 com.sun.star.reflection.XCompoundTypeDescription \ 87 com.sun.star.reflection.XEnumTypeDescription \ 88 com.sun.star.reflection.XIdlClass \ 89 com.sun.star.reflection.XIdlClassProvider \ 90 com.sun.star.reflection.XIdlField2 \ 91 com.sun.star.reflection.XIdlReflection \ 92 com.sun.star.reflection.XIndirectTypeDescription \ 93 com.sun.star.reflection.XInterfaceAttributeTypeDescription \ 94 com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \ 95 com.sun.star.reflection.XInterfaceMemberTypeDescription \ 96 com.sun.star.reflection.XInterfaceMethodTypeDescription \ 97 com.sun.star.reflection.XInterfaceTypeDescription2 \ 98 com.sun.star.reflection.XMethodParameter \ 99 com.sun.star.reflection.XStructTypeDescription \ 100 com.sun.star.reflection.XTypeDescription \ 101 com.sun.star.reflection.XUnionTypeDescription \ 102 com.sun.star.registry.XImplementationRegistration \ 103 com.sun.star.registry.XRegistryKey \ 104 com.sun.star.registry.XSimpleRegistry \ 105 com.sun.star.security.RuntimePermission \ 106 com.sun.star.security.XAccessController \ 107 com.sun.star.uno.DeploymentException \ 108 com.sun.star.uno.RuntimeException \ 109 com.sun.star.uno.XAggregation \ 110 com.sun.star.uno.XComponentContext \ 111 com.sun.star.uno.XCurrentContext \ 112 com.sun.star.uno.XUnloadingPreference \ 113 com.sun.star.uno.XWeak \ 114 com.sun.star.util.XMacroExpander 115 116.IF "$(debug)" != "" 117# msvc++: no inlining for debugging 118.IF "$(COM)" == "MSC" 119CFLAGS += -Ob0 120.ENDIF 121.ENDIF 122 123SLOFILES= \ 124 $(SLO)$/typeprovider.obj \ 125 $(SLO)$/exc_thrower.obj \ 126 $(SLO)$/servicefactory.obj \ 127 $(SLO)$/bootstrap.obj \ 128 $(SLO)$/primeweak.obj \ 129 $(SLO)$/implbase.obj \ 130 $(SLO)$/implbase_ex.obj \ 131 $(SLO)$/propshlp.obj \ 132 $(SLO)$/weak.obj \ 133 $(SLO)$/interfacecontainer.obj \ 134 $(SLO)$/stdidlclass.obj \ 135 $(SLO)$/factory.obj \ 136 $(SLO)$/component_context.obj \ 137 $(SLO)$/component.obj \ 138 $(SLO)$/shlib.obj \ 139 $(SLO)$/tdmgr.obj \ 140 $(SLO)$/implementationentry.obj \ 141 $(SLO)$/access_control.obj \ 142 $(SLO)$/macro_expander.obj \ 143 $(SLO)$/unourl.obj \ 144 $(SLO)$/propertysetmixin.obj \ 145 $(SLO)$/findsofficepath.obj 146 147OBJFILES = $(OBJ)$/findsofficepath.obj 148 149.IF "$(GUI)" == "WNT" 150SHL1TARGET=$(TARGET)$(UDK_MAJOR)$(COMID) 151.ELIF "$(GUI)" == "OS2" 152SHL1TARGET=cppuh$(UDK_MAJOR) 153.ELSE 154SHL1TARGET=uno_$(TARGET)$(COMID) 155.ENDIF 156 157SHL1STDLIBS= \ 158 $(SALLIB) \ 159 $(SALHELPERLIB) \ 160 $(CPPULIB) 161.IF "$(OS)" == "WNT" 162SHL1STDLIBS += $(ADVAPI32LIB) 163.ENDIF 164 165SHL1DEPN= 166SHL1IMPLIB=i$(TARGET) 167SHL1OBJS = $(SLOFILES) 168SHL1RPATH=URELIB 169 170SHL1DEF=$(MISC)$/$(SHL1TARGET).def 171 172DEF1NAME=$(SHL1TARGET) 173 174.IF "$(COMNAME)"=="msci" 175SHL1VERSIONMAP=msvc_win32_intel.map 176.ELIF "$(COMNAME)"=="sunpro5" 177SHL1VERSIONMAP=cc5_solaris_sparc.map 178.ELIF "$(GUI)$(COMNAME)"=="OS2gcc3" 179SHL1VERSIONMAP=gcc3os2.map 180#.ELIF "$(COMNAME)"=="gcc3" || "$(COMNAME)"=="Clang" 181.ELSE 182SHL1VERSIONMAP=gcc3.map 183.ENDIF 184 185# --- Targets ------------------------------------------------------ 186 187.IF "$(diag)"!="" 188CFLAGS += -DDIAG=$(diag) 189.ENDIF 190 191.INCLUDE : target.mk 192