Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / stoc / test / makefile.mk
blob7b127215cfd7e38c044bc0483eedf953476be236
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 PRJ=..
21 PRJNAME=stoc
22 TARGET=stoc
23 TARGET1=testloader
24 TARGET2=testregistry
25 TARGET3=testsmgr
26 TARGET4=testcorefl
27 TARGET5=testinvocation
28 TARGET6=testintrosp
29 TARGET7=testconv
30 TARGET8=testproxyfac
31 TARGET9=testsmgr2
32 TARGETTYPE=CUI
34 ENABLE_EXCEPTIONS=TRUE
36 # --- Settings -----------------------------------------------------
38 .INCLUDE : settings.mk
40 # --- smgr component -----------------------------------------------
41 SHL1OBJS= \
42 $(OBJ)$/testsmgr_cpnt.obj
44 SHL1STDLIBS= \
45 $(CPPULIB) \
46 $(CPPUHELPERLIB) \
47 $(SALHELPERLIB) \
48 $(SALLIB)
50 SHL1TARGET=testsmgr_component
51 SHL1DEPN=
52 SHL1IMPLIB=i$(SHL1TARGET)
53 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
54 DEF1NAME=$(SHL1TARGET)
55 SHL1VERSIONMAP=testsmgr_cpnt.map
57 # --- Application 1 ------------------------------------------------
58 APP1TARGET= $(TARGET1)
59 APP1OBJS= $(OBJ)$/testloader.obj
61 APP1STDLIBS= \
62 $(CPPULIB) \
63 $(CPPUHELPERLIB) \
64 $(SALHELPERLIB) \
65 $(SALLIB)
67 # --- Application 2 ------------------------------------------------
68 APP2TARGET= $(TARGET2)
69 APP2OBJS= $(OBJ)$/testregistry.obj $(OBJ)$/mergekeys_.obj
71 APP2STDLIBS= \
72 $(CPPULIB) \
73 $(CPPUHELPERLIB) \
74 $(SALHELPERLIB) \
75 $(REGLIB) \
76 $(SALLIB)
78 # --- Application 3 - testsmgr main ------------------------------------
79 APP3TARGET= $(TARGET3)
80 APP3OBJS = $(OBJ)$/testsmgr.obj
81 APP3STDLIBS= \
82 $(CPPULIB) \
83 $(CPPUHELPERLIB) \
84 $(SALHELPERLIB) \
85 $(REGLIB) \
86 $(SALLIB)
88 .IF "$(GUI)"=="UNX"
89 APP3STDLIBS+= -l$(SHL1TARGET)
90 .ENDIF
91 .IF "$(GUI)"=="WNT"
92 APP3STDLIBS+= i$(SHL1TARGET).lib
93 .ENDIF
95 # --- Application 4 - testcorefl main ------------------------------------
96 APP4TARGET= $(TARGET4)
97 APP4OBJS = $(OBJ)$/testcorefl.obj
98 APP4STDLIBS= \
99 $(CPPULIB) \
100 $(CPPUHELPERLIB) \
101 $(SALLIB)
103 # --- Application 5 - testinvocation main ------------------------------------
104 APP5TARGET= $(TARGET5)
105 APP5OBJS = $(OBJ)$/testiadapter.obj
106 APP5STDLIBS= \
107 $(CPPULIB) \
108 $(CPPUHELPERLIB) \
109 $(SALLIB)
111 # --- Application 6 - testitrosp main ------------------------------------
112 APP6TARGET= $(TARGET6)
113 APP6OBJS = $(OBJ)$/testintrosp.obj
114 APP6STDLIBS= \
115 $(CPPULIB) \
116 $(CPPUHELPERLIB) \
117 $(SALHELPERLIB) \
118 $(SALLIB)
120 # --- Application 7 - testconv main ------------------------------------
121 APP7TARGET= $(TARGET7)
122 APP7OBJS = $(OBJ)$/testconv.obj
123 APP7STDLIBS= \
124 $(CPPULIB) \
125 $(CPPUHELPERLIB) \
126 $(SALLIB)
128 # --- Application 8 - testproxyfac main ------------------------------------
129 APP8TARGET= $(TARGET8)
130 APP8OBJS = $(OBJ)$/testproxyfac.obj
131 APP8STDLIBS= \
132 $(CPPULIB) \
133 $(CPPUHELPERLIB) \
134 $(SALLIB)
136 # --- Application 9 - testproxyfac main ------------------------------------
137 APP9TARGET= $(TARGET9)
138 APP9OBJS = $(OBJ)$/testsmgr2.obj
139 APP9STDLIBS= \
140 $(CPPULIB) \
141 $(CPPUHELPERLIB) \
142 $(SALLIB)
145 ALLIDLFILES:= testcorefl.idl language_binding.idl testintrosp.idl
148 # --- Target ------------------------------------------------
150 .IF "$(depend)" == ""
151 ALL : $(MISC)$/test_types_generated.flag \
152 $(BIN)$/test1.rdb \
153 $(BIN)$/test2.rdb \
154 ALLTAR
155 .ELSE
156 ALL: ALLDEP
157 .ENDIF
159 .INCLUDE : target.mk
161 CPPUMAKERFLAGS =
162 .IF "$(COM)" == "MSC"
163 CPPUMAKERFLAGS = -L
164 .ENDIF
166 FACTORYTYPES:= -T com.sun.star.lang.XSingleComponentFactory \
167 -T com.sun.star.uno.XComponentContext \
168 -T com.sun.star.uno.XWeak \
169 -T com.sun.star.container.XEnumeration \
170 -T com.sun.star.lang.XComponent \
171 -T com.sun.star.registry.XSimpleRegistry \
172 -T com.sun.star.lang.XInitialization \
173 -T com.sun.star.lang.XMultiServiceFactory\
174 -T com.sun.star.loader.XImplementationLoader \
175 -T com.sun.star.registry.XImplementationRegistration \
176 -T com.sun.star.container.XSet \
177 -T com.sun.star.lang.XSingleServiceFactory\
178 -T com.sun.star.lang.XServiceInfo \
179 -T com.sun.star.container.XContentEnumerationAccess \
180 -T com.sun.star.container.XEnumeration
182 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
183 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
184 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
185 TESTCONV:=com.sun.star.script.XTypeConverter
186 TESTPROXYFAC:=com.sun.star.reflection.XProxyFactory
187 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
189 $(BIN)$/test1.rdb: $(SHL1TARGETN)
190 .IF "$(GUI)"=="UNX"
191 cp $(SHL1TARGETN) $(BIN)
192 .ENDIF
193 cd $(BIN) && regcomp -register -r test1.rdb -c $(SHL1TARGET)
195 $(BIN)$/test2.rdb:
196 cd $(BIN) && regcomp -register -r test2.rdb -c remotebridge.uno$(DLLPOST)
198 $(BIN)$/stoctest.rdb: $(ALLIDLFILES)
199 idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
200 regmerge $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
201 regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb
202 regcomp -register -r $@ -c reflection.uno$(DLLPOST)
203 touch $@
205 $(MISC)$/test_types_generated.flag : $(BIN)$/stoctest.rdb makefile.mk
206 -rm -f $(MISC)$/test_types_generated.flag
207 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) $(FACTORYTYPES) -T"$(TESTIADAPTER)" $(BIN)$/stoctest.rdb
208 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCOREFL)" $(BIN)$/stoctest.rdb
209 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTINTROSP)" $(BIN)$/stoctest.rdb
210 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCONV)" $(BIN)$/stoctest.rdb
211 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTPROXYFAC)" $(BIN)$/stoctest.rdb
212 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTSECURITY)" $(BIN)$/stoctest.rdb
213 touch $(MISC)$/test_types_generated.flag