mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
While we are tweaking all of the copyright headers, let's take the opportunity to ensure there is always a blank line after the copyright header for consistency. (Almost all files already follow this style.) This includes a slightly ugly regex to allow the end of a C-style comment block after the end of the copyright: /* * Example comment block */ <-- this line Change-Id: Idfd0855861e5ecb3d33afae942fdba908af0dcff Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3892521 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
31 lines
1.1 KiB
Bash
Executable file
31 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Regenerate ffmpeg bindgen bindings.
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/../.."
|
|
|
|
VERSIONS="media/ffmpeg/VERSIONS"
|
|
|
|
#source tools/impl/bindgen-common.sh
|
|
|
|
bindgen media/ffmpeg/src/bindings.h -o media/ffmpeg/src/ffmpeg.rs \
|
|
--allowlist-function "av_.*" \
|
|
--allowlist-function "avcodec_.*" \
|
|
--allowlist-function "sws_.*" \
|
|
--allowlist-function "av_image_.*" \
|
|
--allowlist-var "FF_PROFILE.*" \
|
|
--allowlist-var "AV_.*" \
|
|
--allowlist-var "AVERROR_.*"
|
|
|
|
echo "# These version numbers are updated by the bindgen.sh script" >$VERSIONS
|
|
echo "avcodec: `pkg-config --modversion libavcodec`" >>$VERSIONS
|
|
echo "avutil: `pkg-config --modversion libavutil`" >>$VERSIONS
|
|
echo "swscale: `pkg-config --modversion libswscale`" >>$VERSIONS
|
|
|
|
echo "Libraries versions updated in the VERSIONS file."
|
|
echo "Please check the minimum required versions in build.rs and make sure that"
|
|
echo "the major number is the same"
|