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