blob: f7e833a33303e2ba29a17c028f0f385eafb45dcc [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.
# [START imports]
load(
"@rules_fuchsia//fuchsia:defs.bzl",
"fuchsia_cc_binary",
"fuchsia_component_manifest",
"fuchsia_driver_bytecode_bind_rules",
"fuchsia_driver_component",
"fuchsia_package",
)
# [END imports]
# [START bind_rules]
fuchsia_driver_bytecode_bind_rules(
name = "bind_bytecode",
output = "qemu_edu.bindbc",
rules = "qemu_edu.bind",
deps = [
"@fuchsia_sdk//bind/fuchsia.pci",
],
)
# [END bind_rules]
#[START binary]
cc_binary(
name = "qemu_edu",
srcs = [
"qemu_edu.cc",
"qemu_edu.h",
"edu_device.cc",
"edu_device.h",
"driver_compat.h",
],
linkshared = True,
deps = [
"//src/qemu_edu/fidl:fuchsia.examples.qemuedu_cc",
"@fuchsia_sdk//fidl/fuchsia.device.fs:fuchsia.device.fs_llcpp_cc",
"@fuchsia_sdk//fidl/fuchsia.driver.compat:fuchsia.driver.compat_llcpp_cc",
"@fuchsia_sdk//fidl/fuchsia.hardware.pci:fuchsia.hardware.pci_llcpp_cc",
"@fuchsia_sdk//fidl/zx:zx_cc",
"@fuchsia_sdk//pkg/async-cpp",
"@fuchsia_sdk//pkg/driver2-llcpp",
"@fuchsia_sdk//pkg/driver_runtime_cpp",
"@fuchsia_sdk//pkg/fidl_cpp_wire",
"@fuchsia_sdk//pkg/hwreg",
"@fuchsia_sdk//pkg/mmio",
"@fuchsia_sdk//pkg/sys_component_llcpp",
"@fuchsia_sdk//pkg/zx",
],
)
# [END binary]
# [START component_manifest]
fuchsia_component_manifest(
name = "manifest",
src = "meta/qemu_edu.cml",
includes = [
"@fuchsia_sdk//pkg/syslog:client",
],
)
# [END component_manifest]
# [START component]
fuchsia_driver_component(
name = "component",
bind_bytecode = ":bind_bytecode",
driver_lib = ":qemu_edu",
manifest = ":manifest",
)
# [END component]
# [START package]
fuchsia_package(
name = "pkg",
package_name = "qemu_edu",
visibility = ["//visibility:public"],
deps = [
":component",
],
)
# [END package]