xref: /aoo41x/main/stoc/test/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweirPRJ=..
24cdf0e10cSrcweir
25cdf0e10cSrcweirPRJNAME=stoc
26cdf0e10cSrcweirTARGET=stoc
27cdf0e10cSrcweirTARGET1=testloader
28cdf0e10cSrcweirTARGET2=testregistry
29cdf0e10cSrcweirTARGET3=testsmgr
30cdf0e10cSrcweirTARGET4=testcorefl
31cdf0e10cSrcweirTARGET5=testinvocation
32cdf0e10cSrcweirTARGET6=testintrosp
33cdf0e10cSrcweirTARGET7=testconv
34cdf0e10cSrcweirTARGET8=testproxyfac
35cdf0e10cSrcweirTARGET9=testsmgr2
36cdf0e10cSrcweirTARGETTYPE=CUI
37cdf0e10cSrcweir#LIBTARGET=NO
38cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
39cdf0e10cSrcweirNO_BSYMBOLIC=TRUE
40cdf0e10cSrcweir
41cdf0e10cSrcweir# --- Settings -----------------------------------------------------
42cdf0e10cSrcweir
43cdf0e10cSrcweir.INCLUDE :  settings.mk
44cdf0e10cSrcweir
45cdf0e10cSrcweir# --- smgr component -----------------------------------------------
46cdf0e10cSrcweirSHL1OBJS= \
47cdf0e10cSrcweir	$(OBJ)$/testsmgr_cpnt.obj
48cdf0e10cSrcweir
49cdf0e10cSrcweirSHL1STDLIBS= \
50cdf0e10cSrcweir	$(CPPULIB) \
51cdf0e10cSrcweir	$(CPPUHELPERLIB) \
52cdf0e10cSrcweir	$(SALHELPERLIB) \
53cdf0e10cSrcweir	$(SALLIB)
54cdf0e10cSrcweir
55cdf0e10cSrcweirSHL1TARGET=testsmgr_component
56cdf0e10cSrcweirSHL1DEPN=
57cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
58cdf0e10cSrcweir#SHL1LIBS=$(SLB)$/$(SHL1TARGET).lib
59cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
60cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
61cdf0e10cSrcweirSHL1VERSIONMAP=testsmgr_cpnt.map
62cdf0e10cSrcweir
63cdf0e10cSrcweir# --- Application 1 ------------------------------------------------
64cdf0e10cSrcweirAPP1TARGET= $(TARGET1)
65cdf0e10cSrcweirAPP1OBJS=   $(OBJ)$/testloader.obj
66cdf0e10cSrcweir
67cdf0e10cSrcweirAPP1STDLIBS= \
68cdf0e10cSrcweir		$(CPPULIB) 	\
69cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
70cdf0e10cSrcweir		$(SALHELPERLIB) 	\
71cdf0e10cSrcweir		$(SALLIB)
72cdf0e10cSrcweir
73cdf0e10cSrcweir# --- Application 2 ------------------------------------------------
74cdf0e10cSrcweirAPP2TARGET= $(TARGET2)
75cdf0e10cSrcweirAPP2OBJS=   $(OBJ)$/testregistry.obj $(OBJ)$/mergekeys_.obj
76cdf0e10cSrcweir
77cdf0e10cSrcweirAPP2STDLIBS= \
78cdf0e10cSrcweir		$(CPPULIB)	\
79cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
80cdf0e10cSrcweir		$(SALHELPERLIB) 	\
81cdf0e10cSrcweir		$(REGLIB) 	\
82cdf0e10cSrcweir		$(SALLIB)
83cdf0e10cSrcweir
84cdf0e10cSrcweir# --- Application 3 - testsmgr main ------------------------------------
85cdf0e10cSrcweirAPP3TARGET=	$(TARGET3)
86cdf0e10cSrcweirAPP3OBJS  =	$(OBJ)$/testsmgr.obj
87cdf0e10cSrcweirAPP3STDLIBS= \
88cdf0e10cSrcweir		$(CPPULIB)	\
89cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
90cdf0e10cSrcweir		$(SALHELPERLIB) 	\
91cdf0e10cSrcweir		$(REGLIB) 	\
92cdf0e10cSrcweir		$(SALLIB)
93cdf0e10cSrcweir
94cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
95cdf0e10cSrcweirAPP3STDLIBS+= -l$(SHL1TARGET)
96cdf0e10cSrcweir.ENDIF
97cdf0e10cSrcweir.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
98cdf0e10cSrcweirAPP3STDLIBS+= i$(SHL1TARGET).lib
99cdf0e10cSrcweir.ENDIF
100cdf0e10cSrcweir
101cdf0e10cSrcweir# --- Application 4 - testcorefl main ------------------------------------
102cdf0e10cSrcweirAPP4TARGET=	$(TARGET4)
103cdf0e10cSrcweirAPP4OBJS  = 	$(OBJ)$/testcorefl.obj
104cdf0e10cSrcweirAPP4STDLIBS= \
105cdf0e10cSrcweir		$(CPPULIB) 		\
106cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
107cdf0e10cSrcweir		$(SALLIB)
108cdf0e10cSrcweir
109cdf0e10cSrcweir# --- Application 5 - testinvocation main ------------------------------------
110cdf0e10cSrcweirAPP5TARGET= 	$(TARGET5)
111cdf0e10cSrcweirAPP5OBJS  = 	$(OBJ)$/testiadapter.obj
112cdf0e10cSrcweirAPP5STDLIBS= \
113cdf0e10cSrcweir		$(CPPULIB) 		\
114cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
115cdf0e10cSrcweir		$(SALLIB)
116cdf0e10cSrcweir
117cdf0e10cSrcweir# --- Application 6 - testitrosp main ------------------------------------
118cdf0e10cSrcweirAPP6TARGET= 	$(TARGET6)
119cdf0e10cSrcweirAPP6OBJS  = 	$(OBJ)$/testintrosp.obj
120cdf0e10cSrcweirAPP6STDLIBS= \
121cdf0e10cSrcweir		$(CPPULIB) 		\
122cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
123cdf0e10cSrcweir		$(SALHELPERLIB) 	\
124cdf0e10cSrcweir		$(SALLIB)
125cdf0e10cSrcweir
126cdf0e10cSrcweir# --- Application 7 - testconv main ------------------------------------
127cdf0e10cSrcweirAPP7TARGET= 	$(TARGET7)
128cdf0e10cSrcweirAPP7OBJS  = 	$(OBJ)$/testconv.obj
129cdf0e10cSrcweirAPP7STDLIBS= \
130cdf0e10cSrcweir		$(CPPULIB) 		\
131cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
132cdf0e10cSrcweir		$(SALLIB)
133cdf0e10cSrcweir
134cdf0e10cSrcweir# --- Application 8 - testproxyfac main ------------------------------------
135cdf0e10cSrcweirAPP8TARGET= 	$(TARGET8)
136cdf0e10cSrcweirAPP8OBJS  = 	$(OBJ)$/testproxyfac.obj
137cdf0e10cSrcweirAPP8STDLIBS= \
138cdf0e10cSrcweir		$(CPPULIB) 		\
139cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
140cdf0e10cSrcweir		$(SALLIB)
141cdf0e10cSrcweir
142cdf0e10cSrcweir# --- Application 9 - testproxyfac main ------------------------------------
143cdf0e10cSrcweirAPP9TARGET= 	$(TARGET9)
144cdf0e10cSrcweirAPP9OBJS  = 	$(OBJ)$/testsmgr2.obj
145cdf0e10cSrcweirAPP9STDLIBS= \
146cdf0e10cSrcweir		$(CPPULIB) 		\
147cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
148cdf0e10cSrcweir		$(SALLIB)
149cdf0e10cSrcweir
150cdf0e10cSrcweir
151cdf0e10cSrcweirALLIDLFILES:=	testcorefl.idl language_binding.idl testintrosp.idl
152cdf0e10cSrcweir
153cdf0e10cSrcweir
154cdf0e10cSrcweir# --- Target ------------------------------------------------
155cdf0e10cSrcweir
156cdf0e10cSrcweir.IF "$(depend)" == ""
157cdf0e10cSrcweirALL : 	$(MISC)$/test_types_generated.flag \
158cdf0e10cSrcweir	$(BIN)$/test1.rdb 		   \
159cdf0e10cSrcweir	$(BIN)$/test2.rdb		   \
160cdf0e10cSrcweir	ALLTAR
161cdf0e10cSrcweir.ELSE
162cdf0e10cSrcweirALL: 		ALLDEP
163cdf0e10cSrcweir.ENDIF
164cdf0e10cSrcweir
165cdf0e10cSrcweir.INCLUDE :	target.mk
166cdf0e10cSrcweir
167cdf0e10cSrcweirCPPUMAKERFLAGS =
168cdf0e10cSrcweir.IF "$(COM)" == "MSC"
169cdf0e10cSrcweirCPPUMAKERFLAGS = -L
170cdf0e10cSrcweir.ENDIF
171cdf0e10cSrcweir
172cdf0e10cSrcweirFACTORYTYPES:= 	-T com.sun.star.lang.XSingleComponentFactory \
173cdf0e10cSrcweir		-T com.sun.star.uno.XComponentContext \
174cdf0e10cSrcweir		-T com.sun.star.uno.XWeak \
175cdf0e10cSrcweir		-T com.sun.star.container.XEnumeration \
176cdf0e10cSrcweir		-T com.sun.star.lang.XComponent \
177cdf0e10cSrcweir		-T com.sun.star.registry.XSimpleRegistry \
178cdf0e10cSrcweir		-T com.sun.star.lang.XInitialization \
179cdf0e10cSrcweir		-T com.sun.star.lang.XMultiServiceFactory\
180cdf0e10cSrcweir		-T com.sun.star.loader.XImplementationLoader \
181cdf0e10cSrcweir		-T com.sun.star.registry.XImplementationRegistration \
182cdf0e10cSrcweir		-T com.sun.star.container.XSet \
183cdf0e10cSrcweir		-T com.sun.star.lang.XSingleServiceFactory\
184cdf0e10cSrcweir		-T com.sun.star.lang.XServiceInfo \
185cdf0e10cSrcweir		-T com.sun.star.container.XContentEnumerationAccess \
186cdf0e10cSrcweir		-T com.sun.star.container.XEnumeration
187cdf0e10cSrcweir
188cdf0e10cSrcweirTESTCOREFL:=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
189cdf0e10cSrcweirTESTIADAPTER:=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
190cdf0e10cSrcweirTESTINTROSP:=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
191cdf0e10cSrcweirTESTCONV:=com.sun.star.script.XTypeConverter
192cdf0e10cSrcweirTESTPROXYFAC:=com.sun.star.reflection.XProxyFactory
193cdf0e10cSrcweirTESTSECURITY:=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
194cdf0e10cSrcweir
195cdf0e10cSrcweir$(BIN)$/test1.rdb: $(SHL1TARGETN)
196cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
197cdf0e10cSrcweir    cp $(SHL1TARGETN) $(BIN)
198cdf0e10cSrcweir.ENDIF
199cdf0e10cSrcweir	cd $(BIN) && regcomp -register -r test1.rdb -c $(SHL1TARGET)
200cdf0e10cSrcweir
201cdf0e10cSrcweir$(BIN)$/test2.rdb:
202cdf0e10cSrcweir	cd $(BIN) && regcomp -register -r test2.rdb -c remotebridge.uno$(DLLPOST)
203cdf0e10cSrcweir
204cdf0e10cSrcweir$(BIN)$/stoctest.rdb: $(ALLIDLFILES)
205cdf0e10cSrcweir	idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
206cdf0e10cSrcweir	regmerge $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
207cdf0e10cSrcweir	regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb
208cdf0e10cSrcweir	regcomp -register -r $@ -c reflection.uno$(DLLPOST)
209cdf0e10cSrcweir	touch $@
210cdf0e10cSrcweir
211cdf0e10cSrcweir$(MISC)$/test_types_generated.flag : $(BIN)$/stoctest.rdb  makefile.mk
212cdf0e10cSrcweir	-rm -f $(MISC)$/test_types_generated.flag
213cdf0e10cSrcweir	cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) $(FACTORYTYPES) -T"$(TESTIADAPTER)" $(BIN)$/stoctest.rdb
214cdf0e10cSrcweir	cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCOREFL)" $(BIN)$/stoctest.rdb
215cdf0e10cSrcweir	cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTINTROSP)" $(BIN)$/stoctest.rdb
216cdf0e10cSrcweir	cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCONV)" $(BIN)$/stoctest.rdb
217cdf0e10cSrcweir	cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTPROXYFAC)" $(BIN)$/stoctest.rdb
218cdf0e10cSrcweir	cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTSECURITY)" $(BIN)$/stoctest.rdb
219cdf0e10cSrcweir	touch $(MISC)$/test_types_generated.flag
220