-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathbuild.proj
100 lines (83 loc) · 4.57 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
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
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
</PropertyGroup>
<!-- Main Build Targets -->
<Target Name="Build" DependsOnTargets="BuildCore;BuildTools"/>
<Target Name="Clean" DependsOnTargets="CleanCore;CleanTools">
<RemoveDir Directories="build"/>
</Target>
<Target Name="NuGet" DependsOnTargets="PackBrightstarDBLibs;PackBrightstarDBCodegen;PackBrightstarDBBundle">
</Target>
<Target Name="BuildCore" DependsOnTargets="CompileCore">
<ItemGroup>
<CoreSDK Include="src\core\BrightstarDB\bin\$(Configuration)\**\*.dll" />
<CoreCodeGen Include="src\core\BrightstarDB.CodeGeneration.Console\bin\$(Configuration)\netcoreapp2.1\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(CoreSDK)" DestinationFolder="build\sdk\%(RecursiveDir)" />
<Copy SourceFiles="@(CoreCodeGen)" DestinationFolder="build\tools\codegen" />
</Target>
<Target Name="BuildServer" DependsOnTargets="CompileServer">
<!-- Not currently included in build output -->
<!--
<ItemGroup>
<ServerBinaries Include="src\core\BrightstarDB.Server.Runner\bin\$(Configuration)\*.dll;src\core\BrightstarDB.Server.Runner\bin\$(Configuration)\*.exe;src\core\BrightstarDB.Server.Runner\bin\$(Configuration)\*.exe.config"
Exclude="**\*.vshost.exe*"/>
<ServerAssets Include="src\core\BrightstarDB.Server.AspNet\assets\**\*.*" />
<ServerViews Include="src\core\BrightstarDB.Server.AspNet\views\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(ServerBinaries)" DestinationFolder="build\server" />
<Copy SourceFiles="@(ServerAssets)"
DestinationFiles="@(ServerAssets->'build\server\assets\%(RecursiveDir)\%(Filename)%(Extension)')" />
<Copy SourceFiles="@(ServerViews)"
DestinationFiles="@(ServerViews->'build\server\views\%(RecursiveDir)\%(Filename)%(Extension)')" />
-->
</Target>
<Target Name="BuildOData" DependsOnTargets="CompileOData">
<!-- Not currently included in the build output -->
</Target>
<Target Name="BuildTools" DependsOnTargets="CompileTools" Condition=" '$(OS)' != 'Unix' ">
<ItemGroup>
<PolarisBinaries Include="src\tools\Polaris\BrightstarDB.Polaris\bin\$(Configuration)\*.dll;src\tools\Polaris\BrightstarDB.Polaris\bin\$(Configuration)\*.exe;src\tools\Polaris\BrightstarDB.Polaris\bin\$(Configuration)\*.exe.config"
Exclude="**\*.vshost.exe*" />
</ItemGroup>
<Copy SourceFiles="@(PolarisBinaries)" DestinationFolder="build\tools\polaris" />
</Target>
<!-- Sub-targets -->
<Target Name="CompileCore">
<MSBuild Projects="src\core\core.sln"
Properties="Configuration=$(Configuration)"
Targets="Restore;Build"/>
</Target>
<Target Name="CompileServer">
<!-- Not currently built -->
</Target>
<Target Name="CompileOData" DependsOnTargets="BuildCore">
<!-- Not currently built -->
</Target>
<Target Name="CleanCore">
<MSBuild Projects="src\core\core.sln"
Properties="Configuration=$(Configuration)"
Targets="Clean"/>
</Target>
<Target Name="CompileTools" DependsOnTargets="CompilePolaris" />
<Target Name="CompilePolaris"
DependsOnTargets="BuildCore"
Condition=" '$(OS)' != 'Unix' ">
<!-- Not currently built -->
</Target>
<Target Name="CleanTools">
<!-- Not currently built -->
</Target>
<Target Name="PackBrightstarDBLibs">
<Exec Command="dotnet pack src\core\BrightstarDB.Core\BrightstarDB.Core.csproj -c:$(Configuration) -p:PackageVersion=1.14.0" />
</Target>
<Target Name="PackBrightstarDBCodegen">
<Exec Command="dotnet pack src\core\BrightstarDB.CodeGeneration\BrightstarDB.CodeGeneration.csproj -c:$(Configuration) -p:PackageVersion=1.14.0"/>
<Exec Command="dotnet pack src\core\BrightstarDB.CodeGeneration.Console\BrightstarDB.CodeGeneration.Console.csproj -c:$(Configuration) -p:PackageVersion=1.14.0"/>
<Exec Command="dotnet pack src\core\BrightstarDB.CodeGeneration.T4\BrightstarDB.CodeGeneration.T4.csproj -c:$(Configuration) -p:PackageVersion=1.14.0"/>
</Target>
<Target Name="PackBrightstarDBBundle">
<Exec Command="dotnet pack src\core\BrightstarDB\BrightstarDB.csproj -c:$(Configuration) -p:PackageVersion=1.14.0" />
</Target>
</Project>