1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=testtools
27cdf0e10cSrcweirTARGET=cli_cpp_bridgetest.uno
28cdf0e10cSrcweirUSE_DEFFILE=TRUE
29cdf0e10cSrcweirNO_BSYMBOLIC=TRUE
30cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
31cdf0e10cSrcweirLIBTARGET=NO
32cdf0e10cSrcweir
33cdf0e10cSrcweir# disable caching to avoid stale objects
34cdf0e10cSrcweir# on version changes
35cdf0e10cSrcweirCCACHE_DISABLE=TRUE
36cdf0e10cSrcweir.EXPORT : CCACHE_DISABLE
37cdf0e10cSrcweir
38cdf0e10cSrcweir# --- Settings -----------------------------------------------------
39cdf0e10cSrcweir
40cdf0e10cSrcweir.INCLUDE :  settings.mk
41cdf0e10cSrcweirDLLPRE =
42cdf0e10cSrcweirCFLAGSENABLESYMBOLS:=-Z7
43cdf0e10cSrcweir# ------------------------------------------------------------------
44cdf0e10cSrcweir
45cdf0e10cSrcweir#These tests are for Windows only
46cdf0e10cSrcweir.IF "$(COM)" == "MSC" && "$(GUI)" == "WNT"
47cdf0e10cSrcweir
48cdf0e10cSrcweir.IF "$(CCNUMVER)" >= "001399999999"
49cdf0e10cSrcweirCFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -AI $(SOLARBINDIR)
50cdf0e10cSrcweirSHL1STDLIBS = \
51cdf0e10cSrcweir	mscoree.lib \
52cdf0e10cSrcweir	msvcmrt.lib
53cdf0e10cSrcweir.ELSE
54cdf0e10cSrcweirCFLAGSCXX += -clr -AI $(OUT)$/bin -AI $(SOLARBINDIR)
55cdf0e10cSrcweirSHL1STDLIBS = \
56cdf0e10cSrcweir	mscoree.lib
57cdf0e10cSrcweir.ENDIF
58cdf0e10cSrcweirSLOFILES= \
59cdf0e10cSrcweir	$(SLO)$/cli_cpp_bridgetest.obj
60cdf0e10cSrcweir
61cdf0e10cSrcweirSHL1OBJS = $(SLOFILES)
62cdf0e10cSrcweir
63cdf0e10cSrcweirSHL1TARGET = $(TARGET)
64cdf0e10cSrcweir
65cdf0e10cSrcweirSHL1DEF = $(MISC)$/$(SHL1TARGET).def
66cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET)
67cdf0e10cSrcweir
68cdf0e10cSrcweir.ENDIF
69cdf0e10cSrcweir
70cdf0e10cSrcweir# --- Targets ------------------------------------------------------
71cdf0e10cSrcweir
72cdf0e10cSrcweir.INCLUDE :	target.mk
73cdf0e10cSrcweir
74cdf0e10cSrcweir.IF "$(COM)" == "MSC" && "$(GUI)" == "WNT"
75cdf0e10cSrcweir
76cdf0e10cSrcweirALLTAR : $(BIN)$/cli_bridgetest_inprocess.exe
77cdf0e10cSrcweir
78cdf0e10cSrcweir#################################################################
79cdf0e10cSrcweir
80cdf0e10cSrcweirCLI_URE = $(SOLARBINDIR)$/cli_ure.dll
81cdf0e10cSrcweirCLI_URETYPES = $(SOLARBINDIR)$/cli_uretypes.dll
82cdf0e10cSrcweirCLI_BASETYPES = $(SOLARBINDIR)$/cli_basetypes.dll
83cdf0e10cSrcweirCLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cppuhelper.dll
84cdf0e10cSrcweirCLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll
85cdf0e10cSrcweirCLI_TYPES_BRIDGETEST = $(BIN)$/cli_types_bridgetest.dll
86cdf0e10cSrcweir
87cdf0e10cSrcweirCSCFLAGS = -warnaserror+
88cdf0e10cSrcweir.IF "$(CCNUMVER)" <= "001399999999"
89cdf0e10cSrcweirVBC_FLAGS = -warnaserror+
90cdf0e10cSrcweir.ELSE
91cdf0e10cSrcweirVBC_FLAGS = -nowarn:42030 -warnaserror+
92cdf0e10cSrcweir.ENDIF
93cdf0e10cSrcweir.IF "$(debug)" != ""
94cdf0e10cSrcweirCSCFLAGS += -debug+ -checked+ -define:DEBUG -define:TRACE
95cdf0e10cSrcweirVBC_FLAGS += -debug+ -define:DEBUG=TRUE -define:TRACE=TRUE
96cdf0e10cSrcweir.ELSE
97cdf0e10cSrcweirCSCFLAGS += -optimize
98cdf0e10cSrcweirVBC_FLAGS += -optimize
99cdf0e10cSrcweir.ENDIF
100cdf0e10cSrcweir
101cdf0e10cSrcweir
102cdf0e10cSrcweir# C# ----------------------------------------------
103cdf0e10cSrcweir$(BIN)$/cli_cs_testobj.uno.dll : \
104cdf0e10cSrcweir		cli_cs_testobj.cs \
105cdf0e10cSrcweir		cli_cs_multi.cs \
106cdf0e10cSrcweir		$(CLI_BASETYPES) \
107cdf0e10cSrcweir		$(CLI_URETYPES) \
108cdf0e10cSrcweir		$(CLI_URE)
109cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:library -out:$@ \
110cdf0e10cSrcweir		-reference:$(CLI_TYPES_BRIDGETEST) \
111cdf0e10cSrcweir		-reference:$(CLI_URE) \
112cdf0e10cSrcweir		-reference:$(CLI_BASETYPES) \
113cdf0e10cSrcweir 		-reference:$(CLI_URETYPES) \
114cdf0e10cSrcweir		cli_cs_testobj.cs cli_cs_multi.cs
115cdf0e10cSrcweir
116cdf0e10cSrcweir$(BIN)$/cli_cs_bridgetest.uno.dll : \
117cdf0e10cSrcweir		cli_cs_bridgetest.cs \
118cdf0e10cSrcweir		$(CLI_BASETYPES) \
119cdf0e10cSrcweir		$(CLI_URETYPES) \
120cdf0e10cSrcweir		$(CLI_URE)
121cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:library -out:$@ \
122cdf0e10cSrcweir		-reference:$(CLI_TYPES_BRIDGETEST) \
123cdf0e10cSrcweir		-reference:$(CLI_URETYPES) \
124cdf0e10cSrcweir		-reference:$(CLI_BASETYPES) \
125cdf0e10cSrcweir		-reference:$(CLI_URE) \
126cdf0e10cSrcweir		-reference:System.dll \
127cdf0e10cSrcweir		cli_cs_bridgetest.cs
128cdf0e10cSrcweir
129cdf0e10cSrcweir# Visual Basic ------------------------------------------
130cdf0e10cSrcweir$(BIN)$/cli_vb_bridgetest.uno.dll : \
131cdf0e10cSrcweir		cli_vb_bridgetest.vb \
132cdf0e10cSrcweir		$(CLI_BASETYPES) \
133cdf0e10cSrcweir		$(CLI_URETYPES) \
134cdf0e10cSrcweir		$(CLI_URE)
135cdf0e10cSrcweir	$(VBC) $(VBC_FLAGS) \
136cdf0e10cSrcweir		-target:library \
137cdf0e10cSrcweir		-out:$@ \
138cdf0e10cSrcweir		-reference:$(CLI_URETYPES) \
139cdf0e10cSrcweir		-reference:$(CLI_BASETYPES) \
140cdf0e10cSrcweir		-reference:$(CLI_URE) \
141cdf0e10cSrcweir		-reference:$(CLI_TYPES_BRIDGETEST) \
142cdf0e10cSrcweir		-reference:System.dll \
143cdf0e10cSrcweir		-reference:System.Drawing.dll \
144cdf0e10cSrcweir		-reference:System.Windows.Forms.dll \
145cdf0e10cSrcweir		cli_vb_bridgetest.vb
146cdf0e10cSrcweir
147cdf0e10cSrcweir$(BIN)$/cli_vb_testobj.uno.dll : \
148cdf0e10cSrcweir		cli_vb_testobj.vb \
149cdf0e10cSrcweir		$(CLI_BASETYPES) \
150cdf0e10cSrcweir		$(CLI_URETYPES) \
151cdf0e10cSrcweir		$(CLI_URE)
152cdf0e10cSrcweir	$(VBC) $(VBC_FLAGS) \
153cdf0e10cSrcweir		-target:library \
154cdf0e10cSrcweir		-out:$@ \
155cdf0e10cSrcweir		-reference:$(CLI_BASETYPES) \
156cdf0e10cSrcweir		-reference:$(CLI_URETYPES) \
157cdf0e10cSrcweir		-reference:$(CLI_URE) \
158cdf0e10cSrcweir		-reference:$(CLI_TYPES_BRIDGETEST) \
159cdf0e10cSrcweir		-reference:System.dll \
160cdf0e10cSrcweir		-reference:System.Drawing.dll \
161cdf0e10cSrcweir		-reference:System.Windows.Forms.dll \
162cdf0e10cSrcweir		cli_vb_testobj.vb
163cdf0e10cSrcweir
164cdf0e10cSrcweir$(MISC)$/copyassemblies.done .ERRREMOVE:
165cdf0e10cSrcweir    $(GNUCOPY) $(CLI_CPPUHELPER) $(BIN)$/$(CLI_CPPUHELPER:f)
166cdf0e10cSrcweir    $(GNUCOPY) $(CLI_BASETYPES) $(BIN)$/$(CLI_BASETYPES:f)
167cdf0e10cSrcweir    $(GNUCOPY) $(CLI_URETYPES) $(BIN)$/$(CLI_URETYPES:f)
168cdf0e10cSrcweir    $(GNUCOPY) $(CLI_URE) $(BIN)$/$(CLI_URE:f)
169cdf0e10cSrcweir    $(GNUCOPY) $(CLI_OOOTYPES) $(BIN)$/$(CLI_OOOTYPES:f)
170cdf0e10cSrcweir    $(TOUCH) $@
171cdf0e10cSrcweir
172cdf0e10cSrcweir$(BIN)$/cli_bridgetest_inprocess.exe : \
173cdf0e10cSrcweir		cli_bridgetest_inprocess.cs \
174cdf0e10cSrcweir		$(BIN)$/cli_cs_bridgetest.uno.dll \
175cdf0e10cSrcweir		$(BIN)$/cli_cs_testobj.uno.dll \
176cdf0e10cSrcweir		$(BIN)$/cli_vb_bridgetest.uno.dll \
177cdf0e10cSrcweir		$(BIN)$/cli_vb_testobj.uno.dll \
178cdf0e10cSrcweir		$(BIN)$/cli_cpp_bridgetest.uno.dll \
179cdf0e10cSrcweir		$(MISC)$/copyassemblies.done \
180cdf0e10cSrcweir		$(CLI_BASETYPES) \
181cdf0e10cSrcweir		$(CLI_URETYPES) \
182cdf0e10cSrcweir		$(CLI_URE) \
183cdf0e10cSrcweir		$(CLI_CPPUHELPER)
184cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:exe -out:$@ \
185cdf0e10cSrcweir		-reference:$(CLI_TYPES_BRIDGETEST) \
186cdf0e10cSrcweir		-reference:$(CLI_BASETYPES) \
187cdf0e10cSrcweir		-reference:$(CLI_URETYPES) \
188cdf0e10cSrcweir		-reference:$(CLI_URE) \
189cdf0e10cSrcweir		-reference:$(CLI_CPPUHELPER) \
190cdf0e10cSrcweir		-reference:$(BIN)$/cli_cs_bridgetest.uno.dll \
191cdf0e10cSrcweir		-reference:$(BIN)$/cli_cs_testobj.uno.dll \
192cdf0e10cSrcweir		-reference:$(BIN)$/cli_vb_bridgetest.uno.dll \
193cdf0e10cSrcweir		-reference:$(BIN)$/cli_vb_testobj.uno.dll \
194cdf0e10cSrcweir		-reference:$(BIN)$/cli_cpp_bridgetest.uno.dll \
195cdf0e10cSrcweir		cli_bridgetest_inprocess.cs
196cdf0e10cSrcweir	$(GNUCOPY) cli_bridgetest_inprocess.ini $(BIN)
197cdf0e10cSrcweir
198cdf0e10cSrcweir.ENDIF
199cdf0e10cSrcweir
200