update dev300-m58
[ooovba.git] / stoc / test / makefile.mk
blob419b4c82114338b44d1e50be2f45ecf28ed5d809
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.29.6.2 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
31 PRJ=..
33 PRJNAME=stoc
34 TARGET=stoc
35 TARGET1=testloader
36 TARGET2=testregistry
37 TARGET3=testsmgr
38 TARGET4=testcorefl
39 TARGET5=testinvocation
40 TARGET6=testintrosp
41 TARGET7=testconv
42 TARGET8=testproxyfac
43 TARGET9=testsmgr2
44 TARGETTYPE=CUI
45 #LIBTARGET=NO
46 ENABLE_EXCEPTIONS=TRUE
47 NO_BSYMBOLIC=TRUE
49 # --- Settings -----------------------------------------------------
51 .INCLUDE : settings.mk
53 # --- smgr component -----------------------------------------------
54 SHL1OBJS= \
55 $(OBJ)$/testsmgr_cpnt.obj
57 SHL1STDLIBS= \
58 $(CPPULIB) \
59 $(CPPUHELPERLIB) \
60 $(SALHELPERLIB) \
61 $(SALLIB)
63 SHL1TARGET=testsmgr_component
64 SHL1DEPN=
65 SHL1IMPLIB=i$(SHL1TARGET)
66 #SHL1LIBS=$(SLB)$/$(SHL1TARGET).lib
67 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
68 DEF1NAME=$(SHL1TARGET)
69 SHL1VERSIONMAP=testsmgr_cpnt.map
71 # --- Application 1 ------------------------------------------------
72 APP1TARGET= $(TARGET1)
73 APP1OBJS= $(OBJ)$/testloader.obj
75 APP1STDLIBS= \
76 $(CPPULIB) \
77 $(CPPUHELPERLIB) \
78 $(SALHELPERLIB) \
79 $(SALLIB)
81 # --- Application 2 ------------------------------------------------
82 APP2TARGET= $(TARGET2)
83 APP2OBJS= $(OBJ)$/testregistry.obj $(OBJ)$/mergekeys_.obj
85 APP2STDLIBS= \
86 $(CPPULIB) \
87 $(CPPUHELPERLIB) \
88 $(SALHELPERLIB) \
89 $(REGLIB) \
90 $(SALLIB)
92 # --- Application 3 - testsmgr main ------------------------------------
93 APP3TARGET= $(TARGET3)
94 APP3OBJS = $(OBJ)$/testsmgr.obj
95 APP3STDLIBS= \
96 $(CPPULIB) \
97 $(CPPUHELPERLIB) \
98 $(SALHELPERLIB) \
99 $(REGLIB) \
100 $(SALLIB)
102 .IF "$(GUI)"=="UNX"
103 APP3STDLIBS+= -l$(SHL1TARGET)
104 .ENDIF
105 .IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
106 APP3STDLIBS+= i$(SHL1TARGET).lib
107 .ENDIF
109 # --- Application 4 - testcorefl main ------------------------------------
110 APP4TARGET= $(TARGET4)
111 APP4OBJS = $(OBJ)$/testcorefl.obj
112 APP4STDLIBS= \
113 $(CPPULIB) \
114 $(CPPUHELPERLIB) \
115 $(SALLIB)
117 # --- Application 5 - testinvocation main ------------------------------------
118 APP5TARGET= $(TARGET5)
119 APP5OBJS = $(OBJ)$/testiadapter.obj
120 APP5STDLIBS= \
121 $(CPPULIB) \
122 $(CPPUHELPERLIB) \
123 $(SALLIB)
125 # --- Application 6 - testitrosp main ------------------------------------
126 APP6TARGET= $(TARGET6)
127 APP6OBJS = $(OBJ)$/testintrosp.obj
128 APP6STDLIBS= \
129 $(CPPULIB) \
130 $(CPPUHELPERLIB) \
131 $(SALHELPERLIB) \
132 $(SALLIB)
134 # --- Application 7 - testconv main ------------------------------------
135 APP7TARGET= $(TARGET7)
136 APP7OBJS = $(OBJ)$/testconv.obj
137 APP7STDLIBS= \
138 $(CPPULIB) \
139 $(CPPUHELPERLIB) \
140 $(SALLIB)
142 # --- Application 8 - testproxyfac main ------------------------------------
143 APP8TARGET= $(TARGET8)
144 APP8OBJS = $(OBJ)$/testproxyfac.obj
145 APP8STDLIBS= \
146 $(CPPULIB) \
147 $(CPPUHELPERLIB) \
148 $(SALLIB)
150 # --- Application 9 - testproxyfac main ------------------------------------
151 APP9TARGET= $(TARGET9)
152 APP9OBJS = $(OBJ)$/testsmgr2.obj
153 APP9STDLIBS= \
154 $(CPPULIB) \
155 $(CPPUHELPERLIB) \
156 $(SALLIB)
159 ALLIDLFILES:= testcorefl.idl language_binding.idl testintrosp.idl
162 # --- Target ------------------------------------------------
164 .IF "$(depend)" == ""
165 ALL : $(MISC)$/test_types_generated.flag \
166 $(BIN)$/test1.rdb \
167 $(BIN)$/test2.rdb \
168 ALLTAR
169 .ELSE
170 ALL: ALLDEP
171 .ENDIF
173 .INCLUDE : target.mk
175 CPPUMAKERFLAGS =
176 .IF "$(COM)" == "MSC"
177 CPPUMAKERFLAGS = -L
178 .ENDIF
180 FACTORYTYPES:= -T com.sun.star.lang.XSingleComponentFactory \
181 -T com.sun.star.uno.XComponentContext \
182 -T com.sun.star.uno.XWeak \
183 -T com.sun.star.container.XEnumeration \
184 -T com.sun.star.lang.XComponent \
185 -T com.sun.star.registry.XSimpleRegistry \
186 -T com.sun.star.lang.XInitialization \
187 -T com.sun.star.lang.XMultiServiceFactory\
188 -T com.sun.star.loader.XImplementationLoader \
189 -T com.sun.star.registry.XImplementationRegistration \
190 -T com.sun.star.container.XSet \
191 -T com.sun.star.lang.XSingleServiceFactory\
192 -T com.sun.star.lang.XServiceInfo \
193 -T com.sun.star.container.XContentEnumerationAccess \
194 -T com.sun.star.container.XEnumeration
196 TESTCOREFL:=ModuleC;ModuleC.XInterfaceA;ModuleC.XInterfaceB;ModuleA.XInterface1;com.sun.star.reflection.XIdlReflection;com.sun.star.reflection.XIdlField;com.sun.star.reflection.XIdlArray;com.sun.star.reflection.XIdlMethod;com.sun.star.reflection.XIdlClass;com.sun.star.beans.XPropertySet;com.sun.star.lang.XComponent;com.sun.star.container.XHierarchicalNameAccess;com.sun.star.reflection.XIdlField2;com.sun.star.lang.DisposedException
197 TESTIADAPTER:=com.sun.star.beans.XIntrospection;com.sun.star.beans.MethodConcept;com.sun.star.beans.XExactName;com.sun.star.lang.XTypeProvider;com.sun.star.uno.XAggregation;com.sun.star.script.XInvocationAdapterFactory;com.sun.star.script.XInvocationAdapterFactory2;com.sun.star.script.XInvocation;com.sun.star.lang.XMultiServiceFactory;com.sun.star.registry.XSimpleRegistry;com.sun.star.lang.XInitialization;test.XLanguageBindingTest
198 TESTINTROSP:=ModuleA;ModuleA.XIntroTest;com.sun.star.beans.XPropertySet;com.sun.star.container.XIndexAccess;com.sun.star.container.XNameAccess;com.sun.star.beans.PropertyAttribute;com.sun.star.beans.PropertyConcept
199 TESTCONV:=com.sun.star.script.XTypeConverter
200 TESTPROXYFAC:=com.sun.star.reflection.XProxyFactory
201 TESTSECURITY:=com.sun.star.security.AllPermission;com.sun.star.security.XPolicy;com.sun.star.security.XAccessController;com.sun.star.io.FilePermission;com.sun.star.connection.SocketPermission;com.sun.star.uno.XCurrentContext
203 $(BIN)$/test1.rdb: $(SHL1TARGETN)
204 .IF "$(GUI)"=="UNX"
205 cp $(SHL1TARGETN) $(BIN)
206 .ENDIF
207 cd $(BIN) && regcomp -register -r test1.rdb -c $(SHL1TARGET)
209 $(BIN)$/test2.rdb:
210 cd $(BIN) && regcomp -register -r test2.rdb -c remotebridge.uno$(DLLPOST)
212 $(BIN)$/stoctest.rdb: $(ALLIDLFILES)
213 idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
214 regmerge $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
215 regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb
216 regcomp -register -r $@ -c reflection.uno$(DLLPOST)
217 touch $@
219 $(MISC)$/test_types_generated.flag : $(BIN)$/stoctest.rdb makefile.mk
220 -rm -f $(MISC)$/test_types_generated.flag
221 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) $(FACTORYTYPES) -T"$(TESTIADAPTER)" $(BIN)$/stoctest.rdb
222 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCOREFL)" $(BIN)$/stoctest.rdb
223 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTINTROSP)" $(BIN)$/stoctest.rdb
224 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCONV)" $(BIN)$/stoctest.rdb
225 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTPROXYFAC)" $(BIN)$/stoctest.rdb
226 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTSECURITY)" $(BIN)$/stoctest.rdb
227 touch $(MISC)$/test_types_generated.flag