1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
39 TARGET5
=testinvocation
46 ENABLE_EXCEPTIONS
=TRUE
49 # --- Settings -----------------------------------------------------
51 .INCLUDE
: settings.mk
53 # --- smgr component -----------------------------------------------
55 $(OBJ
)$/testsmgr_cpnt.obj
63 SHL1TARGET
=testsmgr_component
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
81 # --- Application 2 ------------------------------------------------
82 APP2TARGET
= $(TARGET2
)
83 APP2OBJS
= $(OBJ
)$/testregistry.obj
$(OBJ
)$/mergekeys_.obj
92 # --- Application 3 - testsmgr main ------------------------------------
93 APP3TARGET
= $(TARGET3
)
94 APP3OBJS
= $(OBJ
)$/testsmgr.obj
103 APP3STDLIBS
+= -l
$(SHL1TARGET
)
105 .IF
"$(GUI)"=="WNT" ||
"$(GUI)"=="OS2"
106 APP3STDLIBS
+= i
$(SHL1TARGET
).lib
109 # --- Application 4 - testcorefl main ------------------------------------
110 APP4TARGET
= $(TARGET4
)
111 APP4OBJS
= $(OBJ
)$/testcorefl.obj
117 # --- Application 5 - testinvocation main ------------------------------------
118 APP5TARGET
= $(TARGET5
)
119 APP5OBJS
= $(OBJ
)$/testiadapter.obj
125 # --- Application 6 - testitrosp main ------------------------------------
126 APP6TARGET
= $(TARGET6
)
127 APP6OBJS
= $(OBJ
)$/testintrosp.obj
134 # --- Application 7 - testconv main ------------------------------------
135 APP7TARGET
= $(TARGET7
)
136 APP7OBJS
= $(OBJ
)$/testconv.obj
142 # --- Application 8 - testproxyfac main ------------------------------------
143 APP8TARGET
= $(TARGET8
)
144 APP8OBJS
= $(OBJ
)$/testproxyfac.obj
150 # --- Application 9 - testproxyfac main ------------------------------------
151 APP9TARGET
= $(TARGET9
)
152 APP9OBJS
= $(OBJ
)$/testsmgr2.obj
159 ALLIDLFILES
:= testcorefl.idl language_binding.idl testintrosp.idl
162 # --- Target ------------------------------------------------
164 .IF
"$(depend)" == ""
165 ALL
: $(MISC
)$/test_types_generated.flag \
176 .IF
"$(COM)" == "MSC"
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
)
205 cp
$(SHL1TARGETN
) $(BIN
)
207 cd
$(BIN
) && regcomp
-register
-r test1.rdb
-c
$(SHL1TARGET
)
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
)
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