This repository has been archived by the owner on Mar 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcxxreflect_all.proj
142 lines (122 loc) · 10.9 KB
/
cxxreflect_all.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="utf-8"?>
<!--
// Copyright James P. McNellis 2011 - 2013. //
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-->
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release;Platform=Win32 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=Win32</Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug;Platform=Win32 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=Win32 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release;Platform=x64 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=x64 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug;Platform=x64 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=x64 </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release;Platform=ARM </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=ARM </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug;Platform=ARM </Properties> </CxxReflectProjectToBuild>
<CxxReflectProjectToBuild Include="cxxreflect.sln"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=ARM </Properties> </CxxReflectProjectToBuild>
</ItemGroup>
<!-- TODO: Is there any way to avoid duplicating all of these entries here? -->
<ItemGroup>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release;Platform=Win32 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=Win32</Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug;Platform=Win32 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=Win32 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release;Platform=x64 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=x64 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug;Platform=x64 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=x64 </Properties> </CxxReflectProjectToUnitTest>
<!-- We do not build non-ZW test binaries for ARM -->
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=ARM </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\neutral\unit_tests_neutral.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=ARM </Properties> </CxxReflectProjectToUnitTest>
<!-- Note that the Windows Runtime unit tests only run for /ZW configurations -->
<CxxReflectProjectToUnitTest Include="tests\unit_tests\windows_runtime\unit_tests_windows_runtime.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=Win32</Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\windows_runtime\unit_tests_windows_runtime.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=Win32 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\windows_runtime\unit_tests_windows_runtime.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=x64 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\windows_runtime\unit_tests_windows_runtime.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=x64 </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\windows_runtime\unit_tests_windows_runtime.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release(ZW);Platform=ARM </Properties> </CxxReflectProjectToUnitTest>
<CxxReflectProjectToUnitTest Include="tests\unit_tests\windows_runtime\unit_tests_windows_runtime.vcxproj"> <Properties>SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Debug(ZW);Platform=ARM </Properties> </CxxReflectProjectToUnitTest>
</ItemGroup>
<!--
CxxReflectExecuteBuild is an internal target invoked by the public targets to build configurations.
-->
<Target Name="CxxReflectExecuteBuild">
<MSBuild Projects="@(CxxReflectProjectToBuild)" BuildInParallel="true" Targets="$(CxxReflectBuildCommand)" />
</Target>
<!--
CxxReflectExecuteUnitTests is an internal target invoked by the public targets to run unit tests.
-->
<Target Name="CxxReflectExecuteUnitTests">
<MSBuild Projects="@(CxxReflectProjectToUnitTest)" BuildInParallel="false" Targets="$(CxxReflectBuildCommand)" />
</Target>
<!--
Build builds all of the projects for all configurations of the Solution.
-->
<Target Name="Build">
<!--
First, we need to build the utilities that we use in the build process. These must be built
before the rest of the CxxReflect Solution. They will be built for each configuration as well,
but because the results get copied directly to the utility\ folder, we need to make sure a copy
of the executable is present before we begin the rest of the build.
(Actually, the full build is racy: multiple configuration builds will attempt to emplace the
utility binaries while those binaries may be in use. We ignore failures in the projects, so
this should not cause build failures.)
-->
<MSBuild
Projects="
utility\create_sln_from_filesystem\create_sln_from_filesystem.vcxproj;
utility\embed_binary_in_cpp\embed_binary_in_cpp.vcxproj;
utility\unit_test_tools\unit_test_client_tasks.vcxproj;
tests\assemblies\cil_assemblies\cil_assemblies.vcxproj"
Properties="SolutionDir=$(MSBuildProjectDirectory)\;Configuration=Release;Platform=Win32"
BuildInParallel="true"
/>
<!--
Then we can build the whole Solution (all configurations, specified above):
-->
<MSBuild
Projects="$(MSBuildProjectFile)"
Properties="CxxReflectBuildCommand=Build"
Targets="CxxReflectExecuteBuild"
/>
</Target>
<!--
Clean deletes all of the build output, intermediate build files, and app packages.
-->
<Target Name="Clean">
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=Clean" Targets="CxxReflectExecuteBuild" />
</Target>
<!--
RunLocalTests runs the unit tests for all x86 and amd64 configurations on the local machine.
-->
<Target Name="RunLocalTests">
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=CxxReflectRunLocalTests" Targets="CxxReflectExecuteUnitTests" />
</Target>
<!--
RunRemoteTests runs the unit tests for all ARM configurations on the remote ARM device.
-->
<Target Name="RunRemoteTests">
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=CxxReflectRunRemoteTests" Targets="CxxReflectExecuteUnitTests" />
</Target>
<!--
RunTests runs all of the unit tests, both locally for x86/amd64 and remotely for arm.
-->
<Target Name="RunTests">
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=CxxReflectRunLocalTests" Targets="CxxReflectExecuteUnitTests" />
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=CxxReflectRunRemoteTests" Targets="CxxReflectExecuteUnitTests" />
</Target>
<!--
VerifyBuild performs full verification of the library and should be run prior to integration. It
performs a clean build then runs all configurations of all unit tests (both locally for x86/amd64
and remotely for arm).
-->
<Target Name="VerifyBuild">
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=Clean" Targets="CxxReflectExecuteBuild" />
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=Build" Targets="CxxReflectExecuteBuild" />
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=CxxReflectRunLocalTests" Targets="CxxReflectExecuteUnitTests" />
<MSBuild Projects="$(MSBuildProjectFile)" Properties="CxxReflectBuildCommand=CxxReflectRunRemoteTests" Targets="CxxReflectExecuteUnitTests" />
</Target>
</Project>