-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBonsai.Thorlabs.targets
25 lines (25 loc) · 1.42 KB
/
Bonsai.Thorlabs.targets
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="BonsaiThorlabs_AfterBuild" AfterTargets="AfterBuild">
<Copy SourceFiles="@(CopyToOutput)" DestinationFolder="$(TargetDir)" SkipUnchangedFiles="true" UseHardlinksIfPossible="true">
<Output TaskParameter="DestinationFiles" PropertyName="DestinationFiles" />
<Output TaskParameter="DestinationFiles" ItemName="DestinationFiles" />
<Output TaskParameter="CopiedFiles" PropertyName="CopiedFiles" />
<Output TaskParameter="CopiedFiles" ItemName="CopiedFiles" />
</Copy>
</Target>
<Target Name="BonsaiThorlabs_BeforeBuild" BeforeTargets="BeforeBuild">
<ItemGroup Label="x64" Condition="'$(Platform.ToLower())' == 'x64'">
<CopyToOutput Include="$(MSBuildThisFileDirectory)../../build/native/bin/x64/*.dll" />
<None Include="$(MSBuildThisFileDirectory)../../build/native/bin/x64/*.dll">
<DeploymentContent>true</DeploymentContent>
</None>
</ItemGroup>
<ItemGroup Label="x86" Condition="'$(Platform.ToLower())' == 'x86' Or '$(Platform.ToLower())' == 'anycpu'">
<CopyToOutput Include="$(MSBuildThisFileDirectory)../../build/native/bin/x86/*.dll" />
<None Include="$(MSBuildThisFileDirectory)../../build/native/bin/x86/*.dll">
<DeploymentContent>true</DeploymentContent>
</None>
</ItemGroup>
</Target>
</Project>