Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:infi777:games
libaom
system-yuv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File system-yuv.patch of Package libaom
Index: libaom-3.8.1/CMakeLists.txt =================================================================== --- libaom-3.8.1.orig/CMakeLists.txt +++ libaom-3.8.1/CMakeLists.txt @@ -451,11 +451,14 @@ if(CONFIG_AV1_DECODER AND ENABLE_EXAMPLE endif() if(CONFIG_LIBYUV OR CONFIG_TUNE_BUTTERAUGLI) - add_library(yuv OBJECT ${AOM_LIBYUV_SOURCES}) - if(NOT MSVC) - target_compile_options(yuv PRIVATE -Wno-shadow) - endif() - include_directories("${AOM_ROOT}/third_party/libyuv/include") + find_package(PkgConfig REQUIRED) + pkg_check_modules(libyuv REQUIRED libyuv) + add_library(system_libyuv INTERFACE) + target_link_libraries(system_libyuv INTERFACE ${libyuv_LIBRARIES}) + target_link_directories(system_libyuv INTERFACE ${libyuv_LIBRARY_DIRS}) + target_link_options(system_libyuv INTERFACE ${libyuv_LDFLAGS_OTHER}) + target_include_directories(system_libyuv INTERFACE ${libyuv_INCLUDE_DIRS}) + target_compile_options(system_libyuv INTERFACE ${libyuv_CFLAGS_OTHER}) endif() if(CONFIG_AV1_ENCODER) @@ -577,10 +580,10 @@ if(CONFIG_AV1_ENCODER) set_target_properties(aom_static PROPERTIES LINKER_LANGUAGE CXX) endif() - list(APPEND AOM_LIB_TARGETS yuv) - target_sources(aom PRIVATE $<TARGET_OBJECTS:yuv>) + list(APPEND AOM_LIB_TARGETS system_libyuv) + target_link_libraries(aom PRIVATE system_libyuv) if(BUILD_SHARED_LIBS) - target_sources(aom_static PRIVATE $<TARGET_OBJECTS:yuv>) + target_link_libraries(aom_static PRIVATE system_libyuv) endif() endif() @@ -730,7 +733,7 @@ if(ENABLE_EXAMPLES OR ENABLE_TESTS OR EN if(CONFIG_LIBYUV) # Add to existing targets. foreach(aom_app ${AOM_APP_TARGETS}) - target_sources(${aom_app} PRIVATE $<TARGET_OBJECTS:yuv>) + target_link_libraries(${aom_app} PRIVATE system_libyuv) set_property(TARGET ${aom_app} PROPERTY LINKER_LANGUAGE CXX) endforeach() endif() Index: libaom-3.8.1/apps/aomdec.c =================================================================== --- libaom-3.8.1.orig/apps/aomdec.c +++ libaom-3.8.1/apps/aomdec.c @@ -43,7 +43,7 @@ #include "common/y4menc.h" #if CONFIG_LIBYUV -#include "third_party/libyuv/include/libyuv/scale.h" +#include <libyuv/scale.h> #endif static const char *exec_name; Index: libaom-3.8.1/apps/aomenc.c =================================================================== --- libaom-3.8.1.orig/apps/aomenc.c +++ libaom-3.8.1/apps/aomenc.c @@ -47,7 +47,7 @@ #include "stats/rate_hist.h" #if CONFIG_LIBYUV -#include "third_party/libyuv/include/libyuv/scale.h" +#include <libyuv/scale.h> #endif /* Swallow warnings about unused results of fread/fwrite */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor