mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
967c892d9c
Always test the script, even when just adding a comment... BUG=None TEST=./tools/install-doc-deps Change-Id: I713d45f7dbfe7c6b7fc319399173749e9c6dce84 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3758181 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
23 lines
877 B
Bash
Executable file
23 lines
877 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.
|
|
|
|
# Install dependencies to generate mdbook documentation.
|
|
# Before running this script, `apt update` needs to be executed.
|
|
|
|
set -ex
|
|
|
|
# Install packages to run build.rs in some crate:
|
|
# * libcap-dev: Used by minijail-sys/build.rs
|
|
# * libudev-dev: Used by libudev-sys's build.rs, pulled by libva
|
|
# * protobuf-compiler: Generates Rust files in protos
|
|
sudo apt install --yes --no-install-recommends \
|
|
libcap-dev \
|
|
libudev-dev \
|
|
protobuf-compiler
|
|
|
|
# The mdbook and mdbook-mermaid tools are used to build the crosvm book.
|
|
cargo install mdbook --no-default-features --version "^0.4.10"
|
|
cargo install mdbook-mermaid --version "^0.8.3"
|
|
cargo install mdbook-linkcheck --version "^0.7.6"
|