forked from dotnet/iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
39 lines (29 loc) · 1.98 KB
/
build.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
<Project Sdk="Microsoft.Build.Traversal">
<PropertyGroup>
<BuildRestore Condition="'$(BuildRestore)'==''">true</BuildRestore>
<ProductBuild Condition="'$(ProductBuild)'==''">true</ProductBuild>
<ToolsBuild Condition="'$(ToolsBuild)'==''">true</ToolsBuild>
<SampleBuild Condition="'$(SampleBuild)'==''">true</SampleBuild>
<BuildTests Condition="'$(BuildTests)'==''">true</BuildTests>
<BuildPackages Condition="'$(BuildPackages)'==''">false</BuildPackages>
</PropertyGroup>
<ItemGroup>
<!-- Build product -->
<UnitTestProjects Include="$(MSBuildThisFileDirectory)src\devices\**\*.Tests.csproj" />
<_BuildProductProjects Include="$(MSBuildThisFileDirectory)src\**\*.csproj" Exclude="@(_ExcludeBuildProductProjects);@(UnitTestProjects)" />
<ProjectReference Condition="'$(ProductBuild)' == 'true'" Include="@(_BuildProductProjects)" />
<!-- Build tools -->
<_BuildToolProjects Include="$(MSBuildThisFileDirectory)tools\**\*.csproj" />
<ProjectReference Condition="'$(ToolsBuild)' == 'true'" Include="@(_BuildToolProjects)" />
<!-- Build samples -->
<_ExcludeBuildSampleProjects Include="$(MSBuildThisFileDirectory)samples\serialport-arduino\arduino-demo.csproj" />
<_BuildSampleProjects Include="$(MSBuildThisFileDirectory)samples\**\*.csproj" Exclude="@(_ExcludeBuildSampleProjects)" />
<ProjectReference Condition="'$(SampleBuild)' == 'true'" Include="@(_BuildSampleProjects)" />
<!-- Build tests -->
<ProjectReference Condition="'$(BuildTests)' == 'true'" Include="@(UnitTestProjects)" Targets="VSTest" />
<!-- Run Pack -->
<_ProjectsToPackage Include="$(MSBuildThisFileDirectory)src\Iot.Device.Bindings\Iot.Device.Bindings.csproj" />
<_ProjectsToPackage Include="$(MSBuildThisFileDirectory)src\System.Device.Gpio\System.Device.Gpio.csproj" />
<ProjectReference Condition="'$(BuildPackages)' == 'true'" Include="@(_ProjectsToPackage)" Targets="Pack" />
</ItemGroup>
</Project>