mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
This search/replace updates all copyright notices to drop the "All rights reserved", Use "ChromiumOS" instead of "Chromium OS" and drops the trailing dots. This fulfills the request from legal and unifies our notices. ./tools/health-check has been updated to only accept this style. BUG=b:246579983 TEST=./tools/health-check Change-Id: I87a80701dc651f1baf4820e5cc42469d7c5f5bf7 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3894243 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com>
50 lines
1.1 KiB
Bash
Executable file
50 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2021 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
set -ex
|
|
|
|
# Build cargo-doc
|
|
# $ ./tools/cargo-doc --target-dir /path/to/dir
|
|
|
|
echo "start cargo-doc"
|
|
|
|
MANIFEST_PATH=$(dirname "$0")/../Cargo.toml
|
|
|
|
echo "manifest = ${MANIFEST_PATH}"
|
|
|
|
DISABLED_FEATURES=(
|
|
audio_cras
|
|
chromeos
|
|
crash-report
|
|
libvda
|
|
power-monitor-powerd
|
|
video-decoder
|
|
video-encoder
|
|
)
|
|
|
|
ALL_FEATURES=$(
|
|
cargo metadata --manifest-path "${MANIFEST_PATH}" | \
|
|
jq -r '.packages[] |
|
|
select(.name == "crosvm") |
|
|
.features |
|
|
keys[]')
|
|
|
|
features=""
|
|
|
|
for f in $ALL_FEATURES; do
|
|
if [[ ! "${DISABLED_FEATURES[*]}" =~ $f ]]; then
|
|
features+=",${f}"
|
|
fi
|
|
done
|
|
|
|
# Set an environment variable 'CARGO_DOC' here so that each build.rs can skip
|
|
# building unnecessary dependencies to generate documentations.
|
|
CARGO_DOC="true" cargo doc \
|
|
--manifest-path="${MANIFEST_PATH}" \
|
|
--workspace \
|
|
--no-deps \
|
|
--exclude crosvm-fuzz \
|
|
--features="${features}" "$@" \
|
|
--document-private-items
|