| # 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/config/fuchsia/rules.gni") |
| import("//build/unification/images/migrated_manifest.gni") |
| |
| driver_module("usb-tester") { # TODO: test_driver? |
| # Dependent manifests unfortunately cannot be marked as `testonly`. |
| # TODO(44278): Remove when converting this file to proper GN build idioms. |
| testonly = false |
| defines = [ "_ALL_SOURCE" ] |
| configs += [ "//build/config/fuchsia:enable_zircon_asserts" ] |
| configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ] |
| configs += [ "//build/config/fuchsia:static_cpp_standard_library" ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "usb-tester.cc" ] |
| deps = [ |
| "//sdk/banjo/ddk.protocol.usb", |
| "//sdk/banjo/ddk.protocol.usb.composite", |
| "//sdk/banjo/ddk.protocol.usb.request", |
| "//sdk/fidl/fuchsia.hardware.usb.tester:fuchsia.hardware.usb.tester_c", |
| "//src/devices/lib/driver", |
| "//src/devices/usb/lib/usb", |
| "//zircon/public/lib/ddktl", |
| "//zircon/public/lib/sync", |
| ] |
| } |
| |
| migrated_manifest("usb-tester-manifest") { |
| deps = [ ":usb-tester" ] |
| } |