| # 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/zircon/zx_library.gni") |
| |
| group("sysconfig-client") { |
| deps = [ |
| ":sysconfig-sync-client", |
| ":sysconfig-sync-client-c", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "test:tests" ] |
| } |
| |
| zx_library("sysconfig-sync-client") { |
| sdk = "source" |
| sdk_headers = [ "lib/sysconfig/sync-client.h" ] |
| |
| sources = [ |
| "shared/abr-wear-leveling.c", |
| "shared/sysconfig-header.c", |
| "sync-client.cc", |
| ] |
| public_deps = [ |
| "//sdk/fidl/fuchsia.hardware.skipblock:fuchsia.hardware.skipblock_cpp", |
| "//zircon/system/ulib/fzl", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.skipblock:fuchsia.hardware.skipblock_cpp", |
| "//sdk/fidl/fuchsia.sysinfo:fuchsia.sysinfo_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/device-watcher/cpp", |
| "//sdk/lib/fidl", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fdio-caller", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/zx", |
| "//zircon/third_party/ulib/cksum", |
| ] |
| } |
| |
| zx_library("sysconfig-sync-client-c") { |
| sdk = "shared" |
| sdk_headers = [ "lib/sysconfig/sync-client-c.h" ] |
| |
| sources = [ "sync-client-c.cc" ] |
| deps = [ |
| ":sysconfig-sync-client", |
| "//zircon/system/ulib/fdio-caller", |
| "//zircon/system/ulib/zx", |
| ] |
| configs += [ "//build/config/fuchsia:static_cpp_standard_library" ] |
| } |