tdf#130857 qt weld: Introduce QtInstanceScrolledWindow
[LibreOffice.git] / odk / examples / CLI / VB.NET / WriterDemo / Makefile
blobb7425b3487151871c45ca959d7b30faceadb8488
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.
21 PRJ = ../../../..
22 SETTINGS = $(PRJ)/settings
24 include $(SETTINGS)/settings.mk
25 include $(SETTINGS)/std.mk
27 CSC_FLAGS = -warnaserror+ -incremental- -noconfig
28 VBC_FLAGS = -warnaserror+
29 ifeq "$(DEBUG)" "yes"
30 CC_FLAGS+=-Zi -MT
31 CSC_FLAGS += -debug+ -checked+ -define:DEBUG -define:TRACE
32 VBC_FLAGS += -debug+ -define:DEBUG=1 -define:TRACE=1
33 else
34 CSC_FLAGS += -o
35 endif
37 WRITERDEMO_OUT:= $(OUT_BIN)/VB_dotNET_WriterDemo
39 # Targets
40 .PHONY : ALL
41 ALL : WriterDemo
43 include $(SETTINGS)/stdtarget.mk
45 # build executables
46 $(WRITERDEMO_OUT)/%.exe: %.vb
47 -$(MKDIR) $(subst /,$(PS),$(@D))
48 vbc $(VBC_FLAGS) \
49 -target:exe \
50 -out:$@ \
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 \
62 ifeq "$(OS)" "WIN"
63 WriterDemo : $(WRITERDEMO_OUT)/WriterDemo.exe
64 @echo -------------------------------------------------------------------------------
65 @echo Please use the following command to execute the example!
66 @echo -
67 @echo $(MAKE) WriterDemo.run
68 @echo -------------------------------------------------------------------------------
69 else
70 WriterDemo :
71 @echo --------------------------------------------------------------------------------
72 @echo This example works only under Windows!
73 @echo --------------------------------------------------------------------------------
74 endif
76 %.run : $(WRITERDEMO_OUT)/%.exe
77 @echo -------------------------------------------------------------------------------
78 @echo Executing sample $@ $(UNORC) $(CONNECT_STRING)...
79 @echo -------------------------------------------------------------------------------
80 cd $(subst /,\\,$(WRITERDEMO_OUT)) && $(basename $@).exe
82 .PHONY: clean
83 clean :
84 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_BIN)/VB_dotNET_WriterDemo)