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 .
25 ENABLE_EXCEPTIONS
=TRUE
27 # --- Settings -----------------------------------------------------
29 .INCLUDE
: settings.mk
31 # --- Files --------------------------------------------------------
32 ALLIDLFILES
= test_bridge.idl
36 UNOUCRDEP
=$(SOLARBINDIR
)$/udkapi.rdb
$(BIN
)$/test.rdb
37 UNOUCRRDB
=$(SOLARBINDIR
)$/udkapi.rdb
$(BIN
)$/test.rdb
39 # output directory (one dir for each project)
42 # adding to includepath
44 CFLAGS
+= -I..
$/source
$/remote
$/urp
47 com.sun.star.uno.XWeak\
48 com.sun.star.uno.XNamingService\
49 com.sun.star.uno.XAggregation \
50 com.sun.star.uno.TypeClass\
51 com.sun.star.io.XInputStream\
52 com.sun.star.io.XOutputStream\
53 com.sun.star.lang.XInitialization \
54 com.sun.star.lang.XSingleServiceFactory \
55 com.sun.star.lang.XMultiServiceFactory \
56 com.sun.star.lang.XTypeProvider \
57 com.sun.star.registry.XSimpleRegistry \
58 com.sun.star.loader.XImplementationLoader \
59 com.sun.star.registry.XImplementationRegistration \
60 com.sun.star.corba.giop.TargetAddress \
61 com.sun.star.corba.giop.TargetAddressGroup \
62 com.sun.star.lang.XComponent \
63 com.sun.star.bridge.XBridgeFactory\
64 com.sun.star.connection.XAcceptor\
65 com.sun.star.connection.XConnector\
66 com.sun.star.beans.Property\
67 com.sun.star.corba.giop.RequestHeader_1_2\
68 com.sun.star.container.XSet\
69 com.sun.star.lang.XServiceInfo\
71 com.sun.star.
test.performance.XPerformanceTest \
72 com.sun.star.lang.XMain \
73 com.sun.star.lang.XMultiComponentFactory \
74 com.sun.star.lang.XSingleComponentFactory
76 JARFILES
= jurt.jar unoil.jar
79 $(OBJ
)$/testserver.obj \
80 $(OBJ
)$/testclient.obj \
81 $(OBJ
)$/testcomp.obj \
82 $(OBJ
)$/testsameprocess.obj
85 APP2TARGET
= testserver
86 APP2OBJS
= $(OBJ
)$/testserver.obj \
89 .IF
"$(OS)" == "LINUX"
90 APP2STDLIBS
+= -lstdc
++
98 APP3TARGET
= testclient
99 APP3OBJS
= $(OBJ
)$/testclient.obj \
102 .IF
"$(OS)" == "LINUX"
103 APP3STDLIBS
+= -lstdc
++
111 #----------------------------------
113 APP4TARGET
= testsameprocess
114 APP4OBJS
= $(OBJ
)$/testsameprocess.obj \
117 .IF
"$(OS)" == "LINUX"
118 APP4STDLIBS
+= -lstdc
++
126 APP4DEF
= $(MISC
)$/$(APP4TARGET
).def
128 #----------------------------------
130 # APP5TARGET= testoffice
131 # APP5OBJS= $(OBJ)$/testoffice.obj \
132 # $(OBJ)$/testcomp.obj
134 # .IF "$(OS)" == "LINUX"
135 # APP5STDLIBS+= -lstdc++
143 # APP5DEF= $(MISC)$/$(APP5TARGET).def
146 # --- Targets ------------------------------------------------------
150 ALLTAR
: $(BIN
)$/test.rdb \
154 $(BIN
)$/test.rdb
: $(ALLIDLFILES
)
155 $(IDLC
) -I
$(PRJ
) -I
$(SOLARIDLDIR
) -O
$(BIN
) $?
156 $(REGMERGE
) $@
/UCR
$(BIN
)$/{$(?
:f
:s
/.idl
/.urd
/)}
159 $(BIN
)$/client.rdb
: $(BIN
)$/test.rdb
160 rm -f
$(BIN
)$/client.rdb
161 $(REGMERGE
) $@
/ $(BIN
)$/test.rdb
$(SOLARBINDIR
)$/udkapi.rdb
163 $(BIN
)$/server.rdb
: $(BIN
)$/test.rdb
164 rm -f
$(BIN
)$/client.rdb
165 $(REGMERGE
) $@
/ $(BIN
)$/test.rdb
$(SOLARBINDIR
)$/udkapi.rdb