From 6289de1d36c0ee83c2872c748a4874a1902fbf90 Mon Sep 17 00:00:00 2001 From: Dennis Kempin Date: Tue, 1 Nov 2022 21:25:48 +0000 Subject: [PATCH] gpu_display: Add build targets for example binaries This will allow them to be build via cargo build --bin simple cargo build --bin simple_open It will also include them in CI builds to ensure the code will not rot. BUG=None TEST=CQ Change-Id: Id6e73f3d5535141f5b1df0edc07c0f84cd03305b Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3997601 Reviewed-by: Luigi Semenzato Commit-Queue: Luigi Semenzato --- gpu_display/Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gpu_display/Cargo.toml b/gpu_display/Cargo.toml index 91bc9ae054..40ec8cb1c2 100644 --- a/gpu_display/Cargo.toml +++ b/gpu_display/Cargo.toml @@ -32,3 +32,11 @@ vm_control = { path = "../vm_control" } cc = "1.0.25" pkg-config = "0.3.11" cfg-if = "1.0.0" + +[[bin]] +name = "simple" +path = "examples/simple.rs" + +[[bin]] +name = "simple_open" +path = "examples/simple_open.rs"