| # 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. |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":sysconfig-sync-client-test", |
| ] |
| } |
| |
| group("sysconfig-client") { |
| deps = [ |
| ":sysconfig-sync-client", |
| ":sysconfig-sync-client-c", |
| ] |
| } |
| |
| zx_library("sysconfig-sync-client") { |
| sdk = "source" |
| sdk_headers = [ "include/lib/sysconfig/sync-client.h" ] |
| |
| sources = [ |
| "sync-client.cc", |
| ] |
| public_deps = [ |
| "$zx/system/fidl/fuchsia-hardware-skipblock:llcpp.headers", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/fzl:fzl.headers", |
| ] |
| deps = [ |
| "$zx/system/fidl/fuchsia-hardware-skipblock:llcpp", |
| "$zx/system/fidl/fuchsia-sysinfo:llcpp", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/fidl", |
| "$zx/system/ulib/fzl", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zx", |
| ] |
| } |
| |
| zx_library("sysconfig-sync-client-c") { |
| shared = true |
| sdk = "shared" |
| sdk_headers = [ "include/lib/sysconfig/sync-client-c.h" ] |
| |
| sources = [ |
| "sync-client-c.cc", |
| ] |
| deps = [ |
| ":sysconfig-sync-client", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zx", |
| ] |
| configs += [ "$zx_build/public/gn/config:static-libc++" ] |
| } |
| |
| zx_test("sysconfig-sync-client-test") { |
| output_name = "sysconfig-sync-client-test" |
| sources = [ |
| "sync-client-test.cc", |
| ] |
| include_dirs = [ "." ] |
| deps = [ |
| ":sysconfig-sync-client", |
| "$zx/system/fidl/fuchsia-hardware-nand:c", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/ramdevice-client:static", |
| "$zx/system/ulib/zxtest", |
| ] |
| } |