[xbuild] Fix bug #665004. Honor /nologo option.
[mono.git] / mcs / tools / xbuild / Makefile
1 thisdir = tools/xbuild
2 SUBDIRS = 
3 include ../../build/rules.make
4 HAS_NUNIT_TEST = yes
5
6 BUILD_FRAMEWORK = Microsoft.Build.Framework.dll
7 BUILD_ENGINE = Microsoft.Build.Engine.dll
8
9 ifeq (3.5, $(FRAMEWORK_VERSION))
10 NAME_SUFFIX = .v3.5
11 ASSEMBLY_VERSION = 3.5.0.0
12 BUILD_FRAMEWORK := $(topdir)/class/lib/$(PROFILE)/$(BUILD_FRAMEWORK)
13 BUILD_ENGINE := $(topdir)/class/lib/$(PROFILE)/$(BUILD_ENGINE)
14 else
15 ifeq (4.0, $(FRAMEWORK_VERSION))
16 NAME_SUFFIX = .v4.0
17 ASSEMBLY_VERSION = 4.0.0.0
18 endif
19 endif
20
21 LOCAL_MCS_FLAGS = -r:$(BUILD_FRAMEWORK) -r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll -r:$(BUILD_ENGINE)
22 PROGRAM = $(topdir)/class/lib/$(PROFILE)/xbuild.exe
23
24 include ../../build/executable.make
25
26 CLEAN_FILES= xbuild.exe xbuild.exe.mdb
27
28 XBUILD_DIR=.
29 include $(XBUILD_DIR)/xbuild_targets.make
30
31 install-local:  install-extras
32
33 WEBAPP_DIR = Microsoft/VisualStudio/v9.0/WebApplications
34 SILVERLIGHT_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Silverlight
35 EXTRAS_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
36 install-extras: 
37         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)
38         $(INSTALL_DATA) xbuild/xbuild.rsp $(DESTDIR)$(EXTRAS_DIR)
39         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(EXTRAS_DIR)
40         $(INSTALL_DATA) xbuild/Microsoft.Build.xsd $(DESTDIR)$(EXTRAS_DIR)
41         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.targets $(DESTDIR)$(EXTRAS_DIR)
42         $(INSTALL_DATA) xbuild/Microsoft.CSharp.targets $(DESTDIR)$(EXTRAS_DIR)
43         $(INSTALL_DATA) xbuild/Microsoft.VisualBasic.targets $(DESTDIR)$(EXTRAS_DIR)
44         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)/MSBuild
45         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
46         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.Core.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
47         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild
48         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
49         $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
50         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
51         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
52         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
53         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
54         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
55         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
56         sed -e 's/@SILVERLIGHT_VERSION@/2.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0/Microsoft.Silverlight.Common.targets
57         sed -e 's/@SILVERLIGHT_VERSION@/3.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0/Microsoft.Silverlight.Common.targets
58
59 EXTRA_DISTFILES = \
60         xbuild/xbuild.rsp \
61         xbuild/2.0/Microsoft.Common.tasks \
62         xbuild/3.5/Microsoft.Common.tasks \
63         xbuild/4.0/Microsoft.Common.tasks \
64         xbuild/2.0/Microsoft.Common.targets \
65         xbuild/3.5/Microsoft.Common.targets \
66         xbuild/4.0/Microsoft.Common.targets \
67         xbuild/Microsoft.Build.xsd \
68         xbuild/Microsoft.CSharp.targets \
69         xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd \
70         xbuild/MSBuild/Microsoft.Build.Core.xsd         \
71         xbuild/Microsoft.VisualBasic.targets \
72         xbuild/Microsoft.WebApplication.targets \
73         xbuild/Microsoft.Silverlight.Common.targets \
74         xbuild/Microsoft.Silverlight.CSharp.targets \
75         xbuild/Microsoft.Silverlight.VisualBasic.targets \
76         xbuild_targets.make