| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/rust/rustc_library.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_library("spinel-rs") { |
| name = "spinel-rs" |
| with_unit_tests = true |
| version = "0.1.0" |
| edition = "2018" |
| deps = [ |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:thiserror", |
| ] |
| non_rust_deps = [ |
| # TODO: Currently we're using a stubbed out version |
| # of Spinel that always returns OK. Will eventually |
| # be replaced with actual Spinel once we have a way |
| # to run the tests. |
| # "//src/graphics/lib/compute/spinel", |
| ] |
| features = [ "spinel-null" ] |
| |
| sources = [ |
| "src/context.rs", |
| "src/lib.rs", |
| "src/path.rs", |
| "src/path_builder.rs", |
| "src/raster.rs", |
| "src/raster_builder.rs", |
| "src/spinel_sys.rs", |
| ] |
| } |
| |
| unittest_package("spinel-rs-tests") { |
| deps = [ ":spinel-rs_test" ] |
| tests = [ |
| { |
| name = "spinel_rs_lib_test" |
| }, |
| ] |
| } |