mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
c7cd0e0114
As we are going to introduce more media-related crates, reserve the "media" folder as a placeholder for them, starting with the existing libvda. BUG=b:169295147 BUG=b:214478588 TEST=cargo build --features "video-decoder,video-encoder,libvda" Change-Id: I1b2ec65cbba8b735db3d19845c504546fa1c64ca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3565623 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
34 lines
738 B
Bash
Executable file
34 lines
738 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Regenerate all bindgen-generated Rust bindings in the crosvm tree.
|
|
#
|
|
# This script expects to be executed from a full Chrome OS checkout so it has access to the kernel
|
|
# and other repositories.
|
|
|
|
set -e
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
source tools/impl/bindgen-common.sh
|
|
|
|
die() {
|
|
echo "$@"
|
|
exit 1
|
|
}
|
|
|
|
dirs=(
|
|
io_uring
|
|
devices/src/virtio/gpu
|
|
kernel_loader
|
|
kvm_sys
|
|
media/libvda
|
|
)
|
|
|
|
for d in "${dirs[@]}"; do
|
|
echo "bindgen ${d}"
|
|
"${d}"/bindgen.sh || die "Failed to generate bindings for ${d}"
|
|
done
|
|
|
|
echo "Done!"
|