Added tests for Task.WhenAll w/ empty list
[mono.git] / mcs / tools / xbuild / Makefile
1 thisdir = tools/xbuild
2 SUBDIRS = 
3 include ../../build/rules.make
4 NO_TESTS = yes
5
6 BUILD_FRAMEWORK = Microsoft.Build.Framework.dll
7 BUILD_ENGINE = Microsoft.Build.Engine.dll
8 INSTALL_FRAMEWORK_VERSION = $(FRAMEWORK_VERSION)
9
10 ifeq (3.5, $(FRAMEWORK_VERSION))
11 NAME_SUFFIX = .v3.5
12 ASSEMBLY_VERSION = 3.5.0.0
13 BUILD_FRAMEWORK := $(topdir)/class/lib/$(PROFILE)/$(BUILD_FRAMEWORK)
14 BUILD_ENGINE := $(topdir)/class/lib/$(PROFILE)/$(BUILD_ENGINE)
15 else
16 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
17 NAME_SUFFIX = .v4.0
18 ASSEMBLY_VERSION = 4.0.0.0
19 INSTALL_FRAMEWORK_VERSION = 4.0
20 endif
21 endif
22
23 LOCAL_MCS_FLAGS = -r:$(BUILD_FRAMEWORK) -r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll -r:$(BUILD_ENGINE)
24 PROGRAM = xbuild.exe
25
26 include ../../build/executable.make
27
28 XBUILD_DIR=.
29 XBUILD_FRAMEWORKS_DIR=$(mono_libdir)/mono/xbuild-frameworks/.NETFramework/
30 REDISTLIST_DIR=$(XBUILD_FRAMEWORKS_DIR)/v$(FRAMEWORK_VERSION)/RedistList
31 include $(XBUILD_DIR)/xbuild_targets.make
32
33 install-local:  install-extras
34
35 WEBAPP_DIR = Microsoft/VisualStudio/v9.0/WebApplications
36 SILVERLIGHT_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Silverlight
37 PORTABLE_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Portable
38 EXTRAS_DIR = $(mono_libdir)/mono/$(INSTALL_FRAMEWORK_VERSION)
39 install-extras: 
40         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR) $(DESTDIR)$(REDISTLIST_DIR) $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v3.0/RedistList $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v4.0/RedistList
41         $(INSTALL_DATA) xbuild/xbuild.rsp $(DESTDIR)$(mono_libdir)/mono/$(FRAMEWORK_VERSION)
42         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(EXTRAS_DIR)
43         $(INSTALL_DATA) xbuild/Microsoft.Build.xsd $(DESTDIR)$(EXTRAS_DIR)
44         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.targets $(DESTDIR)$(EXTRAS_DIR)
45         $(INSTALL_DATA) xbuild/Microsoft.CSharp.targets $(DESTDIR)$(EXTRAS_DIR)
46         $(INSTALL_DATA) xbuild/Microsoft.VisualBasic.targets $(DESTDIR)$(EXTRAS_DIR)
47         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/FrameworkList.xml $(DESTDIR)$(REDISTLIST_DIR)
48         $(INSTALL_DATA) xbuild/4.0/FrameworkList.xml $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v4.0/RedistList/FrameworkList.xml
49         $(INSTALL_DATA) xbuild/FrameworkList-3.0.xml $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v3.0/RedistList/FrameworkList.xml
50         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)/MSBuild
51         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
52         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.Core.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
53         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild
54         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
55         $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
56         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
57         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
58         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
59         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
60         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
61         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
62         sed -e 's/@SILVERLIGHT_VERSION@/2.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0/Microsoft.Silverlight.Common.targets
63         sed -e 's/@SILVERLIGHT_VERSION@/3.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0/Microsoft.Silverlight.Common.targets
64         $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_DIR)/v4.0
65         $(INSTALL_DATA) xbuild/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_DIR)/v4.0
66
67 EXTRA_DISTFILES = \
68         xbuild/xbuild.rsp \
69         xbuild/2.0/Microsoft.Common.tasks \
70         xbuild/3.5/Microsoft.Common.tasks \
71         xbuild/4.0/Microsoft.Common.tasks \
72         xbuild/4.5/Microsoft.Common.tasks \
73         xbuild/2.0/Microsoft.Common.targets \
74         xbuild/3.5/Microsoft.Common.targets \
75         xbuild/4.0/Microsoft.Common.targets \
76         xbuild/4.5/Microsoft.Common.targets \
77         xbuild/2.0/FrameworkList.xml \
78         xbuild/3.5/FrameworkList.xml \
79         xbuild/4.0/FrameworkList.xml \
80         xbuild/4.5/FrameworkList.xml \
81         xbuild/FrameworkList-3.0.xml \
82         xbuild/Microsoft.Build.xsd \
83         xbuild/Microsoft.CSharp.targets \
84         xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd \
85         xbuild/MSBuild/Microsoft.Build.Core.xsd         \
86         xbuild/Microsoft.VisualBasic.targets \
87         xbuild/Microsoft.WebApplication.targets \
88         xbuild/Microsoft.Silverlight.Common.targets \
89         xbuild/Microsoft.Silverlight.CSharp.targets \
90         xbuild/Microsoft.Silverlight.VisualBasic.targets \
91         xbuild/Microsoft.Portable.CSharp.targets \
92         xbuild_targets.make