blob: f6d835e6c1d218d141323377d70589364ece7db6 [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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxb/36139. #
##########################################
import("//build/sdk/sdk_host_tool.gni")
executable("fvm") {
sources = [ "main.cc" ]
deps = [
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
"//zircon/public/lib/safemath",
"//zircon/system/ulib/fvm",
"//zircon/system/ulib/fvm-host",
]
if (!is_fuchsia) {
deps += [ "//zircon/public/lib/zx-panic-libc" ]
}
if (current_os == "linux") {
sources += [ "mtd.cc" ]
deps += [
"//zircon/system/ulib/ftl-mtd",
"//zircon/system/ulib/mtd",
]
} else {
sources += [ "mtd-stub.cc" ]
}
}
sdk_host_tool("fvm_sdk") {
category = "partner"
output_name = "fvm"
deps = [ ":fvm" ]
}