mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 10:59:05 +08:00
e79c0d2b5d
* When @BillyONeal started being the on-call vcpkg maintainer on 2022-10-17, he started applying use of the "embedded VERSION" feature https://github.com/microsoft/vcpkg-tool/pull/717 to PRs on merge. @dg0yt points out that this use should be accompanied by a call to vcpkg_minimum_required, in https://github.com/microsoft/vcpkg/pull/27594/files#r1010641672 This is an audit of everything merged in that time and whether it needs to gain that. https://github.com/microsoft/vcpkg/pull/27561 No VERSION https://github.com/microsoft/vcpkg/pull/27525 No VERSION https://github.com/microsoft/vcpkg/pull/27554 Already has vcpkg_minimum_required https://github.com/microsoft/vcpkg/pull/27536 No VERSION https://github.com/microsoft/vcpkg/pull/27562 No VERSION https://github.com/microsoft/vcpkg/pull/24914 Fixed here https://github.com/microsoft/vcpkg/pull/27547 No VERSION https://github.com/microsoft/vcpkg/pull/27502 No VERSION https://github.com/microsoft/vcpkg/pull/27497 No VERSION https://github.com/microsoft/vcpkg/pull/27317 No VERSION https://github.com/microsoft/vcpkg/pull/27288 No VERSION https://github.com/microsoft/vcpkg/pull/27509 No VERSION https://github.com/microsoft/vcpkg/pull/27504 No VERSION https://github.com/microsoft/vcpkg/pull/27514 No VERSION https://github.com/microsoft/vcpkg/pull/27501 No VERSION https://github.com/microsoft/vcpkg/pull/27495 No VERSION https://github.com/microsoft/vcpkg/pull/27488 No VERSION https://github.com/microsoft/vcpkg/pull/27499 No VERSION https://github.com/microsoft/vcpkg/pull/27378 No VERSION https://github.com/microsoft/vcpkg/pull/27376 Fixed here https://github.com/microsoft/vcpkg/pull/27373 No VERSION https://github.com/microsoft/vcpkg/pull/27045 No VERSION https://github.com/microsoft/vcpkg/pull/27521 No VERSION https://github.com/microsoft/vcpkg/pull/27453 No VERSION https://github.com/microsoft/vcpkg/pull/27481 No VERSION https://github.com/microsoft/vcpkg/pull/27511 No VERSION https://github.com/microsoft/vcpkg/pull/27490 No VERSION https://github.com/microsoft/vcpkg/pull/27510 No VERSION https://github.com/microsoft/vcpkg/pull/27496 No VERSION https://github.com/microsoft/vcpkg/pull/27503 No VERSION https://github.com/microsoft/vcpkg/pull/27485 No VERSION https://github.com/microsoft/vcpkg/pull/27484 No VERSION https://github.com/microsoft/vcpkg/pull/27483 No VERSION https://github.com/microsoft/vcpkg/pull/27459 No VERSION https://github.com/microsoft/vcpkg/pull/27369 No VERSION https://github.com/microsoft/vcpkg/pull/27489 No VERSION https://github.com/microsoft/vcpkg/pull/26594 No VERSION https://github.com/microsoft/vcpkg/pull/27465 No VERSION https://github.com/microsoft/vcpkg/pull/27456 No VERSION https://github.com/microsoft/vcpkg/pull/27425 No VERSION https://github.com/microsoft/vcpkg/pull/27464 Fixed here https://github.com/microsoft/vcpkg/pull/27406 No VERSION https://github.com/microsoft/vcpkg/pull/27398 No VERSION https://github.com/microsoft/vcpkg/pull/27240 No VERSION https://github.com/microsoft/vcpkg/pull/27450 No VERSION https://github.com/microsoft/vcpkg/pull/27463 No VERSION https://github.com/microsoft/vcpkg/pull/27462 No VERSION https://github.com/microsoft/vcpkg/pull/27448 No VERSION https://github.com/microsoft/vcpkg/pull/27440 No VERSION https://github.com/microsoft/vcpkg/pull/27435 No VERSION https://github.com/microsoft/vcpkg/pull/27424 No VERSION https://github.com/microsoft/vcpkg/pull/27414 No VERSION https://github.com/microsoft/vcpkg/pull/27412 No VERSION https://github.com/microsoft/vcpkg/pull/27380 No VERSION https://github.com/microsoft/vcpkg/pull/27343 No VERSION https://github.com/microsoft/vcpkg/pull/27342 No VERSION https://github.com/microsoft/vcpkg/pull/27367 No VERSION https://github.com/microsoft/vcpkg/pull/27226 No VERSION https://github.com/microsoft/vcpkg/pull/27320 No VERSION https://github.com/microsoft/vcpkg/pull/26923 No VERSION https://github.com/microsoft/vcpkg/pull/27284 No VERSION https://github.com/microsoft/vcpkg/pull/27433 No VERSION https://github.com/microsoft/vcpkg/pull/27314 VERSION got *removed* https://github.com/microsoft/vcpkg/pull/27335 No VERSION https://github.com/microsoft/vcpkg/pull/27370 No VERSION https://github.com/microsoft/vcpkg/pull/27324 No VERSION https://github.com/microsoft/vcpkg/pull/27391 No VERSION https://github.com/microsoft/vcpkg/pull/27388 No VERSION https://github.com/microsoft/vcpkg/pull/27396 No VERSION https://github.com/microsoft/vcpkg/pull/27404 No VERSION https://github.com/microsoft/vcpkg/pull/27413 No VERSION https://github.com/microsoft/vcpkg/pull/27417 No VERSION https://github.com/microsoft/vcpkg/pull/27427 No VERSION https://github.com/microsoft/vcpkg/pull/27428 No VERSION https://github.com/microsoft/vcpkg/pull/27368 No VERSION https://github.com/microsoft/vcpkg/pull/27307 No VERSION https://github.com/microsoft/vcpkg/pull/27415 Fixed here. https://github.com/microsoft/vcpkg/pull/27371 Fixed here. https://github.com/microsoft/vcpkg/pull/27323 No VERSION https://github.com/microsoft/vcpkg/pull/27352 No VERSION https://github.com/microsoft/vcpkg/pull/27347 No VERSION https://github.com/microsoft/vcpkg/pull/27366 No VERSION https://github.com/microsoft/vcpkg/pull/27361 No VERSION https://github.com/microsoft/vcpkg/pull/27359 No VERSION https://github.com/microsoft/vcpkg/pull/27358 No VERSION https://github.com/microsoft/vcpkg/pull/27355 No VERSION https://github.com/microsoft/vcpkg/pull/27331 No VERSION https://github.com/microsoft/vcpkg/pull/24615 No VERSION https://github.com/microsoft/vcpkg/pull/27325 No VERSION https://github.com/microsoft/vcpkg/pull/24861 No VERSION https://github.com/microsoft/vcpkg/pull/27354 No VERSION https://github.com/microsoft/vcpkg/pull/27346 No VERSION https://github.com/microsoft/vcpkg/pull/27345 No VERSION https://github.com/microsoft/vcpkg/pull/27218 No VERSION https://github.com/microsoft/vcpkg/pull/27329 No VERSION https://github.com/microsoft/vcpkg/pull/27326 No VERSION https://github.com/microsoft/vcpkg/pull/27321 No VERSION https://github.com/microsoft/vcpkg/pull/27312 No VERSION https://github.com/microsoft/vcpkg/pull/27297 No VERSION https://github.com/microsoft/vcpkg/pull/27336 No VERSION https://github.com/microsoft/vcpkg/pull/27225 No VERSION https://github.com/microsoft/vcpkg/pull/27339 No VERSION https://github.com/microsoft/vcpkg/pull/27302 No VERSION https://github.com/microsoft/vcpkg/pull/27295 No VERSION https://github.com/microsoft/vcpkg/pull/27233 No VERSION https://github.com/microsoft/vcpkg/pull/27313 No VERSION https://github.com/microsoft/vcpkg/pull/27237 No VERSION https://github.com/microsoft/vcpkg/pull/27250 No VERSION https://github.com/microsoft/vcpkg/pull/27263 No VERSION https://github.com/microsoft/vcpkg/pull/27266 No VERSION https://github.com/microsoft/vcpkg/pull/27272 No VERSION https://github.com/microsoft/vcpkg/pull/27287 No VERSION https://github.com/microsoft/vcpkg/pull/27282 No VERSION https://github.com/microsoft/vcpkg/pull/27294 No VERSION https://github.com/microsoft/vcpkg/pull/27228 No VERSION https://github.com/microsoft/vcpkg/pull/27163 No VERSION https://github.com/microsoft/vcpkg/pull/26817 No VERSION https://github.com/microsoft/vcpkg/pull/27286 No VERSION https://github.com/microsoft/vcpkg/pull/27274 No VERSION https://github.com/microsoft/vcpkg/pull/27276 No VERSION https://github.com/microsoft/vcpkg/pull/27232 No VERSION https://github.com/microsoft/vcpkg/pull/27221 No VERSION https://github.com/microsoft/vcpkg/pull/27215 No VERSION https://github.com/microsoft/vcpkg/pull/27166 No VERSION https://github.com/microsoft/vcpkg/pull/27239 No VERSION https://github.com/microsoft/vcpkg/pull/27246 No VERSION https://github.com/microsoft/vcpkg/pull/27268 No VERSION https://github.com/microsoft/vcpkg/pull/27259 No VERSION https://github.com/microsoft/vcpkg/pull/27238 No VERSION https://github.com/microsoft/vcpkg/pull/27224 No VERSION https://github.com/microsoft/vcpkg/pull/27203 No VERSION https://github.com/microsoft/vcpkg/pull/27124 No VERSION * Also add libcanberra
64 lines
2.8 KiB
CMake
64 lines
2.8 KiB
CMake
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
set(PROGNAME node)
|
|
|
|
set(BREW_PACKAGE_NAME "${PROGNAME}")
|
|
set(APT_PACKAGE_NAME "${PROGNAME}")
|
|
|
|
if(VCPKG_CROSSCOMPILING)
|
|
message(FATAL_ERROR "This is a host only port!")
|
|
endif()
|
|
|
|
set(BASE_URL "https://nodejs.org/dist/v${VERSION}/")
|
|
set(ARCHIVE "")
|
|
set(ARCHIVE_EXT "")
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "^x86$|arm")
|
|
set(ARCHIVE "node-v${VERSION}-win-x86")
|
|
set(ARCHIVE_EXT ".zip")
|
|
set(HASH a52f07888452a894008f5ec69d20b2d48a08656a84197e2c94749b909fc66d9b9217ae30b10cfdec36dd11d9fdecb0c64b511570ded6a63dfd794b07a9fb0f52)
|
|
elseif(VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
set(ARCHIVE "node-v${VERSION}-win-x64")
|
|
set(ARCHIVE_EXT ".zip")
|
|
set(HASH e6a5688bfcd869eca6d220ef9cbcfa1f50f93f0a86d25acc96103fe271c3f362a94159c3d54d43b2cc7a4eeef4fdcde2b5da4163d24bd2c4ecaddae2486f4be6)
|
|
elseif(VCPKG_TARGET_IS_OSX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
set(ARCHIVE "node-v${VERSION}-darwin-x64")
|
|
set(ARCHIVE_EXT ".tar.gz")
|
|
set(HASH eb22c1e2201bcce63d68c471bba0e74ccf3c55b65b47519711e4da06d03d410f129aa587cf009db1f1253402ea26286e13ed29d231fe6074fcf7414c1f216f13)
|
|
elseif(VCPKG_TARGET_IS_OSX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
set(ARCHIVE "node-v${VERSION}-darwin-arm64")
|
|
set(ARCHIVE_EXT ".tar.gz")
|
|
set(HASH 62585571b993c5643924f13fd90457c116bd839e02c6878e64da66989ee967a965529490afca62abc5866120d8ea089c3dc9d565d1a3f4a986be0c674a10151b)
|
|
elseif(VCPKG_TARGET_IS_LINUX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
set(ARCHIVE "node-v${VERSION}-linux-x64")
|
|
set(ARCHIVE_EXT ".tar.xz")
|
|
set(HASH 06b27edd123a4465d7919b07bb5894a805f29fb757669fa84fe5595dfda7b114c423c99bf62e31400d8c3e7d9f3fde54138416711e05d69afc922a35b013a9b1)
|
|
elseif(VCPKG_TARGET_IS_LINUX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
set(ARCHIVE "node-v${VERSION}-linux-arm64")
|
|
set(ARCHIVE_EXT ".tar.xz")
|
|
set(HASH 77c8618576c2337ed6b767d8d04871c46b92a4a411fcf5d294145dbceb467a4b0804b3b4e82c637fdc6703f1c86a22ac3e56f69142ef505c2252f88675333c57)
|
|
else()
|
|
message(FATAL_ERROR "Target not yet supported by '${PORT}'")
|
|
endif()
|
|
set(URL "${BASE_URL}${ARCHIVE}${ARCHIVE_EXT}")
|
|
message(STATUS "URL: '${URL}'")
|
|
|
|
vcpkg_download_distfile(ARCHIVE_PATH
|
|
URLS "${URL}"
|
|
SHA512 "${HASH}"
|
|
FILENAME "${ARCHIVE}${ARCHIVE_EXT}"
|
|
#ALWAYS_REDOWNLOAD
|
|
#SKIP_SHA512
|
|
)
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
|
|
message(STATUS "ARCHIVE_PATH: '${ARCHIVE_PATH}'")
|
|
|
|
vcpkg_execute_in_download_mode(
|
|
COMMAND ${CMAKE_COMMAND} -E tar xzf "${ARCHIVE_PATH}"
|
|
WORKING_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools"
|
|
)
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/${ARCHIVE}" "${CURRENT_PACKAGES_DIR}/tools/node")
|