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 # Builds the WriterDemo examples of the Developers Guide.
22 SETTINGS
= $(PRJ
)/settings
24 include $(SETTINGS
)/settings.mk
25 include $(SETTINGS
)/std.mk
27 CSC_FLAGS
= -warnaserror
+ -incremental-
-noconfig
28 VBC_FLAGS
= -warnaserror
+
31 CSC_FLAGS
+= -debug
+ -checked
+ -define:DEBUG
-define:TRACE
32 VBC_FLAGS
+= -debug
+ -define:DEBUG
=1 -define:TRACE
=1
37 WRITERDEMO_OUT
:= $(OUT_BIN
)/VB_dotNET_WriterDemo
43 include $(SETTINGS
)/stdtarget.mk
46 $(WRITERDEMO_OUT
)/%.exe
: %.vb
47 -$(MKDIR
) $(subst /,$(PS
),$(@D
))
51 -libpath
:"$(PRJ)\cli" \
52 -reference
:cli_basetypes.dll \
53 -reference
:cli_uretypes.dll \
54 -reference
:cli_oootypes.dll \
55 -reference
:cli_ure.dll \
56 -reference
:cli_cppuhelper.dll \
57 -reference
:System.dll \
58 -reference
:System.Drawing.dll \
59 -reference
:System.Windows.Forms.dll \
63 WriterDemo
: $(WRITERDEMO_OUT
)/WriterDemo.exe
64 @echo
-------------------------------------------------------------------------------
65 @echo Please use the following command to execute the example
!
67 @echo
$(MAKE
) WriterDemo.run
68 @echo
-------------------------------------------------------------------------------
71 @echo
--------------------------------------------------------------------------------
72 @echo This example works only under Windows
!
73 @echo
--------------------------------------------------------------------------------
76 %.run
: $(WRITERDEMO_OUT
)/%.exe
77 @echo
-------------------------------------------------------------------------------
78 @echo Executing sample
$@
$(UNORC
) $(CONNECT_STRING
)...
79 @echo
-------------------------------------------------------------------------------
80 cd
$(subst /,\\,$(WRITERDEMO_OUT
)) && $(basename $@
).exe
84 -$(DELRECURSIVE
) $(subst /,$(PS
),$(OUT_BIN
)/VB_dotNET_WriterDemo
)