mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:19:00 +08:00
[halide] Small tweaks, use hash check for license
This commit is contained in:
parent
f86e4b2a6a
commit
373cfcc8d8
@ -1,18 +1,18 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(${VCPKG_LIBRARY_LINKAGE} STREQUAL static)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
message(STATUS "Warning: Static building not supported yet. Building dynamic.")
|
||||
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
||||
endif()
|
||||
|
||||
if(${VCPKG_TARGET_ARCHITECTURE} STREQUAL x86)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
||||
set(TARGET_ARCHITECTURE 32)
|
||||
set(FILE_HASH 99e9f05629213f99ba0b2ae088e2356842841604346a2871b05bf933a2a4712528ad1a38861f54478c16b99686ce615f97254b00c09b92b540c7afa1b0b0bb8f)
|
||||
elseif(${VCPKG_TARGET_ARCHITECTURE} STREQUAL x64)
|
||||
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
set(TARGET_ARCHITECTURE 64)
|
||||
set(FILE_HASH aa699684321e779898ff09dc02163347dce355fa5d47fe673191e2323e28cc5b6554dfd51f39cc9c231ba8b07927f36e99b8489e4f7eb871ebaf6e377fc33cfc)
|
||||
else()
|
||||
message(FATAL_ERROR "Error: halide does not support the ARM architecture.")
|
||||
message(FATAL_ERROR "Error: halide does not support the ${VCPKG_TARGET_ARCHITECTURE} architecture.")
|
||||
endif()
|
||||
|
||||
set(COMMIT_HASH 3af238615667312dcb46607752e3ae5d0ec5d713)
|
||||
@ -25,6 +25,13 @@ vcpkg_download_distfile(ARCHIVE
|
||||
SHA512 ${FILE_HASH}
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE} ${SOURCE_PATH})
|
||||
|
||||
vcpkg_download_distfile(LICENSE
|
||||
URLS "https://raw.githubusercontent.com/halide/Halide/release_${RELEASE_DATE}/LICENSE.txt"
|
||||
FILENAME "halide-release_${RELEASE_DATE}-LICENSE.txt"
|
||||
SHA512 bf11aa011ce872bcd51fe8d350f7238ad1eceb61eb7af788a2d78a6cfdfa9095abeeb2d230ead5c5299d245d6507a7b4374e3294703c126dcdae531db5a5ba7a
|
||||
)
|
||||
|
||||
set(SOURCE_PATH ${SOURCE_PATH}/halide)
|
||||
|
||||
file(
|
||||
@ -78,4 +85,4 @@ file(
|
||||
${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
)
|
||||
|
||||
file(DOWNLOAD https://raw.githubusercontent.com/halide/Halide/release_${RELEASE_DATE}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/halide/copyright)
|
||||
file(INSTALL "${LICENSE}" DESTINATION ${CURRENT_PACKAGES_DIR}/share/halide RENAME copyright)
|
||||
|
Loading…
Reference in New Issue
Block a user