blob: 12bcad03a69b3e9a264f11f72e0f882f9ef34f3a [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 = "temperature_client",
srcs = [
"main.cc",
],
deps = [
"//src/i2c_temperature/fidl:examples.i2c.temperature_cc",
"@fuchsia_sdk//pkg/fdio",
"@fuchsia_sdk//pkg/fidl_cpp_wire",
],
)
fuchsia_component_manifest(
name = "manifest",
src = "meta/temperature_client.cml",
includes = [
"@fuchsia_sdk//pkg/syslog:client",
],
)
fuchsia_component(
name = "component",
manifest = ":manifest",
deps = [
":temperature_client",
],
)
fuchsia_package(
name = "pkg",
package_name = "temperature_client",
visibility = ["//visibility:public"],
components = [
":component",
],
)