crosvm/tools/install-deps

70 lines
1.4 KiB
Text
Raw Normal View History

#!/usr/bin/env bash
# Copyright 2021 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.
set -ex
sudo apt-get update
sudo apt-get install --yes --no-install-recommends \
ca-certificates \
clang \
cloud-image-utils \
curl \
dpkg-dev \
expect \
gcc \
git \
jq \
libasound2-dev \
libavcodec-dev \
libavutil-dev \
libclang-dev \
libdbus-1-dev \
libdrm-dev \
libepoxy-dev \
libguestfs-tools \
libssl-dev \
libswscale-dev \
libudev-dev \
libva-dev \
libwayland-dev \
libxext-dev \
make \
nasm \
ninja-build \
openssh-client \
pkg-config \
python3 \
python3-pip \
python3-setuptools \
qemu-system-x86 \
rsync \
screen \
wine64 \
gcc-mingw-w64-x86-64-win32 \
wayland-protocols
pip3 install \
meson \
mdformat \
argh \
mypy \
black
rustup component add clippy
rustup component add rustfmt
# LLVM tools are used to generate and process coverage files
rustup component add llvm-tools-preview
rustup target add x86_64-pc-windows-gnu
# The bindgen tool is required to build a crosvm dependency.
cargo install bindgen
# binutils are wrappers to call the rustup bundled versions of llvm tools.
cargo install cargo-binutils
Reland "github: Minimize dependencies for document generation" This is a reland of commit 2b85d4d1e521ef66f165bca21741b52607acdb22 Diff from the original CL: * Changed the return value of `main()` in power_monitor/build.rs * Ran cargo-check with all features enabled Original change's description: > github: Minimize dependencies for document generation > > Instead of install full dependencies with `install-deps` in GitHub > action, minimize dependencies because we use GitHub only for document > generation. > > - Passed `CARGO_DOC` environment when running cargo-doc command so we > can skip unnecessary build flow when we just want to generate API docs. > - Added a new script `install-docs-deps` to install only doc-related > dependencies. > > BUG=none > TEST=test on GitHub Action at my personal repository > > Change-Id: Ibe988ab43215e285d946812bdd6c1536ae87b50e > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3578144 > Tested-by: kokoro <noreply+kokoro@google.com> > Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> > Reviewed-by: Anton Romanov <romanton@google.com> > Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Bug=none TEST=cargo check --all-features Change-Id: I77ee6543910e3fe7f69be48f8f965eda3433d4e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3584063 Auto-Submit: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
2022-04-08 10:51:32 +00:00
# Install dependencies used to generate mdbook documentation.
$(dirname "$0")/install-docs-deps