| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 1 | # Copyright 2018 The Fuchsia Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| Josh Gargus | 87433be | 2022-05-19 21:10:10 +0000 | [diff] [blame] | 5 | import("//build/components.gni") |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 6 | import("//build/rust/rustc_library.gni") |
| 7 | |
| 8 | rustc_library("fuchsia-scenic") { |
| 9 | name = "fuchsia_scenic" |
| 10 | version = "0.1.0" |
| Joseph Ryan | 30357e2 | 2022-06-16 00:10:50 +0000 | [diff] [blame] | 11 | edition = "2021" |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 12 | |
| 13 | with_unit_tests = true |
| 14 | |
| 15 | deps = [ |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 16 | "//sdk/fidl/fuchsia.images:fuchsia.images-rustc", |
| Corey Tabaka | ec17910 | 2021-06-18 22:17:30 +0000 | [diff] [blame] | 17 | "//sdk/fidl/fuchsia.scenic.scheduling:fuchsia.scenic.scheduling-rustc", |
| Rob Tsuk | 4ca79d0 | 2020-10-02 20:21:15 +0000 | [diff] [blame] | 18 | "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem-rustc", |
| Emircan Uysaler | 188a92f | 2021-06-30 21:12:03 +0000 | [diff] [blame] | 19 | "//sdk/fidl/fuchsia.ui.composition:fuchsia.ui.composition-rustc", |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 20 | "//sdk/fidl/fuchsia.ui.gfx:fuchsia.ui.gfx-rustc", |
| 21 | "//sdk/fidl/fuchsia.ui.scenic:fuchsia.ui.scenic-rustc", |
| 22 | "//sdk/fidl/fuchsia.ui.views:fuchsia.ui.views-rustc", |
| Mitchell Kember | 1f6c412 | 2020-01-17 01:05:23 +0000 | [diff] [blame] | 23 | "//src/lib/fidl/rust/fidl", |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 24 | "//src/lib/mapped-vmo", |
| 25 | "//src/lib/zircon/rust:fuchsia-zircon", |
| 26 | "//third_party/rust_crates:anyhow", |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 27 | "//third_party/rust_crates:parking_lot", |
| Tamir Duberstein | d02bfc8 | 2022-07-20 06:50:46 +0000 | [diff] [blame^] | 28 | ] |
| 29 | |
| 30 | test_deps = [ |
| 31 | "//src/lib/fuchsia-async", |
| 32 | "//third_party/rust_crates:futures", |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 33 | ] |
| Adam Lesinski | 9f39a12 | 2020-07-22 21:17:36 +0000 | [diff] [blame] | 34 | |
| Adam Lesinski | 9f39a12 | 2020-07-22 21:17:36 +0000 | [diff] [blame] | 35 | sources = [ |
| 36 | "src/cmd.rs", |
| Josh Gargus | f8d351a | 2021-07-18 00:22:10 +0000 | [diff] [blame] | 37 | "src/flatland.rs", |
| Adam Lesinski | 9f39a12 | 2020-07-22 21:17:36 +0000 | [diff] [blame] | 38 | "src/lib.rs", |
| Josh Gargus | f8d351a | 2021-07-18 00:22:10 +0000 | [diff] [blame] | 39 | "src/sysmem.rs", |
| Adam Lesinski | 9f39a12 | 2020-07-22 21:17:36 +0000 | [diff] [blame] | 40 | "src/view_ref_pair.rs", |
| 41 | "src/view_token_pair.rs", |
| 42 | ] |
| Rob Tsuk | d2fd719 | 2020-01-15 07:27:14 +0000 | [diff] [blame] | 43 | } |
| Josh Gargus | 87433be | 2022-05-19 21:10:10 +0000 | [diff] [blame] | 44 | |
| 45 | fuchsia_unittest_package("fuchsia-scenic-tests") { |
| 46 | deps = [ ":fuchsia-scenic_test" ] |
| 47 | } |