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
7 ifeq (4.0, $(FRAMEWORK_VERSION))
10 test-local: copy-targets $(test_lib).config
11 clean-local: clean-targets clean-test-config
15 @echo "The net_4_0 profile contains reference assemblies only and cannot be installed/tested as an xbuild toolset"
18 $(test_lib).config: $(XBUILD_DATA_DIR)/xbuild.exe.config.in
19 sed -e 's/@ASM_VERSION@/$(XBUILD_ASSEMBLY_VERSION)/g' $(XBUILD_DATA_DIR)/xbuild.exe.config.in > $(test_lib).config
22 rm -f $(test_lib).config
24 copy-targets: copy-targets-$(XBUILD_VERSION)
26 clean-targets: clean-targets-$(XBUILD_VERSION)
28 XBUILD_2_0_PROFILE_DIR=$(topdir)/class/lib/net_2_0
29 XBUILD_3_5_PROFILE_DIR=$(topdir)/class/lib/net_3_5
30 XBUILD_4_0_PROFILE_DIR=$(topdir)/class/lib/net_4_0
31 XBUILD_12_0_PROFILE_DIR=$(topdir)/class/lib/xbuild_12
34 cp $(XBUILD_DATA_DIR)/2.0/Microsoft.Common.targets $(XBUILD_2_0_PROFILE_DIR)
35 cp $(XBUILD_DATA_DIR)/2.0/Microsoft.Common.tasks $(XBUILD_2_0_PROFILE_DIR)
36 cp $(XBUILD_DATA_DIR)/Microsoft.CSharp.targets $(XBUILD_2_0_PROFILE_DIR)
37 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_2_0_PROFILE_DIR)
40 cp $(XBUILD_DATA_DIR)/3.5/Microsoft.Common.targets $(XBUILD_3_5_PROFILE_DIR)
41 cp $(XBUILD_DATA_DIR)/3.5/Microsoft.Common.tasks $(XBUILD_3_5_PROFILE_DIR)
42 cp $(XBUILD_DATA_DIR)/Microsoft.CSharp.targets $(XBUILD_3_5_PROFILE_DIR)
43 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_3_5_PROFILE_DIR)
46 cp $(XBUILD_DATA_DIR)/4.0/Microsoft.Common.targets $(XBUILD_4_0_PROFILE_DIR)
47 cp $(XBUILD_DATA_DIR)/4.0/Microsoft.Common.tasks $(XBUILD_4_0_PROFILE_DIR)
48 cp $(XBUILD_DATA_DIR)/Microsoft.CSharp.targets $(XBUILD_4_0_PROFILE_DIR)
49 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_4_0_PROFILE_DIR)
52 cp $(XBUILD_DATA_DIR)/12.0/Microsoft.Common.targets $(XBUILD_12_0_PROFILE_DIR)
53 cp $(XBUILD_DATA_DIR)/12.0/Microsoft.Common.tasks $(XBUILD_12_0_PROFILE_DIR)
54 cp $(XBUILD_DATA_DIR)/Microsoft.CSharp.targets $(XBUILD_12_0_PROFILE_DIR)
55 cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_12_0_PROFILE_DIR)
58 rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.Common.targets
59 rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.Common.tasks
60 rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.CSharp.targets
61 rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
64 rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.Common.targets
65 rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.Common.tasks
66 rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.CSharp.targets
67 rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.VisualBasic.targets
70 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.Common.targets
71 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.Common.tasks
72 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.CSharp.targets
73 rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
76 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.Common.targets
77 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.Common.tasks
78 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.CSharp.targets
79 rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
81 #allow tests to find older versions of libs and targets
82 ifneq (2.0, $(XBUILD_VERSION))
83 TEST_MONO_PATH := $(topdir)/class/lib/net_2_0
84 copy-targets: copy-targets-2.0
85 clean-targets: clean-targets-2.0
86 ifneq (3.5, $(XBUILD_VERSION))
87 TEST_MONO_PATH := $(topdir)/class/lib/net_3_5$(PLATFORM_PATH_SEPARATOR)$(TEST_MONO_PATH)
88 copy-targets: copy-targets-3.5
89 clean-targets: clean-targets-3.5
90 ifneq (4.0, $(XBUILD_VERSION))
91 TEST_MONO_PATH := $(topdir)/class/lib/net_4_5$(PLATFORM_PATH_SEPARATOR)$(TEST_MONO_PATH)
92 copy-targets: copy-targets-4.0
93 clean-targets: clean-targets-4.0