| # 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. |
| |
| test_driver("usb-peripheral-test") { |
| sources = [ |
| "driver.cpp", |
| ] |
| deps = [ |
| "$zx/system/banjo/ddk-protocol-usb", |
| "$zx/system/banjo/ddk-protocol-usb-function", |
| "$zx/system/banjo/ddk-protocol-usb-request", |
| "$zx/system/dev/lib/usb", |
| "$zx/system/ulib/ddk", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/sync", |
| "$zx/system/ulib/zircon", |
| ] |
| } |
| |
| if (current_os == "linux") { |
| test("usb-peripheral") { |
| sources = [ |
| "test.cpp", |
| ] |
| deps = [ |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/unittest", |
| "$zx/third_party/ulib/usbhost", |
| ] |
| } |
| } |