blob: 387817f6f875c61df3eb0b57cac0b46f0a481150 [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/dist/resource.gni")
import("//build/rust/rustc_library.gni")
import("//src/sys/build/components.gni")
rustc_library("parser") {
name = "ext4_parser"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.mem:fuchsia.mem-rustc",
"//src/lib/storage/vfs/rust:vfs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/ext4/read-only:ext4-read-only",
]
test_deps = [ "//sdk/fidl/fuchsia.io:fuchsia.io-rustc" ]
sources = [ "src/lib.rs" ]
}
resource("test-image") {
sources = [ "../read-only/test_files/nest.img" ]
outputs = [ "data/nest.img" ]
}
fuchsia_unittest_package("tests") {
package_name = "storage-ext4-parser-tests"
deps = [
":parser_test",
":test-image",
]
}