xref: /AOO41X/main/cppuhelper/source/makefile.mk (revision 8809db7a87f97847b57a57f4cd2b0104b2b83182)
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.XNameContainer \
68        com.sun.star.container.XSet \
69        com.sun.star.io.FilePermission \
70        com.sun.star.io.IOException \
71        com.sun.star.lang.DisposedException \
72        com.sun.star.lang.WrappedTargetRuntimeException \
73        com.sun.star.lang.XComponent \
74        com.sun.star.lang.XEventListener \
75        com.sun.star.lang.XInitialization \
76        com.sun.star.lang.XMultiComponentFactory \
77        com.sun.star.lang.XMultiServiceFactory \
78        com.sun.star.lang.XServiceInfo \
79        com.sun.star.lang.XSingleComponentFactory \
80        com.sun.star.lang.XSingleServiceFactory \
81        com.sun.star.lang.XTypeProvider \
82        com.sun.star.loader.XImplementationLoader \
83        com.sun.star.reflection.XArrayTypeDescription \
84        com.sun.star.reflection.XCompoundTypeDescription \
85        com.sun.star.reflection.XEnumTypeDescription \
86        com.sun.star.reflection.XIdlClass \
87        com.sun.star.reflection.XIdlClassProvider \
88        com.sun.star.reflection.XIdlField2 \
89        com.sun.star.reflection.XIdlReflection \
90        com.sun.star.reflection.XIndirectTypeDescription \
91        com.sun.star.reflection.XInterfaceAttributeTypeDescription \
92        com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
93        com.sun.star.reflection.XInterfaceMemberTypeDescription \
94        com.sun.star.reflection.XInterfaceMethodTypeDescription \
95        com.sun.star.reflection.XInterfaceTypeDescription2 \
96        com.sun.star.reflection.XMethodParameter \
97        com.sun.star.reflection.XStructTypeDescription \
98        com.sun.star.reflection.XTypeDescription \
99        com.sun.star.reflection.XUnionTypeDescription \
100        com.sun.star.registry.XImplementationRegistration \
101        com.sun.star.registry.XRegistryKey \
102        com.sun.star.registry.XSimpleRegistry \
103        com.sun.star.security.RuntimePermission \
104        com.sun.star.security.XAccessController \
105        com.sun.star.uno.DeploymentException \
106        com.sun.star.uno.RuntimeException \
107        com.sun.star.uno.XAggregation \
108        com.sun.star.uno.XComponentContext \
109        com.sun.star.uno.XCurrentContext \
110        com.sun.star.uno.XUnloadingPreference \
111        com.sun.star.uno.XWeak \
112        com.sun.star.util.XMacroExpander
113
114.IF "$(debug)" != ""
115# msvc++: no inlining for debugging
116.IF "$(COM)" == "MSC"
117CFLAGS += -Ob0
118.ENDIF
119.ENDIF
120
121SLOFILES= \
122        $(SLO)$/typeprovider.obj    \
123        $(SLO)$/exc_thrower.obj     \
124        $(SLO)$/servicefactory.obj  \
125        $(SLO)$/bootstrap.obj       \
126        $(SLO)$/implbase.obj        \
127        $(SLO)$/implbase_ex.obj     \
128        $(SLO)$/propshlp.obj        \
129        $(SLO)$/weak.obj        \
130        $(SLO)$/interfacecontainer.obj  \
131        $(SLO)$/stdidlclass.obj     \
132        $(SLO)$/factory.obj     \
133        $(SLO)$/component_context.obj   \
134        $(SLO)$/component.obj       \
135        $(SLO)$/shlib.obj       \
136        $(SLO)$/tdmgr.obj       \
137        $(SLO)$/implementationentry.obj \
138        $(SLO)$/access_control.obj  \
139        $(SLO)$/macro_expander.obj \
140            $(SLO)$/unourl.obj \
141        $(SLO)$/propertysetmixin.obj \
142        $(SLO)$/findsofficepath.obj
143
144OBJFILES = $(OBJ)$/findsofficepath.obj
145
146.IF "$(GUI)" == "WNT"
147SHL1TARGET=$(TARGET)$(UDK_MAJOR)$(COMID)
148.ELIF "$(GUI)" == "OS2"
149SHL1TARGET=cppuh
150SHL1TARGET=cppuh$(UDK_MAJOR)
151.ELSE
152SHL1TARGET=uno_$(TARGET)$(COMID)
153.ENDIF
154
155SHL1STDLIBS= \
156        $(SALLIB)       \
157        $(SALHELPERLIB) \
158        $(CPPULIB)
159.IF "$(OS)" == "WNT"
160SHL1STDLIBS += $(ADVAPI32LIB)
161.ENDIF
162
163SHL1DEPN=
164SHL1IMPLIB=i$(TARGET)
165SHL1OBJS = $(SLOFILES)
166SHL1RPATH=URELIB
167
168SHL1DEF=$(MISC)$/$(SHL1TARGET).def
169
170DEF1NAME=$(SHL1TARGET)
171
172.IF "$(COMNAME)"=="msci"
173SHL1VERSIONMAP=msvc_win32_intel.map
174.ELIF "$(COMNAME)"=="sunpro5"
175SHL1VERSIONMAP=cc5_solaris_sparc.map
176.ELIF "$(GUI)$(COMNAME)"=="OS2gcc3"
177SHL1VERSIONMAP=gcc3os2.map
178.ELIF "$(COMNAME)"=="gcc3"
179SHL1VERSIONMAP=gcc3.map
180.ENDIF
181
182# --- Targets ------------------------------------------------------
183
184.IF "$(diag)"!=""
185CFLAGS += -DDIAG=$(diag)
186.ENDIF
187
188.INCLUDE :  target.mk
189