Quelle generate_sources_mozbuild.sh
Sprache: Shell
#!/bin/bash -e # # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
# Modified from chromium/src/third_party/libaom/generate_gni.sh
# This script is used to generate sources.mozbuild and files in the # config/platform directories needed to build libaom. # Every time libaom source code is updated just run this script. # # Usage: # $ ./generate_sources_mozbuild.sh
# Generate arm64 optional arguments for *_rtcd.h files. # $1 - Header file directory. function gen_arm64_optional_args {
local file="$BASE_DIR/$LIBAOM_CONFIG_DIR/$1/config/aom_config.h"
# The features below are copied from the "ARM64_FLAVORS" in # AOM_DIR/build/cmake/cpu.cmake.
local arm64_flavors=( "NEON" "ARM_CRC32" "NEON_DOTPROD" "NEON_I8MM" "SVE" "SVE2"
)
local config=""
local opt=""
local args="" while read -r line; do for f in "${arm64_flavors[@]}"; do
config="HAVE_$f " if [[ $line == *"$config"* ]]; then
enabled=${line//*$config} if [[ $enabled -eq 0 ]]; then
opt=$(echo $f | tr '[:upper:]''[:lower:]')
args=$(echo $args; echo"--disable-$opt") fi fi done done < $file
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.