-
Notifications
You must be signed in to change notification settings - Fork 176
/
pack.proj
31 lines (28 loc) · 2.37 KB
/
pack.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
<Project>
<Import Project="..\Directory.Build.props" />
<ItemGroup>
<PackProject Include="**\libtorch-cpu.nupkgproj" Condition="'$(IncludeLibTorchCpuPackages)' == 'true'" />
<PackProject Include="**\libtorch-cpu-*.nupkgproj" Condition="'$(IncludeLibTorchCpuPackages)' == 'true'" />
<PackProject Include="**\libtorch-cuda-$(CudaVersionDot)-linux-*.nupkgproj" Condition="'$(IncludeLibTorchCudaPackages)' == 'true' AND '$(TargetOS)' == 'linux'" />
<PackProject Include="**\libtorch-cuda-$(CudaVersionDot)-win-*.nupkgproj" Condition="'$(IncludeLibTorchCudaPackages)' == 'true' AND '$(TargetOS)' == 'windows'" />
<PackProject Include="**\libtorch-cuda-$(CudaVersionDot)-mac-*.nupkgproj" Condition="'$(IncludeLibTorchCudaPackages)' == 'true' AND '$(TargetOS)' == 'mac'" />
<PackProject Include="**\TorchAudio.nupkgproj" />
<PackProject Include="**\TorchSharp.nupkgproj" />
<PackProject Include="**\TorchSharp-cpu.nupkgproj" />
<PackProject Include="**\TorchSharp-cuda-linux.nupkgproj" />
<PackProject Include="**\TorchSharp-cuda-windows.nupkgproj" />
<PackProject Include="**\TorchVision.nupkgproj" />
</ItemGroup>
<Target Name="Restore">
<Message Text="Restoring packaging projects..." Importance="high" />
<MSBuild Projects="%(PackProject.Identity)" Targets="Restore" />
</Target>
<Target Name="Pack" DependsOnTargets="Restore">
<Warning Text="Packages will be incomplete and unusable on linux platforms. To get a complete package you need the LibTorchSharp.so binaries for other platforms and copy them into '$(PackagePreparationPath)' to make complete packages. This is automated by Azure Pipelines."
Condition="'$(IncludeTorchSharpPackage)' == 'true' AND !Exists('$(PackagePreparationPath)\TorchSharp\runtimes\linux-x64\native\libLibTorchSharp.so')" />
<Warning Text="Packages will be incomplete and unusable on win-x64 platform. To get a complete package you need the LibTorchSharp.dll binaries for other platforms and copy them into '$(PackagePreparationPath)' to make complete packages. This is automated by Azure Pipelines."
Condition="'$(IncludeTorchSharpPackage)' == 'true' AND !Exists('$(PackagePreparationPath)\TorchSharp\runtimes\win-x64\native\LibTorchSharp.dll')" />
<MSBuild Projects="%(PackProject.Identity)" Targets="Pack" />
<Message Text="Done packing!" Importance="high" />
</Target>
</Project>