Added Symbolicate tool.
[mono.git] / mcs / tools / xbuild / xbuild_test.make
1 XBUILD_DATA_DIR=$(topdir)/tools/xbuild/data
2 XBUILD_PROFILE_DIR=$(topdir)/class/lib/$(PROFILE)
3
4 # makes xbuild look in the class/lib/$PROFILE build directories for targets etc
5 export TESTING_MONO=a
6
7 ifeq (4.0, $(FRAMEWORK_VERSION))
8 NO_TEST=true
9 else
10 test-local: copy-targets $(test_lib).config
11 clean-local: clean-targets clean-test-config
12 endif
13
14 xbuild-net4-fail:
15         @echo "The net_4_0 profile contains reference assemblies only and cannot be installed/tested as an xbuild toolset"
16         @exit 1
17
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
20
21 clean-test-config:
22         rm -f $(test_lib).config
23
24 copy-targets: copy-targets-$(XBUILD_VERSION)
25
26 clean-targets: clean-targets-$(XBUILD_VERSION)
27
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_5
31 XBUILD_12_0_PROFILE_DIR=$(topdir)/class/lib/xbuild_12
32 XBUILD_14_0_PROFILE_DIR=$(topdir)/class/lib/xbuild_14
33
34 copy-targets-2.0:
35         cp $(XBUILD_DATA_DIR)/2.0/Microsoft.Common.targets $(XBUILD_2_0_PROFILE_DIR)
36         cp $(XBUILD_DATA_DIR)/2.0/Microsoft.Common.tasks $(XBUILD_2_0_PROFILE_DIR)
37         cp $(XBUILD_DATA_DIR)/2.0/Microsoft.CSharp.targets $(XBUILD_2_0_PROFILE_DIR)
38         cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_2_0_PROFILE_DIR)
39
40 copy-targets-3.5:
41         cp $(XBUILD_DATA_DIR)/3.5/Microsoft.Common.targets $(XBUILD_3_5_PROFILE_DIR)
42         cp $(XBUILD_DATA_DIR)/3.5/Microsoft.Common.tasks $(XBUILD_3_5_PROFILE_DIR)
43         cp $(XBUILD_DATA_DIR)/3.5/Microsoft.CSharp.targets $(XBUILD_3_5_PROFILE_DIR)
44         cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_3_5_PROFILE_DIR)
45
46 copy-targets-4.0:
47         cp $(XBUILD_DATA_DIR)/4.0/Microsoft.Common.targets $(XBUILD_4_0_PROFILE_DIR)
48         cp $(XBUILD_DATA_DIR)/4.0/Microsoft.Common.tasks $(XBUILD_4_0_PROFILE_DIR)
49         cp $(XBUILD_DATA_DIR)/4.0/Microsoft.CSharp.targets $(XBUILD_4_0_PROFILE_DIR)
50         cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_4_0_PROFILE_DIR)
51
52 copy-targets-12.0:
53         cp $(XBUILD_DATA_DIR)/12.0/Microsoft.Common.targets $(XBUILD_12_0_PROFILE_DIR)
54         cp $(XBUILD_DATA_DIR)/12.0/Microsoft.Common.tasks $(XBUILD_12_0_PROFILE_DIR)
55         cp $(XBUILD_DATA_DIR)/12.0/Microsoft.CSharp.targets $(XBUILD_12_0_PROFILE_DIR)
56         cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_12_0_PROFILE_DIR)
57
58 copy-targets-14.0:
59         cp $(XBUILD_DATA_DIR)/14.0/Microsoft.Common.targets $(XBUILD_14_0_PROFILE_DIR)
60         cp $(XBUILD_DATA_DIR)/14.0/Microsoft.Common.tasks $(XBUILD_14_0_PROFILE_DIR)
61         cp $(XBUILD_DATA_DIR)/14.0/Microsoft.CSharp.targets $(XBUILD_14_0_PROFILE_DIR)
62         cp $(XBUILD_DATA_DIR)/Microsoft.VisualBasic.targets $(XBUILD_14_0_PROFILE_DIR)
63
64 clean-targets-2.0:
65         rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.Common.targets
66         rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.Common.tasks
67         rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.CSharp.targets
68         rm -f $(XBUILD_2_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
69
70 clean-targets-3.5:
71         rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.Common.targets
72         rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.Common.tasks
73         rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.CSharp.targets
74         rm -f $(XBUILD_3_5_PROFILE_DIR)/Microsoft.VisualBasic.targets
75
76 clean-targets-4.0:
77         rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.Common.targets
78         rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.Common.tasks
79         rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.CSharp.targets
80         rm -f $(XBUILD_4_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
81
82 clean-targets-12.0:
83         rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.Common.targets
84         rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.Common.tasks
85         rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.CSharp.targets
86         rm -f $(XBUILD_12_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
87
88 clean-targets-14.0:
89         rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.Common.targets
90         rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.Common.tasks
91         rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.CSharp.targets
92         rm -f $(XBUILD_14_0_PROFILE_DIR)/Microsoft.VisualBasic.targets
93
94 #allow tests to find older versions of libs and targets
95 ifneq (2.0, $(XBUILD_VERSION))
96 TEST_MONO_PATH := $(topdir)/class/lib/net_2_0
97 copy-targets: copy-targets-2.0
98 clean-targets: clean-targets-2.0
99 ifneq (3.5, $(XBUILD_VERSION))
100 TEST_MONO_PATH := $(topdir)/class/lib/net_3_5$(PLATFORM_PATH_SEPARATOR)$(TEST_MONO_PATH)
101 copy-targets: copy-targets-3.5
102 clean-targets: clean-targets-3.5
103 ifneq (4.0, $(XBUILD_VERSION))
104 TEST_MONO_PATH := $(topdir)/class/lib/net_4_5$(PLATFORM_PATH_SEPARATOR)$(TEST_MONO_PATH)
105 copy-targets: copy-targets-4.0
106 clean-targets: clean-targets-4.0
107 endif
108 endif
109 endif