| # 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 fxbug.dev/36548. # |
| ########################################## |
| |
| assert(!defined(zx) || zx != "/", |
| "This file can only be used in the Fuchsia GN build.") |
| |
| import("//build/unification/zx_library.gni") |
| |
| zx_library("operation") { |
| host = true |
| sources = [ "operation.cc" ] |
| deps = [ |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/safemath", |
| ] |
| static = true |
| |
| sdk = "source" |
| sdk_headers = [ |
| "storage/operation/operation.h", |
| "storage/operation/unbuffered_operation.h", |
| "storage/operation/unbuffered_operations_builder.h", |
| ] |
| |
| if (is_fuchsia) { |
| sources += [ "unbuffered_operations_builder.cc" ] |
| public_deps = [ |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zx", |
| ] |
| deps += [ |
| "//sdk/lib/fdio", |
| "//zircon/public/lib/fit", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/range", |
| ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "test:tests" ] |
| } |