Add [Category ("NotWorking")] to failing test.
[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
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 $(DESTDIR)$(mono_libdir)/mono/3.5 $(DESTDIR)$(mono_libdir)/mono/4.0
41         $(INSTALL_DATA) xbuild/xbuild.rsp $(DESTDIR)$(mono_libdir)/mono/$(FRAMEWORK_VERSION)
42         $(INSTALL_DATA) xbuild/$(INSTALL_FRAMEWORK_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(EXTRAS_DIR)
43         $(INSTALL_DATA) xbuild/$(INSTALL_FRAMEWORK_VERSION)/Microsoft.Common.targets $(DESTDIR)$(EXTRAS_DIR)
44         $(INSTALL_DATA) xbuild/Microsoft.Build.xsd $(DESTDIR)$(EXTRAS_DIR)
45         $(INSTALL_DATA) xbuild/2.0/Microsoft.Common.targets $(DESTDIR)$(mono_libdir)/mono/2.0
46         $(INSTALL_DATA) xbuild/3.5/Microsoft.Common.targets $(DESTDIR)$(mono_libdir)/mono/3.5
47         $(INSTALL_DATA) xbuild/Microsoft.CSharp.targets $(DESTDIR)$(EXTRAS_DIR)
48         $(INSTALL_DATA) xbuild/Microsoft.VisualBasic.targets $(DESTDIR)$(EXTRAS_DIR)
49         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/FrameworkList.xml $(DESTDIR)$(REDISTLIST_DIR)
50         $(INSTALL_DATA) xbuild/4.0/FrameworkList.xml $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v4.0/RedistList/FrameworkList.xml
51         $(INSTALL_DATA) xbuild/FrameworkList-3.0.xml $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v3.0/RedistList/FrameworkList.xml
52         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)/MSBuild
53         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
54         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.Core.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
55         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild
56         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)/v9.0/WebApplications
57         $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)/v9.0/WebApplications
58         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)/v10.0/WebApplications
59         $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)/v10.0/WebApplications
60         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)/v11.0/WebApplications
61         $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)/v11.0/WebApplications
62         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
63         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
64         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
65         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
66         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
67         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
68         sed -e 's/@SILVERLIGHT_VERSION@/2.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0/Microsoft.Silverlight.Common.targets
69         sed -e 's/@SILVERLIGHT_VERSION@/3.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0/Microsoft.Silverlight.Common.targets
70         $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_DIR)/v4.0
71         $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_DIR)/v4.5
72         $(INSTALL_DATA) xbuild/4.0/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_DIR)/v4.0
73         $(INSTALL_DATA) xbuild/4.5/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_DIR)/v4.5
74         $(INSTALL_DATA) xbuild/Microsoft.Portable.CSharp.targets $(DESTDIR)$(mono_libdir)/mono/4.0
75
76 EXTRA_DISTFILES = \
77         xbuild/xbuild.rsp \
78         xbuild/2.0/Microsoft.Common.tasks \
79         xbuild/3.5/Microsoft.Common.tasks \
80         xbuild/4.0/Microsoft.Common.tasks \
81         xbuild/2.0/Microsoft.Common.targets \
82         xbuild/3.5/Microsoft.Common.targets \
83         xbuild/4.0/Microsoft.Common.targets \
84         xbuild/4.0/Microsoft.Portable.CSharp.targets \
85         xbuild/4.5/Microsoft.Portable.CSharp.targets \
86         xbuild/2.0/FrameworkList.xml \
87         xbuild/3.5/FrameworkList.xml \
88         xbuild/4.0/FrameworkList.xml \
89         xbuild/4.5/FrameworkList.xml \
90         xbuild/FrameworkList-3.0.xml \
91         xbuild/Microsoft.Build.xsd \
92         xbuild/Microsoft.CSharp.targets \
93         xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd \
94         xbuild/MSBuild/Microsoft.Build.Core.xsd         \
95         xbuild/Microsoft.VisualBasic.targets \
96         xbuild/Microsoft.WebApplication.targets \
97         xbuild/Microsoft.Silverlight.Common.targets \
98         xbuild/Microsoft.Silverlight.CSharp.targets \
99         xbuild/Microsoft.Silverlight.VisualBasic.targets \
100         xbuild/Microsoft.Portable.CSharp.targets \
101         xbuild_targets.make