1 <Project DefaultTargets="Build">
3 <Import Project="$(MSBuildThisFileDirectory)..\build\directories.props" />
6 <Configuration>Release</Configuration>
10 <OpenTKProjectDirectory>$(MSBuildThisFileDirectory)opentk\src\OpenTK\</OpenTKProjectDirectory>
11 <BindProjectDirectory>$(MSBuildThisFileDirectory)opentk\src\Generator.Bind\</BindProjectDirectory>
12 <RewriteProjectDirectory>$(MSBuildThisFileDirectory)opentk\src\Generator.Rewrite\</RewriteProjectDirectory>
16 <OpenTKProject>$(OpenTKProjectDirectory)OpenTK.Tizen.csproj</OpenTKProject>
17 <BindCmd>dotnet $(BindProjectDirectory)bin/$(Configuration)/netcoreapp2.0/Bind.dll</BindCmd>
20 <Target Name="BuildTools">
22 <ProjectsToBuild Include="$(BindProjectDirectory)Generator.Bind.NETCore.csproj" />
23 <ProjectsToBuild Include="$(RewriteProjectDirectory)Generator.Rewrite.NETCore.csproj" />
25 <MSBuild Projects="@(ProjectsToBuild)" Targets="Restore"
26 Properties="Configuration=$(Configuration);RestoreSources=$(RestoreSources)" />
27 <MSBuild Projects="@(ProjectsToBuild)" Targets="Build" Properties="Configuration=$(Configuration)" />
30 <Target Name="BuildOpenTK">
32 <Exec Command="$(BindCmd)" WorkingDirectory="$(MSBuildThisFileDirectory)opentk" />
34 <!-- Build OpenTK.dll -->
35 <MSBuild Projects="$(OpenTKProject)" Targets="Restore"
36 Properties="Configuration=$(Configuration);RestoreSources=$(RestoreSources)" />
37 <MSBuild Projects="$(OpenTKProject)" Targets="Build" Properties="Configuration=$(Configuration)" />
39 <!-- Copy outputs to Artifacts -->
41 <OpenTKOutputDirectory>$(OpenTKProjectDirectory)bin\$(Configuration)\netstandard2.0\</OpenTKOutputDirectory>
44 <OpenTKOutputFiles Include="$(OpenTKOutputDirectory)OpenTK.dll" />
45 <OpenTKOutputFiles Include="$(OpenTKOutputDirectory)OpenTK.xml" />
46 <OpenTKOutputFiles Include="$(OpenTKOutputDirectory)OpenTK.pdb" />
48 <Copy SourceFiles="@(OpenTKOutputFiles)" DestinationFolder="$(OutputExternalDir)" />
51 <Target Name="PackOpenTK">
52 <MSBuild Projects="$(OpenTKProject)" Targets="Pack" Properties="Configuration=$(Configuration);NoBuild=True" />
54 <OpenTKOutputPackFiles Include="$(OpenTKProjectDirectory)bin\$(Configuration)\OpenTK.Tizen.*.nupkg" />
56 <Copy SourceFiles="@(OpenTKOutputPackFiles)" DestinationFolder="$(OutputBaseDir)" />
60 DependsOnTargets="BuildTools;BuildOpenTK;PackOpenTK"
61 Condition="Exists('$(OpenTKProjectDirectory)')">