1 XBUILD_DATA_DIR=$(topdir)/tools/xbuild/data
2 XBUILD_PROFILE_DIR=$(topdir)/class/lib/$(PROFILE)
4 # makes xbuild look in the class/lib/$PROFILE build directories for targets etc
6 export MSBuildExtensionsPath=$(XBUILD_DATA_DIR)
7 export XBUILD_FRAMEWORK_FOLDERS_PATH= $(topdir)/class/Microsoft.Build/xbuild-testing
9 ifeq (4.0, $(FRAMEWORK_VERSION))
12 test-local: copy-targets $(test_lib).config
13 clean-local: clean-targets clean-test-config
17 @echo "The net_4_0 profile contains reference assemblies only and cannot be installed/tested as an xbuild toolset"
20 $(test_lib).config: $(XBUILD_DATA_DIR)/xbuild.exe.config.in
21 sed -e 's/@ASM_VERSION@/$(XBUILD_ASSEMBLY_VERSION)/g' $(XBUILD_DATA_DIR)/xbuild.exe.config.in > $(test_lib).config
24 rm -f $(test_lib).config
26 copy-targets: copy-targets-$(XBUILD_VERSION)
28 clean-targets: clean-targets-$(XBUILD_VERSION)
30 XBUILD_4_0_PROFILE_DIR=$(topdir)/class/lib/net_4_x
31 XBUILD_12_0_PROFILE_DIR=$(topdir)/class/lib/xbuild_12
32 XBUILD_14_0_PROFILE_DIR=$(topdir)/class/lib/xbuild_14
35 cp $(XBUILD_DATA_DIR)/4.0/Microsoft.Common.targets $(XBUILD_4_0_PROFILE_DIR)
36 cp $(XBUILD_DATA_DIR)/4.0/Microsoft.Common.tasks $(XBUILD_4_0_PROFILE_DIR)
37 cp $(XBUILD_DATA_DIR)/4.0/Microsoft.CSharp.targets $(XBUILD_4_0_PROFILE_DIR)
38 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_4_0_PROFILE_DIR)
41 cp $(XBUILD_DATA_DIR)/12.0/Microsoft.Common.targets $(XBUILD_12_0_PROFILE_DIR)
42 cp $(XBUILD_DATA_DIR)/12.0/Microsoft.Common.tasks $(XBUILD_12_0_PROFILE_DIR)
43 cp $(XBUILD_DATA_DIR)/12.0/Microsoft.CSharp.targets $(XBUILD_12_0_PROFILE_DIR)
44 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_12_0_PROFILE_DIR)
47 cp $(XBUILD_DATA_DIR)/14.0/Microsoft.Common.targets $(XBUILD_14_0_PROFILE_DIR)
48 cp $(XBUILD_DATA_DIR)/14.0/Microsoft.Common.tasks $(XBUILD_14_0_PROFILE_DIR)
49 cp $(XBUILD_DATA_DIR)/14.0/Microsoft.CSharp.targets $(XBUILD_14_0_PROFILE_DIR)
50 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_14_0_PROFILE_DIR)
53 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.Common.targets
54 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.Common.tasks
55 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.CSharp.targets
56 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
59 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.Common.targets
60 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.Common.tasks
61 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.CSharp.targets
62 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
65 rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.Common.targets
66 rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.Common.tasks
67 rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.CSharp.targets
68 rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
70 #allow tests to find older versions of libs and targets
71 ifneq (4.0, $(XBUILD_VERSION))
72 TEST_MONO_PATH := $(topdir)/class/lib/net_4_x$(PLATFORM_PATH_SEPARATOR)$(TEST_MONO_PATH)
73 copy-targets: copy-targets-4.0
74 clean-targets: clean-targets-4.0