Skip to content

Commit

Permalink
[dav1d] Skip host nasm dependency when targeting non-x86 (microsoft#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
BertalanD authored Jul 15, 2024
1 parent 802e896 commit 19bf4c0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
22 changes: 10 additions & 12 deletions ports/dav1d/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ vcpkg_from_gitlab(
SHA512 7f02c1e65fb79352a159cc60346e02d5844c01d1228f860f802c553799ae0213e76ccc81ff427913e89bd3cfcf0185ea063cf3b6f7c4242faa76962ebd661e5e
)

vcpkg_find_acquire_program(NASM)
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
vcpkg_add_to_path(${NASM_EXE_PATH})

if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_find_acquire_program(GASPREPROCESSOR)
foreach(GAS_PATH ${GASPREPROCESSOR})
get_filename_component(GAS_ITEM_PATH ${GAS_PATH} DIRECTORY)
set(ENV{PATH} "$ENV{PATH}${VCPKG_HOST_PATH_SEPARATOR}${GAS_ITEM_PATH}")
endforeach(GAS_PATH)
endif()
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
vcpkg_find_acquire_program(NASM)
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
vcpkg_add_to_path(${NASM_EXE_PATH})
elseif (VCPKG_TARGET_IS_WINDOWS)
vcpkg_find_acquire_program(GASPREPROCESSOR)
foreach(GAS_PATH ${GASPREPROCESSOR})
get_filename_component(GAS_ITEM_PATH ${GAS_PATH} DIRECTORY)
vcpkg_add_to_path(${GAS_ITEM_PATH})
endforeach(GAS_PATH)
endif()

set(LIBRARY_TYPE ${VCPKG_LIBRARY_LINKAGE})
Expand Down
1 change: 1 addition & 0 deletions ports/dav1d/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "dav1d",
"version": "1.4.0",
"port-version": 1,
"description": "dav1d is a new open-source AV1 decoder developed by the VideoLAN and FFmpeg communities and sponsored by the Alliance for Open Media.",
"homepage": "https://code.videolan.org/videolan/dav1d",
"license": "BSD-2-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@
},
"dav1d": {
"baseline": "1.4.0",
"port-version": 0
"port-version": 1
},
"daw-header-libraries": {
"baseline": "2.106.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/dav1d.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c92b5d1be96a53ccc47eddb738e08111b537513f",
"version": "1.4.0",
"port-version": 1
},
{
"git-tree": "0349d1196602b2983b1171647b30b5a9379920c6",
"version": "1.4.0",
Expand Down

0 comments on commit 19bf4c0

Please sign in to comment.