blob: e79ddecbf61abea91d59d1cc9fd3ac890e5befda [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.
group("tests") {
testonly = true
deps = [ "tests" ]
}
config("includes") {
include_dirs = [ "include" ]
}
source_set("usb") {
public = [
"include/usb/request-cpp.h",
"include/usb/usb-request.h",
"include/usb/usb.h",
]
sources = [
"align.h",
"usb-request.c",
"usb-wrapper.cc",
"usb.c",
]
public_deps = [
"//sdk/banjo/fuchsia.hardware.usb:fuchsia.hardware.usb_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.usb.composite:fuchsia.hardware.usb.composite_banjo_cpp",
# <ddk/usb/usb.h> has #include <fuchsia/hardware/usb/c/banjo.h>.
"//src/lib/ddk",
# <usb/request-cpp.h> has #include <lib/operation/operation.h>.
"//sdk/lib/fit",
"//src/devices/lib/dev-operation",
]
deps = [
"//sdk/banjo/ddk.hw.physiter:ddk.hw.physiter_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.usb:fuchsia.hardware.usb_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.usb.composite:fuchsia.hardware.usb.composite_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.usb.request:fuchsia.hardware.usb.request_banjo_cpp",
"//src/lib/ddk",
"//src/lib/ddktl",
]
public_configs = [ ":includes" ]
}
source_set("audio") {
public = [ "include/usb/audio.h" ]
public_configs = [ ":includes" ]
}
source_set("video") {
public = [ "include/usb/video.h" ]
public_configs = [ ":includes" ]
}
source_set("dfu") {
public = [ "include/usb/dfu.h" ]
public_configs = [ ":includes" ]
}
source_set("ums") {
public = [ "include/usb/ums.h" ]
public_configs = [ ":includes" ]
}
source_set("hid") {
public = [ "include/usb/hid.h" ]
public_configs = [ ":includes" ]
}
source_set("cdc") {
public = [ "include/usb/cdc.h" ]
public_configs = [ ":includes" ]
}
source_set("peripheral") {
public = [ "include/usb/peripheral.h" ]
public_configs = [ ":includes" ]
}
source_set("peripheral-test") {
public = [ "include/usb/peripheral-test.h" ]
public_configs = [ ":includes" ]
}
source_set("peripheral-config") {
public = [ "include/usb/peripheral-config.h" ]
sources = [ "usb-peripheral-config.cc" ]
public_deps = [
"//src/devices/usb/lib/usb:cdc",
"//src/devices/usb/lib/usb:peripheral",
"//src/devices/usb/lib/usb:usb",
"//src/lib/ddk:ddk-metadata-headers",
]
deps = [ "//zircon/system/ulib/zircon-internal" ]
public_configs = [ ":includes" ]
}