blob: a99b500a8a55907e117c6ff37dbd60939d55b7a8 [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.
import("//build/components.gni")
import("//build/cpp/library_headers.gni")
import("//build/cpp/sdk_source_set.gni")
config("include") {
include_dirs = [ "include" ]
}
sdk_source_set("driver_runtime") {
category = "partner"
sdk_name = "driver_runtime"
sources = [
"include/lib/fdf/arena.h",
"include/lib/fdf/channel.h",
"include/lib/fdf/channel_read.h",
"include/lib/fdf/dispatcher.h",
"include/lib/fdf/types.h",
]
public_configs = [ ":include" ]
public_deps = [
# <lib/fdf/channel_read.h> and <lib/fdf/dispatcher.h> have #include <lib/async/dispatcher.h>.
"//zircon/system/ulib/async",
]
deps = [
"//zircon/system/ulib/sync",
"//zircon/system/ulib/zx",
]
}
sdk_source_set("driver_runtime_cpp") {
category = "partner"
sdk_name = "driver_runtime_cpp"
sources = [
"channel_read.cc",
"include/lib/fdf/cpp/arena.h",
"include/lib/fdf/cpp/channel.h",
"include/lib/fdf/cpp/channel_read.h",
"include/lib/fdf/cpp/dispatcher.h",
]
public_configs = [ ":include" ]
public_deps = [
":driver_runtime",
"//zircon/system/ulib/zxc",
]
deps = [ ":driver_runtime" ]
}
sdk_source_set("driver_runtime_internal") {
category = "partner"
sdk_name = "driver_runtime_internal"
sources = [ "include/lib/fdf/internal.h" ]
visibility = [
"//sdk/lib/driver_runtime/*",
"//src/devices/bin/driver_host/*",
"//src/devices/bin/driver_runtime/*",
]
public_configs = [ ":include" ]
deps = [ "//zircon/system/ulib/zx" ]
}