Skip to content

Commit 5bfab70

Browse files
committed
Copy dependencies so that they're included in Microsoft.ML.OneDal nupkg
1 parent d19621b commit 5bfab70

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Native/Native.proj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,22 @@
170170
<NativePackageAsset Condition="'$(TargetArchitecture)' != 'arm64' And '$(TargetArchitecture)' != 'arm'"
171171
Include="$(NativeAssetsBuiltPath)\$(NativeLibPrefix)FastTreeNative$(NativeLibExtension)"
172172
RelativePath="Microsoft.ML.FastTree\runtimes\$(PackageRid)\native" />
173+
174+
<!-- Copy oneDAL -->
175+
<NativePackageAsset Condition="'$(TargetArchitecture)' == 'x64'"
176+
Include="$(NuGetPackageRoot)inteldal.redist.$(PackageRid)\$(OneDalPkgVersion)\build\native\daal\latest\$(OneDalLibDir)\$(NativeLibPrefix)onedal_core$(OneDalLibExtension)"
177+
RelativePath="Microsoft.ML.OneDal\runtimes\$(PackageRid)\native" />
178+
<NativePackageAsset Condition="'$(TargetArchitecture)' == 'x64'"
179+
Include="$(NuGetPackageRoot)inteldal.redist.$(PackageRid)\$(OneDalPkgVersion)\build\native\daal\latest\$(OneDalLibDir)\$(NativeLibPrefix)onedal_thread$(OneDalLibExtension)"
180+
RelativePath="Microsoft.ML.OneDal\runtimes\$(PackageRid)\native" />
181+
<!-- Copy oneTBB (dependency of oneDAL) -->
182+
<NativePackageAsset Condition="'$(TargetArchitecture)' == 'x64'"
183+
Include="$(NuGetPackageRoot)inteltbb.$(TbbPkgType).$(TbbSystem)\$(OneTbbPkgVersion)\runtimes\$(PackageRid)\native\$(TbbLibrary)"
184+
RelativePath="Microsoft.ML.OneDal\runtimes\$(PackageRid)\native" />
185+
<NativePackageAsset Condition="'$(TargetArchitecture)' == 'x64'"
186+
Include="$(NuGetPackageRoot)inteltbb.$(TbbPkgType).$(TbbSystem)\$(OneTbbPkgVersion)\runtimes\$(PackageRid)\native\$(TbbMallocLibrary)"
187+
RelativePath="Microsoft.ML.OneDal\runtimes\$(PackageRid)\native" />
188+
173189
</ItemGroup>
174190

175191
<ItemGroup>

0 commit comments

Comments
 (0)