[aom] Bump to 3.7.0 and fix arm-linux build (#34925)

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello 2023-11-17 22:27:31 +00:00 committed by GitHub
parent 4d2b395813
commit e965edb2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 59 additions and 30 deletions

View File

@ -1,12 +1,33 @@
diff -pruN aom-3.0.0.o/CMakeLists.txt aom-3.0.0/CMakeLists.txt
--- aom-3.0.0.o/CMakeLists.txt 2021-04-15 20:05:52.695181200 +0300
+++ aom-3.0.0/CMakeLists.txt 2021-04-15 22:34:16.147522600 +0300
@@ -249,7 +249,7 @@ endif()
add_library(aom ${AOM_SOURCES} $<TARGET_OBJECTS:aom_rtcd>)
if(BUILD_SHARED_LIBS)
add_library(aom_static STATIC ${AOM_SOURCES} $<TARGET_OBJECTS:aom_rtcd>)
- set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom)
+ set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom_static)
if(NOT MSVC)
# Extract version string and set VERSION/SOVERSION for the aom target.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e5b623..bed61da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -314,6 +314,15 @@ if(BUILD_SHARED_LIBS)
set_target_properties(aom PROPERTIES SOVERSION ${SO_VERSION})
set_target_properties(aom PROPERTIES VERSION ${SO_FILE_VERSION})
endif()
+
+ # override conditional changes
+ set_target_properties(aom PROPERTIES
+ ARCHIVE_OUTPUT_NAME aom
+ )
+ set_target_properties(aom_static PROPERTIES
+ ARCHIVE_OUTPUT_NAME aom_static
+ EXCLUDE_FROM_ALL 1
+ )
endif()
if(NOT WIN32 AND NOT APPLE)
diff --git a/build/cmake/aom_install.cmake b/build/cmake/aom_install.cmake
index b02c7b9..c219841 100644
--- a/build/cmake/aom_install.cmake
+++ b/build/cmake/aom_install.cmake
@@ -79,7 +79,7 @@ macro(setup_aom_install_targets)
endif()
if(BUILD_SHARED_LIBS)
- set(AOM_INSTALL_LIBS aom aom_static)
+ set(AOM_INSTALL_LIBS aom)
else()
set(AOM_INSTALL_LIBS aom)
endif()

View File

@ -1,13 +1,13 @@
diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
index 43d60ae..35c510b 100644
--- a/build/cmake/aom_configure.cmake
+++ b/build/cmake/aom_configure.cmake
@@ -265,6 +265,8 @@ if(MSVC)
# Disable MSVC warnings that suggest making code non-portable.
add_compiler_flag_if_supported("/wd4996")
+ # Disable MSVC warnings for potentially uninitialized local pointer variable.
+ add_compiler_flag_if_supported("/wd4703")
if(ENABLE_WERROR)
add_compiler_flag_if_supported("/WX")
endif()
diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
index aaef2c310..5500ad4a3 100644
--- a/build/cmake/aom_configure.cmake
+++ b/build/cmake/aom_configure.cmake
@@ -309,6 +309,8 @@ if(MSVC)
# Disable MSVC warnings that suggest making code non-portable.
add_compiler_flag_if_supported("/wd4996")
+ # Disable MSVC warnings for potentially uninitialized local pointer variable.
+ add_compiler_flag_if_supported("/wd4703")
if(ENABLE_WERROR)
add_compiler_flag_if_supported("/WX")
endif()

View File

@ -11,7 +11,7 @@ vcpkg_add_to_path(${PERL_PATH})
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL "https://aomedia.googlesource.com/aom"
REF 9a83c6a5a55c176adbce740e47d3512edfc9ae71 # v3.5.0
REF 6054fae218eda6e53e1e3b4f7ef0fff4877c7bf1 # v3.7.0
PATCHES
aom-rename-static.diff
aom-uninitialized-pointer.diff
@ -26,6 +26,10 @@ if(VCPKG_TARGET_IS_UWP OR (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE
set(aom_target_cpu "-DAOM_TARGET_CPU=generic")
endif()
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" AND VCPKG_TARGET_IS_LINUX)
set(aom_target_cpu "-DENABLE_NEON=OFF")
endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS

View File

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

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "71fe99b6007b153a98a5058a2d2212117af8031a",
"version-semver": "3.7.0",
"port-version": 0
},
{
"git-tree": "daaa6d5ccf417cb9e4997d35b9574f18eaa98cd3",
"version-semver": "3.5.0",

View File

@ -153,8 +153,8 @@
"port-version": 2
},
"aom": {
"baseline": "3.5.0",
"port-version": 1
"baseline": "3.7.0",
"port-version": 0
},
"apache-datasketches": {
"baseline": "4.1.0",