| # Copyright 2022 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") |
| |
| executable("lifecycle_example") { |
| output_name = "lifecycle_example_cpp" |
| |
| sources = [ "lifecycle.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.process.lifecycle", |
| "//sdk/lib/syslog/cpp", |
| "//zircon/system/ulib/async", |
| "//zircon/system/ulib/async:async-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| executable("lifecycle_manager") { |
| output_name = "lifecycle_manager_cpp" |
| |
| sources = [ "manager.cc" ] |
| |
| deps = [ |
| "//examples/components/routing/fidl:echo", |
| "//sdk/fidl/fuchsia.component", |
| "//sdk/fidl/fuchsia.component.decl", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//zircon/system/ulib/async", |
| "//zircon/system/ulib/async:async-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| fuchsia_component("lifecycle-component") { |
| component_name = "lifecycle" |
| manifest = "meta/lifecycle.cml" |
| deps = [ ":lifecycle_example" ] |
| } |
| |
| fuchsia_component("manager-component") { |
| component_name = "lifecycle_manager" |
| manifest = "meta/manager.cml" |
| deps = [ ":lifecycle_manager" ] |
| } |