| # 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/config/fuchsia/rules.gni") |
| |
| driver_module("fvm") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ] |
| configs += [ |
| "//build/config/fuchsia:static_cpp_standard_library", |
| "//build/unification/config:zircon-migrated", |
| ] |
| deps = [ |
| ":shared", |
| "//sdk/lib/syslog/cpp:backend_legacy", |
| "//src/devices/lib/driver", |
| ] |
| } |
| |
| # Also used by test/. |
| source_set("shared") { |
| visibility = [ "./*" ] |
| configs += [ "//build/config:all_source" ] |
| sources = [ |
| "fvm.cc", |
| "slice-extent.cc", |
| "vpartition.cc", |
| ] |
| public_deps = [ |
| "//sdk/banjo/ddk.protocol.block", |
| "//sdk/banjo/ddk.protocol.block.partition", |
| "//sdk/banjo/ddk.protocol.block.volume", |
| "//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_c", |
| "//sdk/fidl/fuchsia.hardware.block.partition:fuchsia.hardware.block.partition_c", |
| "//sdk/fidl/fuchsia.hardware.block.volume:fuchsia.hardware.block.volume_c", |
| "//src/lib/ddk", |
| |
| # TODO(fxb/38132): Migrate to the new bind rules and delete the below |
| "//src/lib/ddk:ddk-deprecated-binding-headers", |
| "//src/lib/ddktl", |
| "//src/lib/uuid:uuid", |
| "//third_party/boringssl", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zircon-internal", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/digest", |
| "//zircon/system/ulib/fidl-utils", |
| "//zircon/system/ulib/fs", |
| "//zircon/system/ulib/fvm", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/gpt", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| "test:fvm-driver-unittests-package", |
| "test/integration:fvm-driver-integration-test", |
| ] |
| } |