1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
31 TARGET
=cli_cpp_bridgetest.uno
34 ENABLE_EXCEPTIONS
=TRUE
37 # disable caching to avoid stale objects
40 .EXPORT
: CCACHE_DISABLE
42 # --- Settings -----------------------------------------------------
44 .INCLUDE
: settings.mk
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
)
58 CFLAGSCXX
+= -clr
-AI
$(OUT
)$/bin
-AI
$(SOLARBINDIR
)
63 $(SLO
)$/cli_cpp_bridgetest.obj
65 SHL1OBJS
= $(SLOFILES
)
67 SHL1TARGET
= $(TARGET
)
69 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
70 DEF1NAME
= $(SHL1TARGET
)
74 # --- Targets ------------------------------------------------------
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
+
95 VBC_FLAGS
= -nowarn
:42030 -warnaserror
+
98 CSCFLAGS
+= -debug
+ -checked
+ -define:DEBUG
-define:TRACE
99 VBC_FLAGS
+= -debug
+ -define:DEBUG
=TRUE
-define:TRACE
=TRUE
101 CSCFLAGS
+= -optimize
102 VBC_FLAGS
+= -optimize
106 # C# ----------------------------------------------
107 $(BIN
)$/cli_cs_testobj.uno.dll
: \
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 \
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 \
133 # Visual Basic ------------------------------------------
134 $(BIN
)$/cli_vb_bridgetest.uno.dll
: \
135 cli_vb_bridgetest.vb \
139 $(VBC
) $(VBC_FLAGS
) \
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 \
151 $(BIN
)$/cli_vb_testobj.uno.dll
: \
156 $(VBC
) $(VBC_FLAGS
) \
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 \
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
)
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 \
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
)