Branch libreoffice-5-0-4
[LibreOffice.git] / bridges / test / makefile.mk
blobd3bff979f4e420162b5395523d82fc5ee280f2f9
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=bridges
22 TARGET=test
23 LIBTARGET=NO
24 TARGETTYPE=CUI
25 ENABLE_EXCEPTIONS=TRUE
27 # --- Settings -----------------------------------------------------
29 .INCLUDE : settings.mk
31 # --- Files --------------------------------------------------------
32 ALLIDLFILES = test_bridge.idl
33 CPPUMAKERFLAGS += -C
36 UNOUCRDEP=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb
37 UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb
39 # output directory (one dir for each project)
40 UNOUCROUT=$(OUT)$/inc
42 # adding to includepath
43 INCPRE+=$(UNOUCROUT)
44 CFLAGS += -I..$/source$/remote$/urp
46 UNOTYPES = \
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\
70 test.XTestFactory \
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
78 OBJFILES= \
79 $(OBJ)$/testserver.obj \
80 $(OBJ)$/testclient.obj \
81 $(OBJ)$/testcomp.obj \
82 $(OBJ)$/testsameprocess.obj
85 APP2TARGET= testserver
86 APP2OBJS= $(OBJ)$/testserver.obj \
87 $(OBJ)$/testcomp.obj
89 .IF "$(OS)" == "LINUX"
90 APP2STDLIBS+= -lstdc++
91 .ENDIF
93 APP2STDLIBS+= \
94 $(CPPULIB) \
95 $(CPPUHELPERLIB) \
96 $(SALLIB)
98 APP3TARGET= testclient
99 APP3OBJS= $(OBJ)$/testclient.obj \
100 $(OBJ)$/testcomp.obj
102 .IF "$(OS)" == "LINUX"
103 APP3STDLIBS+= -lstdc++
104 .ENDIF
106 APP3STDLIBS+= \
107 $(CPPULIB) \
108 $(CPPUHELPERLIB) \
109 $(SALLIB)
111 #----------------------------------
113 APP4TARGET= testsameprocess
114 APP4OBJS= $(OBJ)$/testsameprocess.obj \
115 $(OBJ)$/testcomp.obj
117 .IF "$(OS)" == "LINUX"
118 APP4STDLIBS+= -lstdc++
119 .ENDIF
121 APP4STDLIBS+= \
122 $(CPPULIB) \
123 $(CPPUHELPERLIB) \
124 $(SALLIB)
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++
136 # .ENDIF
138 # APP5STDLIBS+= \
139 # $(CPPULIB) \
140 # $(CPPUHELPERLIB)\
141 # $(SALLIB)
143 # APP5DEF= $(MISC)$/$(APP5TARGET).def
146 # --- Targets ------------------------------------------------------
148 .INCLUDE : target.mk
150 ALLTAR : $(BIN)$/test.rdb \
151 $(BIN)$/server.rdb \
152 $(BIN)$/client.rdb
154 $(BIN)$/test.rdb: $(ALLIDLFILES)
155 $(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
156 $(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
157 touch $@
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