[aom] avoid nasm on non-x86 (#50981)

This commit is contained in:
Byoungchan Lee 2026-04-07 06:00:04 +09:00 committed by GitHub
parent 3b2fc5f4fa
commit 14de8214a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 4 deletions

View File

@ -9,9 +9,15 @@ vcpkg_from_git(
aom-fix-nasm.diff # TODO: remove this patch after the next release
)
vcpkg_find_acquire_program(NASM)
vcpkg_find_acquire_program(PERL)
if(VCPKG_TARGET_ARCHITECTURE MATCHES "^(x86|x64)$")
# Upstream AOM only uses NASM on x86-family targets. Non-x86 targets such as
# Apple Silicon configure with ENABLE_NASM=OFF and should not require nasm.
vcpkg_find_acquire_program(NASM)
set(aom_nasm_compiler "-DCMAKE_ASM_NASM_COMPILER=${NASM}")
endif()
set(aom_target_cpu "")
if(VCPKG_TARGET_IS_UWP OR (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "^arm"))
# UWP + aom's assembler files result in weirdness and build failures
@ -33,7 +39,7 @@ vcpkg_cmake_configure(
-DENABLE_TESTS=OFF
-DENABLE_TOOLS=OFF
-DTHREADS_PREFER_PTHREAD_FLAG=ON
"-DCMAKE_ASM_NASM_COMPILER=${NASM}"
${aom_nasm_compiler}
"-DPERL_EXECUTABLE=${PERL}"
)

View File

@ -1,7 +1,7 @@
{
"name": "aom",
"version-semver": "3.13.1",
"port-version": 1,
"port-version": 2,
"description": "AV1 codec library",
"homepage": "https://aomedia.googlesource.com/aom",
"license": "BSD-2-Clause",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6af4ddae16c64f2cab705d49ed1055c2d99fd837",
"version-semver": "3.13.1",
"port-version": 2
},
{
"git-tree": "26fd05f1c9967caa611538c4e2f11edb8303288f",
"version-semver": "3.13.1",

View File

@ -178,7 +178,7 @@
},
"aom": {
"baseline": "3.13.1",
"port-version": 1
"port-version": 2
},
"apache-datasketches": {
"baseline": "5.2.0",