-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#10716) libaom-av1: add 3.3.0 + download stable archives + relocatab…
…le shared lib on macOS * download official & stable archives stable archives are available in https://storage.googleapis.com/aom-releases/ * relocatable shared lib on macOS * improve patches * cache CMake configuration with functools.lru_cache * install dll into bin folder * use find_package in test package * add libaom-av1/3.3.0
- Loading branch information
Showing
11 changed files
with
131 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
cmake_minimum_required(VERSION 3.1) | ||
project(cmake_wrapper) | ||
|
||
include("conanbuildinfo.cmake") | ||
conan_basic_setup() | ||
conan_basic_setup(KEEP_RPATHS) | ||
|
||
add_subdirectory("source_subfolder") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
sources: | ||
"3.3.0": | ||
url: "https://storage.googleapis.com/aom-releases/libaom-3.3.0.tar.gz" | ||
sha256: "1dafde32bc2237bf0570294661ae61db30e818840f77dc4e90d1ebf5a6286664" | ||
"3.1.2": | ||
url: "https://aomedia.googlesource.com/aom/+archive/ae2be8030200925895fa6e98bd274ffdb595cbf6.tar.gz" | ||
url: "https://storage.googleapis.com/aom-releases/libaom-3.1.2.tar.gz" | ||
sha256: "a295eb3779657fad7d34217091ee4c6257d02580a82012231afef72792330075" | ||
"3.1.1": | ||
url: "https://aomedia.googlesource.com/aom/+archive/7fadc0e77130efb05f52979b0deaba9b6a1bba6d.tar.gz" | ||
url: "https://storage.googleapis.com/aom-releases/libaom-3.1.1.tar.gz" | ||
sha256: "7cd5e8e469268c37241df93fe61557ea0dc46980ca21b37e786e92a3d0729276" | ||
"2.0.1": | ||
url: "https://aomedia.googlesource.com/aom/+archive/b52ee6d44adaef8a08f6984390de050d64df9faa.tar.gz" | ||
url: "https://storage.googleapis.com/aom-releases/libaom-2.0.1.tar.gz" | ||
sha256: "a0cff299621e2ef885aba219c498fa39a7d9a7ddf47585a118fd66c64ad1b312" | ||
patches: | ||
"3.3.0": | ||
- patch_file: "patches/0001-3.3.0-fix-install.patch" | ||
base_path: "source_subfolder" | ||
"3.1.2": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-3.1.1-msvc-install.patch" | ||
- patch_file: "patches/0001-3.1.1-fix-install.patch" | ||
base_path: "source_subfolder" | ||
"3.1.1": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-3.1.1-msvc-install.patch" | ||
- patch_file: "patches/0001-3.1.1-fix-install.patch" | ||
base_path: "source_subfolder" | ||
"2.0.1": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-2.0.1-msvc-install.patch" | ||
- patch_file: "patches/0001-2.0.1-fix-install.patch" | ||
base_path: "source_subfolder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
recipes/libaom-av1/all/patches/0001-2.0.1-fix-install.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- a/build/cmake/aom_install.cmake | ||
+++ b/build/cmake/aom_install.cmake | ||
@@ -27,7 +27,7 @@ endif() | ||
# Note: aom.pc generation uses GNUInstallDirs: | ||
# https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html | ||
macro(setup_aom_install_targets) | ||
- if(NOT (MSVC OR XCODE)) | ||
+ if(1) | ||
include("GNUInstallDirs") | ||
set(AOM_PKG_CONFIG_FILE "${AOM_CONFIG_DIR}/aom.pc") | ||
|
||
@@ -73,7 +73,8 @@ macro(setup_aom_install_targets) | ||
endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
- set(AOM_INSTALL_LIBS aom aom_static) | ||
+ set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom_static) | ||
+ set(AOM_INSTALL_LIBS aom) | ||
else() | ||
set(AOM_INSTALL_LIBS aom) | ||
endif() | ||
@@ -85,8 +86,10 @@ macro(setup_aom_install_targets) | ||
install( | ||
FILES "${AOM_PKG_CONFIG_FILE}" | ||
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig") | ||
- install(TARGETS ${AOM_INSTALL_LIBS} DESTINATION | ||
- "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") | ||
+ install(TARGETS ${AOM_INSTALL_LIBS} | ||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
|
||
if(ENABLE_EXAMPLES) | ||
install(TARGETS ${AOM_INSTALL_BINS} DESTINATION |
23 changes: 0 additions & 23 deletions
23
recipes/libaom-av1/all/patches/0001-2.0.1-msvc-install.patch
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
recipes/libaom-av1/all/patches/0001-3.1.1-fix-install.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- a/build/cmake/aom_install.cmake | ||
+++ b/build/cmake/aom_install.cmake | ||
@@ -26,7 +26,7 @@ endif() | ||
# Note: aom.pc generation uses GNUInstallDirs: | ||
# https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html | ||
macro(setup_aom_install_targets) | ||
- if(NOT (MSVC OR XCODE)) | ||
+ if(1) | ||
include("GNUInstallDirs") | ||
set(AOM_PKG_CONFIG_FILE "${AOM_CONFIG_DIR}/aom.pc") | ||
|
||
@@ -76,7 +76,8 @@ macro(setup_aom_install_targets) | ||
endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
- set(AOM_INSTALL_LIBS aom aom_static) | ||
+ set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom_static) | ||
+ set(AOM_INSTALL_LIBS aom) | ||
else() | ||
set(AOM_INSTALL_LIBS aom) | ||
endif() | ||
@@ -88,8 +89,10 @@ macro(setup_aom_install_targets) | ||
install( | ||
FILES "${AOM_PKG_CONFIG_FILE}" | ||
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig") | ||
- install(TARGETS ${AOM_INSTALL_LIBS} DESTINATION | ||
- "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") | ||
+ install(TARGETS ${AOM_INSTALL_LIBS} | ||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
|
||
if(ENABLE_EXAMPLES) | ||
install(TARGETS ${AOM_INSTALL_BINS} DESTINATION |
23 changes: 0 additions & 23 deletions
23
recipes/libaom-av1/all/patches/0001-3.1.1-msvc-install.patch
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
recipes/libaom-av1/all/patches/0001-3.3.0-fix-install.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- a/build/cmake/aom_install.cmake | ||
+++ b/build/cmake/aom_install.cmake | ||
@@ -27,7 +27,7 @@ endif() | ||
# Note: aom.pc generation uses GNUInstallDirs: | ||
# https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html | ||
macro(setup_aom_install_targets) | ||
- if(NOT XCODE) | ||
+ if(1) | ||
include("GNUInstallDirs") | ||
set(AOM_PKG_CONFIG_FILE "${AOM_CONFIG_DIR}/aom.pc") | ||
|
||
@@ -77,7 +77,8 @@ macro(setup_aom_install_targets) | ||
endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
- set(AOM_INSTALL_LIBS aom aom_static) | ||
+ set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom_static) | ||
+ set(AOM_INSTALL_LIBS aom) | ||
else() | ||
set(AOM_INSTALL_LIBS aom) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"3.3.0": | ||
folder: all | ||
"3.1.2": | ||
folder: all | ||
"3.1.1": | ||
|