blob: af18777dce54a809f445cd21cf77667feb89ef87 [file]
# 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")
# TODO(https://fxbug.dev/564211708): Remove once //examples/components/lifecycle:lifecycle-example-cpp migrates to Bazel.
fuchsia_package_with_single_component("cpp") {
# Since `//examples/components/lifecycle/README.md` includes instructions to
# use `ffx component run` to launch one of two versions of `lifecycle`, the
# two versions need unique package names (`lifecycle_cpp` in this case).
component_name = "default"
package_name = "lifecycle_cpp"
manifest = "meta/lifecycle.cml"
deps = [ ":lifecycle_example" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
executable("lifecycle_example") {
sources = [ "lifecycle.cc" ]
output_name = "lifecycle_example_cpp"
deps = [
"//sdk/fidl/fuchsia.process.lifecycle:fuchsia.process.lifecycle_hlcpp",
"//sdk/lib/async",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/syslog/cpp",
]
}
executable("lifecycle_manager") {
sources = [ "manager.cc" ]
output_name = "lifecycle_manager_cpp"
deps = [
"//examples/components/routing/fidl:echo_hlcpp",
"//sdk/fidl/fuchsia.component:fuchsia.component_hlcpp",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_hlcpp",
"//sdk/lib/async",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
]
}
fuchsia_component_manifest("manager-component_manifest") {
component_name = "lifecycle_manager"
manifest = "meta/manager.cml"
}
fuchsia_component("manager-component") {
cm_label = ":manager-component_manifest"
visibility = [
":*",
"//examples/components/lifecycle:*",
]
deps = [ ":lifecycle_manager" ]
}