mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
ccb9014afb
All of the developer tooling has moved to ./tools to make them easier to discover. BUG=None TEST=None Change-Id: I4daf6a0ca08c94a0c35ce8bc52f9d86e4cb15de9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3251781 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
22 lines
868 B
Bash
Executable file
22 lines
868 B
Bash
Executable file
#!/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.
|
|
#
|
|
# To build crosvm using cargo against libraries and crates provided by ChromeOS
|
|
# use this script to update path references in Cargo.toml.
|
|
|
|
declare -A replacements=(
|
|
["libcras_stub"]="../../third_party/adhd/cras/client/libcras"
|
|
["system_api_stub"]="../../platform2/system_api"
|
|
["third_party/minijail"]="../../aosp/external/minijail"
|
|
["third_party/vmm_vhost"]="../../third_party/rust-vmm/vhost"
|
|
)
|
|
|
|
for crate in "${!replacements[@]}"; do
|
|
echo "Replacing '${crate}' with '${replacements[$crate]}'"
|
|
sed -i "s|path = \"${crate}|path = \"${replacements[$crate]}|g" \
|
|
Cargo.toml
|
|
done
|
|
|
|
echo "Modified Cargo.toml with new paths. Please do not commit those."
|