blob: 8ef99fbd73334ce237d2e0935c0c4bac909c7646 [file] [log] [blame]
# Copyright 2019 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/cpp/sdk_source_set.gni")
import("//build/zircon/zx_library.gni")
group("tests") {
testonly = true
deps = [ "tests" ]
}
config("include") {
include_dirs = [ "include" ]
}
sdk_source_set("ddktl") {
category = "experimental" # due to //sdk/lib/fidl/cpp/wire
sdk_name = "ddktl"
sources = [
"include/ddktl/device-internal.h",
"include/ddktl/device.h",
"include/ddktl/fidl.h",
"include/ddktl/init-txn.h",
"include/ddktl/metadata.h",
"include/ddktl/resume-txn.h",
"include/ddktl/suspend-txn.h",
"include/ddktl/unbind-txn.h",
]
public_configs = [ ":include" ]
public_deps = [
# <ddktl/fidl.h> has #include <lib/stdcompat/span.h>
"//sdk/lib/stdcompat",
# <ddktl/fidl.h> has #include <lib/fidl/cpp/wire/transaction.h>.
"//sdk/lib/fidl/cpp/wire",
# <ddktl/device.h> has #include <lib/zx/channel.h>.
"//zircon/system/ulib/zx",
# <ddktl/fidl.h> has #include <ddk/device.h>
"//src/lib/ddk",
]
deps = [
"//sdk/lib/driver_runtime:driver_runtime_cpp",
"//src/lib/ddk",
"//zircon/system/ulib/sync",
"//zircon/system/ulib/zx",
]
}