blob: df9653339bff32b9a93110eecd7cd7db6b00b168 [file] [log] [blame]
# Copyright 2021 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_package",
)
fuchsia_cc_binary(
name = "hello_world_cpp",
srcs = [
"hello_world.cc",
],
deps = ["@fuchsia_sdk//pkg/syslog"],
)
fuchsia_component_manifest(
name = "manifest",
src = "meta/hello_world_cpp.cml",
includes = ["@fuchsia_sdk//pkg/syslog:client"],
)
fuchsia_component(
name = "component",
manifest = ":manifest",
deps = [":hello_world_cpp"],
)
fuchsia_package(
name = "hello_world_cpp_pkg",
package_name = "hello_world",
visibility = ["//visibility:public"],
deps = [
":component",
],
)