xref: /AOO41X/main/cppuhelper/source/makefile.mk (revision 52046e16fbd66e053cdaf3867a5be8caf64d5643)
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.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.IF "$(debug)" != ""
118# msvc++: no inlining for debugging
119.IF "$(COM)" == "MSC"
120CFLAGS += -Ob0
121.ENDIF
122.ENDIF
123
124SLOFILES= \
125        $(SLO)$/typeprovider.obj    \
126        $(SLO)$/exc_thrower.obj     \
127        $(SLO)$/servicefactory.obj  \
128        $(SLO)$/bootstrap.obj       \
129        $(SLO)$/primeweak.obj       \
130        $(SLO)$/implbase.obj        \
131        $(SLO)$/implbase_ex.obj     \
132        $(SLO)$/propshlp.obj        \
133        $(SLO)$/weak.obj        \
134        $(SLO)$/interfacecontainer.obj  \
135        $(SLO)$/stdidlclass.obj     \
136        $(SLO)$/factory.obj     \
137        $(SLO)$/component_context.obj   \
138        $(SLO)$/component.obj       \
139        $(SLO)$/shlib.obj       \
140        $(SLO)$/tdmgr.obj       \
141        $(SLO)$/implementationentry.obj \
142        $(SLO)$/access_control.obj  \
143        $(SLO)$/macro_expander.obj \
144            $(SLO)$/unourl.obj \
145        $(SLO)$/propertysetmixin.obj \
146        $(SLO)$/findsofficepath.obj
147
148OBJFILES = $(OBJ)$/findsofficepath.obj
149
150.IF "$(GUI)" == "WNT"
151SHL1TARGET=$(TARGET)$(UDK_MAJOR)$(COMID)
152.ELIF "$(GUI)" == "OS2"
153SHL1TARGET=cppuh$(UDK_MAJOR)
154.ELSE
155SHL1TARGET=uno_$(TARGET)$(COMID)
156.ENDIF
157
158SHL1STDLIBS= \
159        $(SALLIB)       \
160        $(SALHELPERLIB) \
161        $(CPPULIB)
162.IF "$(OS)" == "WNT"
163SHL1STDLIBS += $(ADVAPI32LIB)
164.ENDIF
165
166SHL1DEPN=
167SHL1IMPLIB=i$(TARGET)
168SHL1OBJS = $(SLOFILES)
169SHL1RPATH=URELIB
170
171SHL1DEF=$(MISC)$/$(SHL1TARGET).def
172
173DEF1NAME=$(SHL1TARGET)
174
175.IF "$(COMNAME)"=="msci"
176SHL1VERSIONMAP=msvc_win32_intel.map
177.ELIF "$(COMNAME)"=="sunpro5"
178SHL1VERSIONMAP=cc5_solaris_sparc.map
179.ELIF "$(GUI)$(COMNAME)"=="OS2gcc3"
180SHL1VERSIONMAP=gcc3os2.map
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