blob: 53fe32cd7c2755187d056a34cb0e6ae4d0051f87 [file] [log] [blame]
# 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")
rustc_binary("bin") {
name = "default_hardware_ime"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/lib/ui/text/common:text_common",
"//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.text:fuchsia.ui.text-rustc",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
}
package("default_hardware_ime") {
meta = [
{
path = rebase_path("meta/default_hardware_ime.cmx")
dest = "default_hardware_ime.cmx"
},
]
resources = [
{
path = rebase_path("assets/us.json")
dest = "us.json"
},
]
deps = [
":bin",
]
binary = "default_hardware_ime"
}
test_package("default_hardware_ime_tests") {
resources = [
{
path = rebase_path("assets/us.json")
dest = "us.json"
},
]
deps = [
":bin",
]
tests = [
{
name = "default_hardware_ime_bin_test"
dest = "default_hardware_ime_unittests"
environments = basic_envs
},
]
}