| # 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/components.gni") |
| |
| ############################################################################### |
| # GROUPS |
| ############################################################################### |
| group("snapshot") { |
| testonly = true |
| |
| deps = [ ":pkg" ] |
| } |
| |
| ############################################################################### |
| # PACKAGES |
| ############################################################################### |
| fuchsia_shell_package("pkg") { |
| package_name = "snapshot" |
| |
| deps = [ |
| ":main", |
| "//build/validate:non_production_tag", |
| ] |
| } |
| |
| ############################################################################### |
| # EXECUTABLES |
| ############################################################################### |
| executable("main") { |
| output_name = "snapshot" |
| |
| sources = [ "main.cc" ] |
| |
| deps = [ |
| ":snapshotter", |
| "//sdk/lib/sys/cpp", |
| ] |
| } |
| |
| ############################################################################### |
| # SOURCES |
| ############################################################################### |
| source_set("snapshotter") { |
| sources = [ |
| "snapshotter.cc", |
| "snapshotter.h", |
| ] |
| |
| public_deps = [ "//sdk/lib/sys/cpp" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.feedback", |
| "//zircon/system/ulib/zx", |
| ] |
| } |