blob: 84c55a2326b39c9f112b161b797f5f96cfd33bf8 [file]
# 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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
group("tests") {
testonly = true
deps = [
":default_hardware_ime_tests",
]
}
rustc_binary("bin") {
name = "default_hardware_ime"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.ui.input:fuchsia.ui.input-rustc",
"//sdk/fidl/fuchsia.ui.input2:fuchsia.ui.input2-rustc",
"//sdk/fidl/fuchsia.ui.text:fuchsia.ui.text-rustc",
"//src/ui/lib/text",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_derive",
"//third_party/rust_crates:serde_json",
]
}
package("default_hardware_ime") {
deps = [
":bin",
]
meta = [
{
path = rebase_path("meta/default_hardware_ime.cmx")
dest = "default_hardware_ime.cmx"
},
]
resources = [
{
path = rebase_path("assets/us.json")
dest = "us.json"
},
{
path = rebase_path("assets/us-legacy.json")
dest = "us-legacy.json"
},
]
binaries = [
{
name = "default_hardware_ime"
},
]
}
test_package("default_hardware_ime_tests") {
resources = [
{
path = rebase_path("assets/us.json")
dest = "us.json"
},
{
path = rebase_path("assets/us-legacy.json")
dest = "us-legacy.json"
},
]
deps = [
":bin_test",
]
tests = [
{
name = "default_hardware_ime_bin_test"
dest = "default_hardware_ime_unittests"
environments = basic_envs
},
]
}