mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-12 13:25:40 +00:00
power_monitor: make system_api dep optional
This is only needed when powerd feature is enabled. When powerd is not enabled, this change allows devices to build without the new system_api dependency. BUG=372302460 TEST=android-merge-2-cargo-embargo.sh && verify no new libdbus dependency Change-Id: Ie20c6ea5721d6ec1800b91f9d35d7fdea04fbf4a Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5936072 Commit-Queue: Devin Moore <devinmoore@google.com> Auto-Submit: Devin Moore <devinmoore@google.com> Reviewed-by: Frederick Mayle <fmayle@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
40920e7278
commit
f36fc40bbe
1 changed files with 2 additions and 2 deletions
|
@ -5,14 +5,14 @@ authors = ["The ChromiumOS Authors"]
|
|||
edition = "2021"
|
||||
|
||||
[features]
|
||||
powerd = ["dbus"]
|
||||
powerd = ["dbus", "system_api"]
|
||||
|
||||
[dependencies]
|
||||
base = { path = "../base" }
|
||||
dbus = { version = "0.9", optional = true }
|
||||
protobuf = "3.2"
|
||||
remain = "0.2"
|
||||
system_api = { path = "../system_api"}
|
||||
system_api = { path = "../system_api", optional = true }
|
||||
thiserror = "1.0.20"
|
||||
|
||||
[build-dependencies]
|
||||
|
|
Loading…
Reference in a new issue