| # Copyright 2016 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. |
| |
| source_set("vmo") { |
| visibility = [ "//src/ledger/*" ] |
| |
| sources = [ |
| "shared_vmo.cc", |
| "shared_vmo.h", |
| "sized_vmo.cc", |
| "sized_vmo.h", |
| "strings.h", |
| "vector.h", |
| "vmo.cc", |
| ] |
| |
| deps = [ |
| "//src/ledger/lib/logging", |
| "//zircon/public/lib/fdio", |
| ] |
| |
| public_deps = [ |
| "//src/ledger/lib/memory", |
| "//third_party/abseil-cpp", |
| "//zircon/public/lib/zx", |
| "//zircon/system/fidl/fuchsia-mem", |
| ] |
| |
| configs += [ "//src/ledger:ledger_config" ] |
| } |
| |
| source_set("unittests") { |
| testonly = true |
| |
| sources = [ |
| "shared_vmo_unittest.cc", |
| "strings_unittest.cc", |
| "vector_unittest.cc", |
| ] |
| |
| deps = [ |
| ":vmo", |
| "//src/ledger/bin/platform", |
| "//src/ledger/bin/platform:implementation", |
| "//third_party/googletest:gtest", |
| ] |
| } |