blob: 869d2f67089ae591f35ac0379457e409122ce460 [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/config/fuchsia/rules.gni")
import("//build/test/test_package.gni")
source_set("sources") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
sources = [ "aml-gpu.cc" ]
public_deps = [
"//sdk/banjo/ddk.protocol.gpio",
"//sdk/banjo/ddk.protocol.iommu",
"//sdk/banjo/ddk.protocol.platform.bus",
"//sdk/banjo/ddk.protocol.platform.device",
"//sdk/banjo/ddk.protocol.sysmem",
"//sdk/fidl/fuchsia.hardware.gpu.clock:fuchsia.hardware.gpu.clock_c",
"//sdk/fidl/fuchsia.hardware.thermal:fuchsia.hardware.thermal_c",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/bus/lib/device-protocol-platform-device",
"//src/devices/lib/amlogic",
"//src/devices/lib/driver",
"//src/devices/lib/mmio",
"//src/lib/ddk",
# TODO(fxb/38132): Migrate to the new bind rules and delete the below
"//src/lib/ddk:ddk-deprecated-binding-headers",
"//src/lib/ddktl",
"//zircon/public/lib/sync",
"//zircon/system/ulib/fidl-utils",
]
}
driver_module("aml-gpu") {
configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ]
configs += [ "//build/config/fuchsia:static_cpp_standard_library" ]
deps = [ ":sources" ]
}
executable("aml-gpu-test-bin") {
testonly = true
output_name = "aml-gpu-test"
sources = [ "aml-gpu-test.cc" ]
deps = [
":sources",
"//zircon/public/lib/zxtest",
]
}
test_package("aml-gpu-test") {
deps = [ ":aml-gpu-test-bin" ]
tests = [
{
name = "aml-gpu-test"
},
]
}