blob: d14ee17187fab1657b79bfc09af40855c4abe251 [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_package",
)
fuchsia_cc_binary(
name = "hello_world_cpp",
srcs = [
"main.cc",
],
deps = [
"@fuchsia_sdk//fidl/fuchsia.hardware.i2c:fuchsia.hardware.i2c_cpp_driver",
"@fuchsia_sdk//fidl/fuchsia.mem:fuchsia.mem_hlcpp",
"@fuchsia_sdk//pkg/fdio",
"@fuchsia_sdk//pkg/syslog",
],
)
fuchsia_component_manifest(
name = "manifest",
src = "meta/hello_world_cpp.cml",
)
fuchsia_component(
name = "component",
manifest = ":manifest",
deps = [
":hello_world_cpp",
],
)
fuchsia_package(
name = "pkg",
package_name = "hello_world_cpp",
components = [":component"],
resources = [
"//examples/hello_world_cpp/resources:assets",
"//examples/hello_world_cpp/resources:text_file",
],
visibility = ["//visibility:public"],
)