Update ooo320-m1
[ooovba.git] / testtools / source / bridgetest / cli / makefile.mk
blobaa2b18a6af9fd602d1ebb8de3d6b20d8c424d280
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.21 $
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 #*************************************************************************
32 PRJ=..$/..$/..
34 PRJNAME=testtools
35 TARGET=cli_cpp_bridgetest.uno
36 USE_DEFFILE=TRUE
37 NO_BSYMBOLIC=TRUE
38 ENABLE_EXCEPTIONS=TRUE
39 LIBTARGET=NO
41 # disable caching to avoid stale objects
42 # on version changes
43 CCACHE_DISABLE=TRUE
44 .EXPORT : CCACHE_DISABLE
46 # --- Settings -----------------------------------------------------
48 .INCLUDE : settings.mk
49 DLLPRE =
50 CFLAGSENABLESYMBOLS:=-Z7
51 # ------------------------------------------------------------------
53 #.IF "$(CCNUMVER)" >= "001399999999"
54 #CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -AI $(SOLARBINDIR)
55 #SHL1STDLIBS = \
56 # mscoree.lib \
57 # msvcmrt.lib
58 #.ELSE
59 #CFLAGSCXX += -clr -AI $(OUT)$/bin -AI $(SOLARBINDIR)
60 #SHL1STDLIBS = \
61 # mscoree.lib
62 #.ENDIF
63 #SLOFILES= \
64 $(SLO)$/cli_cpp_bridgetest.obj
66 #SHL1OBJS = $(SLOFILES)
68 #SHL1TARGET = $(TARGET)
70 #SHL1DEF = $(MISC)$/$(SHL1TARGET).def
71 #DEF1NAME = $(SHL1TARGET)
73 .ENDIF
75 # --- Targets ------------------------------------------------------
77 .INCLUDE : target.mk
79 .IF "$(COM)" == "MSC" && "$(GUI)" == "WNT"
81 ALLTAR : $(BIN)$/cli_bridgetest_inprocess.exe
83 #################################################################
85 CLI_URE = $(SOLARBINDIR)$/cli_ure.dll
86 CLI_URETYPES = $(SOLARBINDIR)$/cli_uretypes.dll
87 CLI_BASETYPES = $(SOLARBINDIR)$/cli_basetypes.dll
88 CLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cppuhelper.dll
89 CLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll
90 CLI_TYPES_BRIDGETEST = $(BIN)$/cli_types_bridgetest.dll
92 CSCFLAGS =
93 .IF "$(CCNUMVER)" <= "001399999999"
94 VBC_FLAGS = -warnaserror+
95 .ELSE
96 VBC_FLAGS = -nowarn:42030 -warnaserror+
97 .ENDIF
98 .IF "$(debug)" != ""
99 CSCFLAGS += -debug+ -checked+ -define:DEBUG -define:TRACE
100 VBC_FLAGS += -debug+ -define:DEBUG=TRUE -define:TRACE=TRUE
101 .ELSE
102 CSCFLAGS += -optimize
103 VBC_FLAGS += -optimize
104 .ENDIF
107 # C# ----------------------------------------------
108 $(BIN)$/cli_cs_testobj.uno.dll : \
109 cli_cs_testobj.cs \
110 cli_cs_multi.cs \
111 $(CLI_BASETYPES) \
112 $(CLI_URETYPES) \
113 $(CLI_URE)
114 $(CSC) $(CSCFLAGS) -target:library -out:$@ \
115 -reference:$(CLI_TYPES_BRIDGETEST) \
116 -reference:$(CLI_URE) \
117 -reference:$(CLI_BASETYPES) \
118 -reference:$(CLI_URETYPES) \
119 cli_cs_testobj.cs cli_cs_multi.cs
121 $(BIN)$/cli_cs_bridgetest.uno.dll : \
122 cli_cs_bridgetest.cs \
123 $(CLI_BASETYPES) \
124 $(CLI_URETYPES) \
125 $(CLI_URE)
126 $(CSC) $(CSCFLAGS) -target:library -out:$@ \
127 -reference:$(CLI_TYPES_BRIDGETEST) \
128 -reference:$(CLI_URETYPES) \
129 -reference:$(CLI_BASETYPES) \
130 -reference:$(CLI_URE) \
131 -reference:System.dll \
132 cli_cs_bridgetest.cs
134 # Visual Basic ------------------------------------------
135 $(BIN)$/cli_vb_bridgetest.uno.dll : \
136 cli_vb_bridgetest.vb \
137 $(CLI_BASETYPES) \
138 $(CLI_URETYPES) \
139 $(CLI_URE)
140 $(VBC) $(VBC_FLAGS) \
141 -target:library \
142 -out:$@ \
143 -reference:$(CLI_URETYPES) \
144 -reference:$(CLI_BASETYPES) \
145 -reference:$(CLI_URE) \
146 -reference:$(CLI_TYPES_BRIDGETEST) \
147 -reference:System.dll \
148 -reference:System.Drawing.dll \
149 -reference:System.Windows.Forms.dll
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 $(MISC)$/copyassemblies.done \
181 $(CLI_BASETYPES) \
182 $(CLI_URETYPES) \
183 $(CLI_URE) \
184 $(CLI_CPPUHELPER)
185 $(CSC) $(CSCFLAGS) -target:exe -out:$@ \
186 -reference:$(CLI_TYPES_BRIDGETEST) \
187 -reference:$(CLI_BASETYPES) \
188 -reference:$(CLI_URETYPES) \
189 -reference:$(CLI_URE) \
190 -reference:$(CLI_CPPUHELPER) \
191 -reference:$(BIN)$/cli_cs_bridgetest.uno.dll \
192 -reference:$(BIN)$/cli_cs_testobj.uno.dll \
193 cli_bridgetest_inprocess.cs
194 $(GNUCOPY) cli_bridgetest_inprocess.ini $(BIN)