Add support for ToolsVersion and correctly build msbuild+xbuild assemblies
[mcs.git] / tools / xbuild / Makefile
blobda7a5bc766ce1edd993565582c19a23f472de3b7
1 thisdir = tools/xbuild
2 SUBDIRS =
3 include ../../build/rules.make
4 HAS_NUNIT_TEST = yes
6 ifeq (3.5, $(FRAMEWORK_VERSION))
7 NAME_SUFFIX = .v3.5
8 ASSEMBLY_VERSION = 3.5.0.0
9 else
10 ifeq (4.0, $(FRAMEWORK_VERSION))
11 NAME_SUFFIX = .v4.0
12 ASSEMBLY_VERSION = 4.0.0.0
13 endif
14 endif
16 LOCAL_MCS_FLAGS = -r:Microsoft.Build.Framework.dll -r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll -r:Microsoft.Build.Engine.dll
17 PROGRAM = $(topdir)/class/lib/$(PROFILE)/xbuild.exe
19 include ../../build/executable.make
21 CLEAN_FILES= xbuild.exe xbuild.exe.mdb
23 XBUILD_DIR=.
24 include $(XBUILD_DIR)/xbuild_targets.make
26 install-local: install-extras
28 WEBAPP_DIR = Microsoft/VisualStudio/v9.0/WebApplications
29 EXTRAS_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
30 install-extras:
31 $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)
32 $(INSTALL_DATA) xbuild/xbuild.rsp $(DESTDIR)$(EXTRAS_DIR)
33 $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(EXTRAS_DIR)
34 $(INSTALL_DATA) xbuild/Microsoft.Build.xsd $(DESTDIR)$(EXTRAS_DIR)
35 $(INSTALL_DATA) xbuild/Microsoft.Common.targets $(DESTDIR)$(EXTRAS_DIR)
36 $(INSTALL_DATA) xbuild/Microsoft.CSharp.targets $(DESTDIR)$(EXTRAS_DIR)
37 $(INSTALL_DATA) xbuild/Microsoft.VisualBasic.targets $(DESTDIR)$(EXTRAS_DIR)
38 $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)/MSBuild
39 $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
40 $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.Core.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
41 $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild
42 $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
43 $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
45 EXTRA_DISTFILES = \
46 xbuild/xbuild.rsp \
47 xbuild/2.0/Microsoft.Common.tasks \
48 xbuild/3.5/Microsoft.Common.tasks \
49 xbuild/4.0/Microsoft.Common.tasks \
50 xbuild/Microsoft.Build.xsd \
51 xbuild/Microsoft.CSharp.targets \
52 xbuild/Microsoft.Common.targets \
53 xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd \
54 xbuild/MSBuild/Microsoft.Build.Core.xsd \
55 xbuild/Microsoft.VisualBasic.targets \
56 xbuild/Microsoft.WebApplication.targets