[OpenTK] Introduce OpenTK (#336)
[platform/core/csapi/tizenfx.git] / build / common.targets
1 <Project>
2
3   <UsingTask TaskName="GenDummyTask" AssemblyFile="$(MSBuildThisFileDirectory)..\tools\bin\GenDummy.Tasks\GenDummy.Tasks.dll" />
4
5   <Target Name="CopyToArtifactsDirectory"
6           Condition="'$(ArtifactsDirectory)' != ''"
7           DependsOnTargets="GetCopyToOutputDirectoryItems">
8     <ItemGroup>
9       <OutputFilesToCopy Include="$(OutDir)**" />
10     </ItemGroup>
11     <Copy SourceFiles="@(OutputFilesToCopy)"
12           DestinationFiles="$(ArtifactsDirectory)%(RecursiveDir)%(Filename)%(Extension)" />
13   </Target>
14
15   <Target Name="CopyToDummyArtifactsDirectory"
16           DependsOnTargets="GetCopyToOutputDirectoryItems">
17     <Copy SourceFiles="$(TargetPath)"
18           DestinationFiles="$(OutputDummyDir)$(TargetFileName)" />
19   </Target>
20
21   <Target Name="BeforeCompile"
22           Condition="'$(IsDummyBuild)' == 'True'">
23     <GenDummyTask Sources="@(Compile)" OutputDirectory="$(IntermediateOutputPath)dummy\">
24       <Output TaskParameter="GeneratedFiles" ItemName="_DummyCompile" />
25     </GenDummyTask>
26     <ItemGroup>
27       <Compile Remove="@(Compile)" />
28       <Compile Include="@(_DummyCompile)" />
29     </ItemGroup>
30   </Target>
31
32 </Project>