mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 18:38:01 +00:00
22 lines
793 B
Text
22 lines
793 B
Text
|
#!/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
|
||
|
# * protobuf-compiler: Generates Rust files in protos
|
||
|
sudo apt install --yes --no-install-recommends \
|
||
|
libcap-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"
|