mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 08:47:31 +09:00
aom: update libaom to 0ec86ac7ae1e32a7e70410fa4972a655ec3670a4
This commit is contained in:
parent
bc3f20e378
commit
eb361970c5
438 changed files with 52661 additions and 21905 deletions
|
|
@ -101,32 +101,22 @@ set_aom_config_var(CONFIG_DENOISE 1 NUMBER
|
|||
"Denoise/noise modeling support in encoder.")
|
||||
set_aom_config_var(CONFIG_FILEOPTIONS 1 NUMBER
|
||||
"Enables encoder config file support.")
|
||||
set_aom_config_var(CONFIG_FIX_GF_LENGTH 1 NUMBER
|
||||
"Fix the GF length if possible")
|
||||
set_aom_config_var(CONFIG_INSPECTION 0 NUMBER "Enables bitstream inspection.")
|
||||
set_aom_config_var(CONFIG_INTERNAL_STATS 0 NUMBER
|
||||
"Enables internal encoder stats.")
|
||||
set_aom_config_var(CONFIG_LOWBITDEPTH 0 NUMBER
|
||||
set_aom_config_var(CONFIG_LOWBITDEPTH 1 NUMBER
|
||||
"Enables 8-bit optimized pipeline.")
|
||||
set_aom_config_var(CONFIG_MAX_DECODE_PROFILE 2 NUMBER
|
||||
"Max profile to support decoding.")
|
||||
set_aom_config_var(CONFIG_NORMAL_TILE_MODE 0 NUMBER
|
||||
"Only enables normal tile mode.")
|
||||
set_aom_config_var(
|
||||
CONFIG_REDUCED_ENCODER_BORDER 0 NUMBER
|
||||
"Enable reduced border extention for encoder. \
|
||||
Disables superres and resize support."
|
||||
)
|
||||
set_aom_config_var(CONFIG_SIZE_LIMIT 0 NUMBER "Limit max decode width/height.")
|
||||
set_aom_config_var(CONFIG_SPATIAL_RESAMPLING 1 NUMBER "Spatial resampling.")
|
||||
set_aom_config_var(DECODE_HEIGHT_LIMIT 0 NUMBER "Set limit for decode height.")
|
||||
set_aom_config_var(DECODE_WIDTH_LIMIT 0 NUMBER "Set limit for decode width.")
|
||||
set_aom_config_var(CONFIG_GLOBAL_MOTION_SEARCH 1 NUMBER
|
||||
"Global motion search flag.")
|
||||
|
||||
# AV1 experiment flags.
|
||||
set_aom_config_var(CONFIG_COLLECT_INTER_MODE_RD_STATS 1 NUMBER
|
||||
"AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_SPEED_STATS 0 NUMBER "AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_COLLECT_RD_STATS 0 NUMBER "AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_DIST_8X8 0 NUMBER "AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_ENTROPY_STATS 0 NUMBER "AV1 experiment flag.")
|
||||
|
|
@ -135,8 +125,12 @@ set_aom_config_var(CONFIG_INTER_STATS_ONLY 0 NUMBER "AV1 experiment flag.")
|
|||
set_aom_config_var(CONFIG_RD_DEBUG 0 NUMBER "AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_2PASS_PARTITION_SEARCH_LVL 1 NUMBER
|
||||
"AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_SHARP_SETTINGS 0 NUMBER
|
||||
"Use sharper encoding settings")
|
||||
set_aom_config_var(CONFIG_SHARP_SETTINGS 0 NUMBER "AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_ONE_PASS_SVM 0 NUMBER "AV1 experiment flag.")
|
||||
set_aom_config_var(CONFIG_DISABLE_FULL_PIXEL_SPLIT_8X8 1 NUMBER
|
||||
"Disable full_pixel_motion_search_based_split on BLOCK_8X8.")
|
||||
set_aom_config_var(CONFIG_COLLECT_PARTITION_STATS 0 NUMBER
|
||||
"Collect stats on partition decisions.")
|
||||
|
||||
#
|
||||
# Variables in this section control optional features of the build system.
|
||||
|
|
|
|||
50
third_party/aom/build/cmake/aom_configure.cmake
vendored
50
third_party/aom/build/cmake/aom_configure.cmake
vendored
|
|
@ -17,9 +17,6 @@ include(FindGit)
|
|||
include(FindPerl)
|
||||
include(FindThreads)
|
||||
|
||||
set(AOM_SUPPORTED_CPU_TARGETS
|
||||
"arm64 armv7 armv7s generic mips32 mips64 ppc x86 x86_64")
|
||||
|
||||
include("${AOM_ROOT}/build/cmake/aom_config_defaults.cmake")
|
||||
include("${AOM_ROOT}/build/cmake/aom_experiment_deps.cmake")
|
||||
include("${AOM_ROOT}/build/cmake/aom_optimization.cmake")
|
||||
|
|
@ -70,8 +67,12 @@ if(NOT AOM_TARGET_CPU)
|
|||
endif()
|
||||
|
||||
if(CMAKE_TOOLCHAIN_FILE) # Add toolchain file to config string.
|
||||
file(RELATIVE_PATH toolchain_path "${AOM_CONFIG_DIR}"
|
||||
"${CMAKE_TOOLCHAIN_FILE}")
|
||||
if(IS_ABSOLUTE "${CMAKE_TOOLCHAIN_FILE}")
|
||||
file(RELATIVE_PATH toolchain_path "${AOM_CONFIG_DIR}"
|
||||
"${CMAKE_TOOLCHAIN_FILE}")
|
||||
else()
|
||||
set(toolchain_path "${CMAKE_TOOLCHAIN_FILE}")
|
||||
endif()
|
||||
set(toolchain_string "-DCMAKE_TOOLCHAIN_FILE=\\\"${toolchain_path}\\\"")
|
||||
set(AOM_CMAKE_CONFIG "${toolchain_string} ${AOM_CMAKE_CONFIG}")
|
||||
else()
|
||||
|
|
@ -104,7 +105,7 @@ if(NOT MSVC)
|
|||
# work.
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
if("${AOM_TARGET_SYSTEM}" STREQUAL "Linux" AND "${AOM_TARGET_CPU}" MATCHES
|
||||
"^armv7")
|
||||
"^armv[78]")
|
||||
set(AOM_AS_FLAGS ${AOM_AS_FLAGS} --defsym PIC=1)
|
||||
else()
|
||||
set(AOM_AS_FLAGS ${AOM_AS_FLAGS} -DPIC)
|
||||
|
|
@ -112,13 +113,6 @@ if(NOT MSVC)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT "${AOM_SUPPORTED_CPU_TARGETS}" MATCHES "${AOM_TARGET_CPU}")
|
||||
message(FATAL_ERROR
|
||||
"No RTCD support for ${AOM_TARGET_CPU}. Create it, or "
|
||||
"add -DAOM_TARGET_CPU=generic to your cmake command line for a "
|
||||
"generic build of libaom and tools.")
|
||||
endif()
|
||||
|
||||
if("${AOM_TARGET_CPU}" STREQUAL "x86" OR "${AOM_TARGET_CPU}" STREQUAL "x86_64")
|
||||
find_program(AS_EXECUTABLE yasm $ENV{YASM_PATH})
|
||||
if(NOT AS_EXECUTABLE OR ENABLE_NASM)
|
||||
|
|
@ -184,6 +178,12 @@ if("${AOM_TARGET_SYSTEM}" MATCHES "Darwin\|Linux\|Windows")
|
|||
set(CONFIG_OS_SUPPORT 1)
|
||||
endif()
|
||||
|
||||
# The default _WIN32_WINNT value in MinGW is 0x0502 (Windows XP with SP2). Set
|
||||
# it to 0x0601 (Windows 7).
|
||||
if("${AOM_TARGET_SYSTEM}" STREQUAL "Windows")
|
||||
add_compiler_flag_if_supported("-D_WIN32_WINNT=0x0601")
|
||||
endif()
|
||||
|
||||
#
|
||||
# Fix CONFIG_* dependencies. This must be done before including cpu.cmake to
|
||||
# ensure RTCD_CONFIG_* are properly set.
|
||||
|
|
@ -252,6 +252,7 @@ if(MSVC)
|
|||
endif()
|
||||
else()
|
||||
require_c_flag("-std=c99" YES)
|
||||
require_cxx_flag_nomsvc("-std=c++11" YES)
|
||||
add_compiler_flag_if_supported("-Wall")
|
||||
add_compiler_flag_if_supported("-Wdisabled-optimization")
|
||||
add_compiler_flag_if_supported("-Wextra")
|
||||
|
|
@ -266,8 +267,17 @@ else()
|
|||
add_compiler_flag_if_supported("-Wunused")
|
||||
add_compiler_flag_if_supported("-Wvla")
|
||||
|
||||
add_c_flag_if_supported("-Wstack-usage=100000")
|
||||
add_cxx_flag_if_supported("-Wstack-usage=360000")
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND "${SANITIZE}" MATCHES
|
||||
"address|undefined")
|
||||
|
||||
# This combination has more stack overhead, so we account for it by
|
||||
# providing higher stack limit than usual.
|
||||
add_c_flag_if_supported("-Wstack-usage=170000")
|
||||
add_cxx_flag_if_supported("-Wstack-usage=270000")
|
||||
else()
|
||||
add_c_flag_if_supported("-Wstack-usage=100000")
|
||||
add_cxx_flag_if_supported("-Wstack-usage=240000")
|
||||
endif()
|
||||
|
||||
# TODO(jzern): this could be added as a cxx flags for test/*.cc only, avoiding
|
||||
# third_party.
|
||||
|
|
@ -365,13 +375,3 @@ execute_process(COMMAND ${CMAKE_COMMAND} -DAOM_CONFIG_DIR=${AOM_CONFIG_DIR}
|
|||
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
|
||||
-DPERL_EXECUTABLE=${PERL_EXECUTABLE} -P
|
||||
"${AOM_ROOT}/build/cmake/version.cmake")
|
||||
|
||||
if(NOT MSVC) # Generate aom.pc (pkg-config file).
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -DAOM_CONFIG_DIR=${AOM_CONFIG_DIR}
|
||||
-DAOM_ROOT=${AOM_ROOT}
|
||||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
|
||||
-DCMAKE_PROJECT_NAME=${CMAKE_PROJECT_NAME}
|
||||
-DCONFIG_MULTITHREAD=${CONFIG_MULTITHREAD}
|
||||
-DHAVE_PTHREAD_H=${HAVE_PTHREAD_H} -P
|
||||
"${AOM_ROOT}/build/cmake/pkg_config.cmake")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ macro(fix_experiment_configs)
|
|||
change_config_and_warn(CONFIG_INSPECTION 1 CONFIG_ANALYZER)
|
||||
endif()
|
||||
|
||||
if(CONFIG_RD_DEBUG)
|
||||
change_config_and_warn(CONFIG_RD_DEBUG 0 CONFIG_JNT_COMP)
|
||||
endif()
|
||||
|
||||
if(CONFIG_DIST_8X8 AND CONFIG_MULTITHREAD)
|
||||
change_config_and_warn(CONFIG_DIST_8X8 0 CONFIG_MULTITHREAD)
|
||||
endif()
|
||||
|
|
|
|||
90
third_party/aom/build/cmake/aom_install.cmake
vendored
Normal file
90
third_party/aom/build/cmake/aom_install.cmake
vendored
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
#
|
||||
# Copyright (c) 2018, Alliance for Open Media. All rights reserved
|
||||
#
|
||||
# This source code is subject to the terms of the BSD 2 Clause License and the
|
||||
# Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License was
|
||||
# not distributed with this source code in the LICENSE file, you can obtain it
|
||||
# at www.aomedia.org/license/software. If the Alliance for Open Media Patent
|
||||
# License 1.0 was not distributed with this source code in the PATENTS file, you
|
||||
# can obtain it at www.aomedia.org/license/patent.
|
||||
#
|
||||
list(APPEND AOM_INSTALL_INCS "${AOM_ROOT}/aom/aom.h"
|
||||
"${AOM_ROOT}/aom/aom_codec.h" "${AOM_ROOT}/aom/aom_frame_buffer.h"
|
||||
"${AOM_ROOT}/aom/aom_image.h" "${AOM_ROOT}/aom/aom_integer.h"
|
||||
"${AOM_ROOT}/aom/aom.h")
|
||||
|
||||
if(CONFIG_AV1_DECODER)
|
||||
list(APPEND AOM_INSTALL_INCS "${AOM_ROOT}/aom/aom_decoder.h"
|
||||
"${AOM_ROOT}/aom/aomdx.h")
|
||||
endif()
|
||||
|
||||
if(CONFIG_AV1_ENCODER)
|
||||
list(APPEND AOM_INSTALL_INCS "${AOM_ROOT}/aom/aomcx.h"
|
||||
"${AOM_ROOT}/aom/aom_encoder.h")
|
||||
endif()
|
||||
|
||||
# Generate aom.pc and setup dependencies to ensure it is created when necessary.
|
||||
# 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))
|
||||
include("GNUInstallDirs")
|
||||
set(AOM_PKG_CONFIG_FILE "${AOM_CONFIG_DIR}/aom.pc")
|
||||
|
||||
# Create a dummy library target for creating aom.pc.
|
||||
create_dummy_source_file(aom_pc c AOM_PKG_CONFIG_SOURCES)
|
||||
add_library(aom_pc ${AOM_PKG_CONFIG_SOURCES})
|
||||
|
||||
# Setup a rule to generate aom.pc.
|
||||
add_custom_command(OUTPUT "${AOM_PKG_CONFIG_FILE}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} ARGS
|
||||
-DAOM_CONFIG_DIR=${AOM_CONFIG_DIR}
|
||||
-DAOM_ROOT=${AOM_ROOT}
|
||||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
|
||||
-DCMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=${CMAKE_INSTALL_INCLUDEDIR}
|
||||
-DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}
|
||||
-DCMAKE_PROJECT_NAME=${CMAKE_PROJECT_NAME}
|
||||
-DCONFIG_MULTITHREAD=${CONFIG_MULTITHREAD}
|
||||
-DHAVE_PTHREAD_H=${HAVE_PTHREAD_H} -P
|
||||
"${AOM_ROOT}/build/cmake/pkg_config.cmake"
|
||||
COMMENT "Writing aom.pc" VERBATIM)
|
||||
|
||||
# Explicitly add a dependency on the pkg-config file to ensure it's built.
|
||||
get_property(aom_pc_sources TARGET aom_pc PROPERTY SOURCES)
|
||||
set_source_files_properties(${aom_pc_sources} OBJECT_DEPENDS
|
||||
"${AOM_PKG_CONFIG_FILE}")
|
||||
|
||||
# Our pkg-config file carries version information: add a dependency on the
|
||||
# version rule.
|
||||
add_dependencies(aom_pc aom_version)
|
||||
|
||||
if(CONFIG_AV1_DECODER)
|
||||
if(ENABLE_EXAMPLES)
|
||||
list(APPEND AOM_INSTALL_BINS aomdec)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_AV1_ENCODER)
|
||||
if(ENABLE_EXAMPLES)
|
||||
list(APPEND AOM_INSTALL_BINS aomenc)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(AOM_INSTALL_LIBS aom)
|
||||
|
||||
# Setup the install rules.
|
||||
install(FILES ${AOM_INSTALL_INCS} DESTINATION
|
||||
"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/aom")
|
||||
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}")
|
||||
|
||||
if(ENABLE_EXAMPLES)
|
||||
install(TARGETS ${AOM_INSTALL_BINS} DESTINATION
|
||||
"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}")
|
||||
endif()
|
||||
endif()
|
||||
endmacro()
|
||||
13
third_party/aom/build/cmake/cpu.cmake
vendored
13
third_party/aom/build/cmake/cpu.cmake
vendored
|
|
@ -9,18 +9,7 @@
|
|||
# can obtain it at www.aomedia.org/license/patent.
|
||||
#
|
||||
|
||||
if("${AOM_TARGET_CPU}" STREQUAL "arm64")
|
||||
set(ARCH_ARM 1)
|
||||
set(RTCD_ARCH_ARM "yes")
|
||||
|
||||
if(ENABLE_NEON)
|
||||
set(HAVE_NEON 1)
|
||||
set(RTCD_HAVE_NEON "yes")
|
||||
else()
|
||||
set(HAVE_NEON 0)
|
||||
set(AOM_RTCD_FLAGS ${AOM_RTCD_FLAGS} --disable-neon)
|
||||
endif()
|
||||
elseif("${AOM_TARGET_CPU}" MATCHES "^armv7")
|
||||
if("${AOM_TARGET_CPU}" MATCHES "^arm")
|
||||
set(ARCH_ARM 1)
|
||||
set(RTCD_ARCH_ARM "yes")
|
||||
|
||||
|
|
|
|||
1
third_party/aom/build/cmake/exports.cmake
vendored
1
third_party/aom/build/cmake/exports.cmake
vendored
|
|
@ -35,6 +35,7 @@ function(setup_exports_target)
|
|||
-DAOM_XCODE=${XCODE} -DCONFIG_NAME=$<CONFIG>
|
||||
-DCONFIG_AV1_DECODER=${CONFIG_AV1_DECODER}
|
||||
-DCONFIG_AV1_ENCODER=${CONFIG_AV1_ENCODER}
|
||||
-DCONFIG_INSPECTION=${CONFIG_INSPECTION}
|
||||
-DENABLE_TESTS=${ENABLE_TESTS} -P
|
||||
"${AOM_ROOT}/build/cmake/generate_exports.cmake"
|
||||
SOURCES ${AOM_EXPORTS_SOURCES}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ list(APPEND AOM_EXPORTS_SOURCES "${AOM_ROOT}/aom/exports_com"
|
|||
if(CONFIG_AV1_DECODER)
|
||||
list(APPEND AOM_EXPORTS_SOURCES "${AOM_ROOT}/aom/exports_dec"
|
||||
"${AOM_ROOT}/av1/exports_dec")
|
||||
if(CONFIG_INSPECTION)
|
||||
list(APPEND AOM_EXPORTS_SOURCES "${AOM_ROOT}/av1/exports_ident")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_AV1_ENCODER)
|
||||
|
|
|
|||
22
third_party/aom/build/cmake/pkg_config.cmake
vendored
22
third_party/aom/build/cmake/pkg_config.cmake
vendored
|
|
@ -11,6 +11,7 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(REQUIRED_ARGS "AOM_ROOT" "AOM_CONFIG_DIR" "CMAKE_INSTALL_PREFIX"
|
||||
"CMAKE_INSTALL_BINDIR" "CMAKE_INSTALL_INCLUDEDIR" "CMAKE_INSTALL_LIBDIR"
|
||||
"CMAKE_PROJECT_NAME" "CONFIG_MULTITHREAD" "HAVE_PTHREAD_H")
|
||||
|
||||
foreach(arg ${REQUIRED_ARGS})
|
||||
|
|
@ -34,25 +35,28 @@ endif()
|
|||
|
||||
# Write pkg-config info.
|
||||
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||
set(bindir "${CMAKE_INSTALL_BINDIR}")
|
||||
set(includedir "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
set(libdir "${CMAKE_INSTALL_LIBDIR}")
|
||||
set(pkgconfig_file "${AOM_CONFIG_DIR}/aom.pc")
|
||||
string(TOLOWER ${CMAKE_PROJECT_NAME} pkg_name)
|
||||
file(WRITE "${pkgconfig_file}" "# libaom pkg-config.\n")
|
||||
file(APPEND "${pkgconfig_file}" "prefix=${prefix}\n")
|
||||
file(APPEND "${pkgconfig_file}" "exec_prefix=\${prefix}/bin\n")
|
||||
file(APPEND "${pkgconfig_file}" "libdir=\${prefix}/lib\n")
|
||||
file(APPEND "${pkgconfig_file}" "includedir=\${prefix}/include\n\n")
|
||||
file(APPEND "${pkgconfig_file}" "exec_prefix=\${prefix}\n")
|
||||
file(APPEND "${pkgconfig_file}" "includedir=\${prefix}/${includedir}\n")
|
||||
file(APPEND "${pkgconfig_file}" "libdir=\${exec_prefix}/${libdir}\n\n")
|
||||
file(APPEND "${pkgconfig_file}" "Name: ${pkg_name}\n")
|
||||
file(APPEND "${pkgconfig_file}"
|
||||
"Description: AV1 codec library v${aom_version}.\n")
|
||||
file(
|
||||
APPEND
|
||||
"${pkgconfig_file}"
|
||||
"Description: Alliance for Open Media AV1 codec library v${aom_version}.\n")
|
||||
file(APPEND "${pkgconfig_file}" "Version: ${package_version}\n")
|
||||
file(APPEND "${pkgconfig_file}" "Requires:\n")
|
||||
file(APPEND "${pkgconfig_file}" "Conflicts:\n")
|
||||
file(APPEND "${pkgconfig_file}" "Libs: -L\${libdir} -l${pkg_name}\n")
|
||||
if(CONFIG_MULTITHREAD AND HAVE_PTHREAD_H)
|
||||
file(APPEND "${pkgconfig_file}"
|
||||
"Libs: -L\${prefix}/lib -l${pkg_name} -lm -lpthread\n")
|
||||
file(APPEND "${pkgconfig_file}" "Libs.private: -lm -lpthread\n")
|
||||
else()
|
||||
file(APPEND "${pkgconfig_file}" "Libs: -L\${prefix}/lib -l${pkg_name} -lm\n")
|
||||
file(APPEND "${pkgconfig_file}" "Libs.private: -lm\n")
|
||||
endif()
|
||||
file(APPEND "${pkgconfig_file}" "Cflags: -I\${prefix}/include\n")
|
||||
file(APPEND "${pkgconfig_file}" "Cflags: -I\${includedir}\n")
|
||||
|
|
|
|||
4
third_party/aom/build/cmake/rtcd.pl
vendored
4
third_party/aom/build/cmake/rtcd.pl
vendored
|
|
@ -426,10 +426,10 @@ if ($opts{arch} eq 'x86') {
|
|||
@ALL_ARCHS = filter("$opts{arch}", qw/msa/);
|
||||
}
|
||||
mips;
|
||||
} elsif ($opts{arch} =~ /armv7\w?/) {
|
||||
} elsif ($opts{arch} =~ /armv[78]\w?/) {
|
||||
@ALL_ARCHS = filter(qw/neon/);
|
||||
arm;
|
||||
} elsif ($opts{arch} eq 'armv8' || $opts{arch} eq 'arm64' ) {
|
||||
} elsif ($opts{arch} eq 'arm64' ) {
|
||||
@ALL_ARCHS = filter(qw/neon/);
|
||||
&require("neon");
|
||||
arm;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,3 @@ set(CMAKE_RANLIB ${CROSS}ranlib CACHE FILEPATH Indexer)
|
|||
|
||||
# No runtime cpu detect for arm64-mingw-gcc.
|
||||
set(CONFIG_RUNTIME_CPU_DETECT 0 CACHE NUMBER "")
|
||||
|
||||
# Disable the use of the gtest's CMake support.
|
||||
set(AOM_DISABLE_GTEST_CMAKE 1)
|
||||
|
|
|
|||
|
|
@ -27,6 +27,3 @@ set(CMAKE_RANLIB ${CROSS}ranlib CACHE FILEPATH Indexer)
|
|||
|
||||
# No runtime cpu detect for armv7-mingw-gcc.
|
||||
set(CONFIG_RUNTIME_CPU_DETECT 0 CACHE NUMBER "")
|
||||
|
||||
# Disable the use of the gtest's CMake support.
|
||||
set(AOM_DISABLE_GTEST_CMAKE 1)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,3 @@ set(CMAKE_C_COMPILER ${CROSS}gcc)
|
|||
set(CMAKE_CXX_COMPILER ${CROSS}g++)
|
||||
set(CMAKE_AR ${CROSS}ar CACHE FILEPATH Archiver)
|
||||
set(CMAKE_RANLIB ${CROSS}ranlib CACHE FILEPATH Indexer)
|
||||
|
||||
# Disable the use of the gtest's CMake support.
|
||||
set(AOM_DISABLE_GTEST_CMAKE 1)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,3 @@ set(CMAKE_C_COMPILER ${CROSS}gcc)
|
|||
set(CMAKE_CXX_COMPILER ${CROSS}g++)
|
||||
set(CMAKE_AR ${CROSS}ar CACHE FILEPATH Archiver)
|
||||
set(CMAKE_RANLIB ${CROSS}ranlib CACHE FILEPATH Indexer)
|
||||
|
||||
# Disable the use of the gtest's CMake support.
|
||||
set(AOM_DISABLE_GTEST_CMAKE 1)
|
||||
|
|
|
|||
14
third_party/aom/build/cmake/util.cmake
vendored
14
third_party/aom/build/cmake/util.cmake
vendored
|
|
@ -16,10 +16,10 @@ set(AOM_BUILD_CMAKE_UTIL_CMAKE_ 1)
|
|||
# Directory where generated sources will be written.
|
||||
set(AOM_GEN_SRC_DIR "${AOM_CONFIG_DIR}/gen_src")
|
||||
|
||||
# Creates dummy source file in $AOM_CONFIG_DIR named $basename.$extension and
|
||||
# returns the full path to the dummy source file via the $out_file_path
|
||||
# parameter.
|
||||
macro(create_dummy_source_file basename extension out_file_path)
|
||||
# Creates dummy source file in $AOM_GEN_SRC_DIR named $basename.$extension and
|
||||
# returns the full path to the dummy source file via appending it to the list
|
||||
# variable referred to by $out_file_list_var parameter.
|
||||
macro(create_dummy_source_file basename extension out_file_list_var)
|
||||
set(dummy_source_file "${AOM_GEN_SRC_DIR}/${basename}_dummy.${extension}")
|
||||
file(
|
||||
WRITE
|
||||
|
|
@ -27,13 +27,15 @@ macro(create_dummy_source_file basename extension out_file_path)
|
|||
"// ${target_name} needs a ${extension} file to force link language, \n"
|
||||
"// or to silence a harmless CMake warning: Ignore me.\n"
|
||||
"void ${target_name}_dummy_function(void) {}\n")
|
||||
list(APPEND "${out_file_list_var}" "${dummy_source_file}")
|
||||
endmacro()
|
||||
|
||||
# Convenience function for adding a dummy source file to $target_name using
|
||||
# $extension as the file extension. Wraps create_dummy_source_file().
|
||||
function(add_dummy_source_file_to_target target_name extension)
|
||||
create_dummy_source_file("${target_name}" "${extension}" "dummy_source_file")
|
||||
target_sources(${target_name} PRIVATE ${dummy_source_file})
|
||||
create_dummy_source_file("${target_name}" "${extension}"
|
||||
"dummy_source_file_list")
|
||||
target_sources(${target_name} PRIVATE ${dummy_source_file_list})
|
||||
endfunction()
|
||||
|
||||
# Sets the value of the variable referenced by $feature to $value, and reports
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue