Skip to content

Commit

Permalink
fix: dml version
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 16, 2024
1 parent 9f15f5d commit 336406f
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions vcpkg-overlay/ports/directml-bin/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)

set(VERSION 1.5.1)

vcpkg_download_distfile(ARCHIVE
URLS "https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.14.1"
FILENAME "Microsoft.AI.DirectML.1.14.1.nupkg"
SHA512 362be04b10c5a443250909e0d57b2dc3e0e709e0651578cfea8a702e2d295b78d3d058533e728d1edd61963750c76359552dd02b1a66e8a55635347b73796637
URLS "https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/${VERSION}"
FILENAME "Microsoft.AI.DirectML.${VERSION}.nupkg"
SKIP_SHA512
)

vcpkg_extract_source_archive(
Expand All @@ -15,18 +13,17 @@ vcpkg_extract_source_archive(
)

file(MAKE_DIRECTORY
${CURRENT_PACKAGES_DIR}/include
${CURRENT_PACKAGES_DIR}/lib
${CURRENT_PACKAGES_DIR}/bin
${CURRENT_PACKAGES_DIR}/debug/lib
${CURRENT_PACKAGES_DIR}/debug/bin
)
${CURRENT_PACKAGES_DIR}/include
${CURRENT_PACKAGES_DIR}/lib
${CURRENT_PACKAGES_DIR}/bin
${CURRENT_PACKAGES_DIR}/debug/lib
${CURRENT_PACKAGES_DIR}/debug/bin
)

file(COPY
${SOURCE_PATH}/include
DESTINATION ${CURRENT_PACKAGES_DIR}
)

${SOURCE_PATH}/include
DESTINATION ${CURRENT_PACKAGES_DIR}
)

file(COPY ${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}-win/DirectML.dll
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
Expand All @@ -43,9 +40,9 @@ file(COPY ${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}-win/DirectML.lib
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)

# file(COPY ${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}-win/DirectML.Debug.dll
# DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
# DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
# file(COPY ${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}-win/DirectML.Debug.pdb
# DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
# DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)

# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

0 comments on commit 336406f

Please sign in to comment.