diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-25 19:35:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 19:35:02 +0200 |
commit | 474262774417765c3fb26f13bd27fcd49e54218c (patch) | |
tree | 916e63b24f9a8d3cab07a3db604ae8cd0c589bc2 | |
parent | Merge pull request #11095 from liamwhite/memory2 (diff) | |
parent | cmake: Download nasm from our external repo (diff) | |
download | yuzu-474262774417765c3fb26f13bd27fcd49e54218c.tar yuzu-474262774417765c3fb26f13bd27fcd49e54218c.tar.gz yuzu-474262774417765c3fb26f13bd27fcd49e54218c.tar.bz2 yuzu-474262774417765c3fb26f13bd27fcd49e54218c.tar.lz yuzu-474262774417765c3fb26f13bd27fcd49e54218c.tar.xz yuzu-474262774417765c3fb26f13bd27fcd49e54218c.tar.zst yuzu-474262774417765c3fb26f13bd27fcd49e54218c.zip |
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 00d540f1f..af9f394f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,6 +136,22 @@ if (YUZU_USE_BUNDLED_VCPKG) endif() endif() + if (MSVC) + set(VCPKG_DOWNLOADS_PATH ${PROJECT_SOURCE_DIR}/externals/vcpkg/downloads) + set(NASM_VERSION "2.16.01") + set(NASM_DESTINATION_PATH ${VCPKG_DOWNLOADS_PATH}/nasm-${NASM_VERSION}-win64.zip) + set(NASM_DOWNLOAD_URL "https://github.com/yuzu-emu/ext-windows-bin/raw/master/nasm/nasm-${NASM_VERSION}-win64.zip") + + if (NOT EXISTS ${NASM_DESTINATION_PATH}) + file(DOWNLOAD ${NASM_DOWNLOAD_URL} ${NASM_DESTINATION_PATH} SHOW_PROGRESS STATUS NASM_STATUS) + + if (NOT NASM_STATUS EQUAL 0) + # Warn and not fail since vcpkg is supposed to download this package for us in the first place + message(WARNING "External nasm vcpkg package download from ${NASM_DOWNLOAD_URL} failed with status ${NASM_STATUS}") + endif() + endif() + endif() + if (YUZU_TESTS) list(APPEND VCPKG_MANIFEST_FEATURES "yuzu-tests") endif() |