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 .
27 TARGET5
=testinvocation
34 ENABLE_EXCEPTIONS
=TRUE
36 # --- Settings -----------------------------------------------------
38 .INCLUDE
: settings.mk
40 # --- smgr component -----------------------------------------------
42 $(OBJ
)$/testsmgr_cpnt.obj
50 SHL1TARGET
=testsmgr_component
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
67 # --- Application 2 ------------------------------------------------
68 APP2TARGET
= $(TARGET2
)
69 APP2OBJS
= $(OBJ
)$/testregistry.obj
$(OBJ
)$/mergekeys_.obj
78 # --- Application 3 - testsmgr main ------------------------------------
79 APP3TARGET
= $(TARGET3
)
80 APP3OBJS
= $(OBJ
)$/testsmgr.obj
89 APP3STDLIBS
+= -l
$(SHL1TARGET
)
92 APP3STDLIBS
+= i
$(SHL1TARGET
).lib
95 # --- Application 4 - testcorefl main ------------------------------------
96 APP4TARGET
= $(TARGET4
)
97 APP4OBJS
= $(OBJ
)$/testcorefl.obj
103 # --- Application 5 - testinvocation main ------------------------------------
104 APP5TARGET
= $(TARGET5
)
105 APP5OBJS
= $(OBJ
)$/testiadapter.obj
111 # --- Application 6 - testitrosp main ------------------------------------
112 APP6TARGET
= $(TARGET6
)
113 APP6OBJS
= $(OBJ
)$/testintrosp.obj
120 # --- Application 7 - testconv main ------------------------------------
121 APP7TARGET
= $(TARGET7
)
122 APP7OBJS
= $(OBJ
)$/testconv.obj
128 # --- Application 8 - testproxyfac main ------------------------------------
129 APP8TARGET
= $(TARGET8
)
130 APP8OBJS
= $(OBJ
)$/testproxyfac.obj
136 # --- Application 9 - testproxyfac main ------------------------------------
137 APP9TARGET
= $(TARGET9
)
138 APP9OBJS
= $(OBJ
)$/testsmgr2.obj
145 ALLIDLFILES
:= testcorefl.idl language_binding.idl testintrosp.idl
148 # --- Target ------------------------------------------------
150 .IF
"$(depend)" == ""
151 ALL
: $(MISC
)$/test_types_generated.flag \
162 .IF
"$(COM)" == "MSC"
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
)
191 cp
$(SHL1TARGETN
) $(BIN
)
193 cd
$(BIN
) && regcomp
-register
-r test1.rdb
-c
$(SHL1TARGET
)
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
)
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