jl165 merging heads
[LibreOffice.git] / testtools / source / bridgetest / cli / makefile.mk
blob3e5fd43df7d4829a66e78fd858906cc7ea8e2d0d
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=..$/..$/..
30 PRJNAME=testtools
31 TARGET=cli_cpp_bridgetest.uno
32 USE_DEFFILE=TRUE
33 NO_BSYMBOLIC=TRUE
34 ENABLE_EXCEPTIONS=TRUE
35 LIBTARGET=NO
37 # disable caching to avoid stale objects
38 # on version changes
39 CCACHE_DISABLE=TRUE
40 .EXPORT : CCACHE_DISABLE
42 # --- Settings -----------------------------------------------------
44 .INCLUDE : settings.mk
45 DLLPRE =
46 CFLAGSENABLESYMBOLS:=-Z7
47 # ------------------------------------------------------------------
49 #These tests are for Windows only
50 .IF "$(COM)" == "MSC" && "$(GUI)" == "WNT"
52 .IF "$(CCNUMVER)" >= "001399999999"
53 CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -AI $(SOLARBINDIR)
54 SHL1STDLIBS = \
55 mscoree.lib \
56 msvcmrt.lib
57 .ELSE
58 CFLAGSCXX += -clr -AI $(OUT)$/bin -AI $(SOLARBINDIR)
59 SHL1STDLIBS = \
60 mscoree.lib
61 .ENDIF
62 SLOFILES= \
63 $(SLO)$/cli_cpp_bridgetest.obj
65 SHL1OBJS = $(SLOFILES)
67 SHL1TARGET = $(TARGET)
69 SHL1DEF = $(MISC)$/$(SHL1TARGET).def
70 DEF1NAME = $(SHL1TARGET)
72 .ENDIF
74 # --- Targets ------------------------------------------------------
76 .INCLUDE : target.mk
78 .IF "$(COM)" == "MSC" && "$(GUI)" == "WNT"
80 ALLTAR : $(BIN)$/cli_bridgetest_inprocess.exe
82 #################################################################
84 CLI_URE = $(SOLARBINDIR)$/cli_ure.dll
85 CLI_URETYPES = $(SOLARBINDIR)$/cli_uretypes.dll
86 CLI_BASETYPES = $(SOLARBINDIR)$/cli_basetypes.dll
87 CLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cppuhelper.dll
88 CLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll
89 CLI_TYPES_BRIDGETEST = $(BIN)$/cli_types_bridgetest.dll
91 CSCFLAGS = -warnaserror+
92 .IF "$(CCNUMVER)" <= "001399999999"
93 VBC_FLAGS = -warnaserror+
94 .ELSE
95 VBC_FLAGS = -nowarn:42030 -warnaserror+
96 .ENDIF
97 .IF "$(debug)" != ""
98 CSCFLAGS += -debug+ -checked+ -define:DEBUG -define:TRACE
99 VBC_FLAGS += -debug+ -define:DEBUG=TRUE -define:TRACE=TRUE
100 .ELSE
101 CSCFLAGS += -optimize
102 VBC_FLAGS += -optimize
103 .ENDIF
106 # C# ----------------------------------------------
107 $(BIN)$/cli_cs_testobj.uno.dll : \
108 cli_cs_testobj.cs \
109 cli_cs_multi.cs \
110 $(CLI_BASETYPES) \
111 $(CLI_URETYPES) \
112 $(CLI_URE)
113 $(CSC) $(CSCFLAGS) -target:library -out:$@ \
114 -reference:$(CLI_TYPES_BRIDGETEST) \
115 -reference:$(CLI_URE) \
116 -reference:$(CLI_BASETYPES) \
117 -reference:$(CLI_URETYPES) \
118 cli_cs_testobj.cs cli_cs_multi.cs
120 $(BIN)$/cli_cs_bridgetest.uno.dll : \
121 cli_cs_bridgetest.cs \
122 $(CLI_BASETYPES) \
123 $(CLI_URETYPES) \
124 $(CLI_URE)
125 $(CSC) $(CSCFLAGS) -target:library -out:$@ \
126 -reference:$(CLI_TYPES_BRIDGETEST) \
127 -reference:$(CLI_URETYPES) \
128 -reference:$(CLI_BASETYPES) \
129 -reference:$(CLI_URE) \
130 -reference:System.dll \
131 cli_cs_bridgetest.cs
133 # Visual Basic ------------------------------------------
134 $(BIN)$/cli_vb_bridgetest.uno.dll : \
135 cli_vb_bridgetest.vb \
136 $(CLI_BASETYPES) \
137 $(CLI_URETYPES) \
138 $(CLI_URE)
139 $(VBC) $(VBC_FLAGS) \
140 -target:library \
141 -out:$@ \
142 -reference:$(CLI_URETYPES) \
143 -reference:$(CLI_BASETYPES) \
144 -reference:$(CLI_URE) \
145 -reference:$(CLI_TYPES_BRIDGETEST) \
146 -reference:System.dll \
147 -reference:System.Drawing.dll \
148 -reference:System.Windows.Forms.dll \
149 cli_vb_bridgetest.vb
151 $(BIN)$/cli_vb_testobj.uno.dll : \
152 cli_vb_testobj.vb \
153 $(CLI_BASETYPES) \
154 $(CLI_URETYPES) \
155 $(CLI_URE)
156 $(VBC) $(VBC_FLAGS) \
157 -target:library \
158 -out:$@ \
159 -reference:$(CLI_BASETYPES) \
160 -reference:$(CLI_URETYPES) \
161 -reference:$(CLI_URE) \
162 -reference:$(CLI_TYPES_BRIDGETEST) \
163 -reference:System.dll \
164 -reference:System.Drawing.dll \
165 -reference:System.Windows.Forms.dll \
166 cli_vb_testobj.vb
168 $(MISC)$/copyassemblies.done .ERRREMOVE:
169 $(GNUCOPY) $(CLI_CPPUHELPER) $(BIN)$/$(CLI_CPPUHELPER:f)
170 $(GNUCOPY) $(CLI_BASETYPES) $(BIN)$/$(CLI_BASETYPES:f)
171 $(GNUCOPY) $(CLI_URETYPES) $(BIN)$/$(CLI_URETYPES:f)
172 $(GNUCOPY) $(CLI_URE) $(BIN)$/$(CLI_URE:f)
173 $(GNUCOPY) $(CLI_OOOTYPES) $(BIN)$/$(CLI_OOOTYPES:f)
174 $(TOUCH) $@
176 $(BIN)$/cli_bridgetest_inprocess.exe : \
177 cli_bridgetest_inprocess.cs \
178 $(BIN)$/cli_cs_bridgetest.uno.dll \
179 $(BIN)$/cli_cs_testobj.uno.dll \
180 $(BIN)$/cli_vb_bridgetest.uno.dll \
181 $(BIN)$/cli_vb_testobj.uno.dll \
182 $(BIN)$/cli_cpp_bridgetest.uno.dll \
183 $(MISC)$/copyassemblies.done \
184 $(CLI_BASETYPES) \
185 $(CLI_URETYPES) \
186 $(CLI_URE) \
187 $(CLI_CPPUHELPER)
188 $(CSC) $(CSCFLAGS) -target:exe -out:$@ \
189 -reference:$(CLI_TYPES_BRIDGETEST) \
190 -reference:$(CLI_BASETYPES) \
191 -reference:$(CLI_URETYPES) \
192 -reference:$(CLI_URE) \
193 -reference:$(CLI_CPPUHELPER) \
194 -reference:$(BIN)$/cli_cs_bridgetest.uno.dll \
195 -reference:$(BIN)$/cli_cs_testobj.uno.dll \
196 -reference:$(BIN)$/cli_vb_bridgetest.uno.dll \
197 -reference:$(BIN)$/cli_vb_testobj.uno.dll \
198 -reference:$(BIN)$/cli_cpp_bridgetest.uno.dll \
199 cli_bridgetest_inprocess.cs
200 $(GNUCOPY) cli_bridgetest_inprocess.ini $(BIN)
202 .ENDIF