blob: 4502ca8bd59411600ca766d9e12f45e896803feb [file] [log] [blame]
# 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.
load(
"@rules_fuchsia//fuchsia:defs.bzl",
"fuchsia_cc_binary",
"fuchsia_component",
"fuchsia_component_manifest",
)
fuchsia_cc_binary(
name = "hello_world",
srcs = [
"hello_world.cc",
],
deps = [
"@fuchsia_sdk//pkg/fdio",
"@fuchsia_sdk//pkg/syslog",
],
)
fuchsia_component_manifest(
name = "manifest",
src = "meta/hello_world.cml",
includes = ["@fuchsia_sdk//pkg/syslog:client"],
)
fuchsia_component(
name = "component",
manifest = ":manifest",
visibility = [
"//src/examples/hello_workstation:__pkg__",
],
deps = [":hello_world"],
)