blob: 113a3765e75b3a69d442fabbe678e0757a81e83c [file] [log] [blame]
# Copyright 2018 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("//src/graphics/lib/magma/gnbuild/magma.gni")
VSL_GC_DEVICE_ID = "PDEV_DID_GPU_VSL_GC"
driver_module("msd_vsl") {
output_name = "libmsd_vsl"
deps = [
":msd_vsl_entry",
"$magma_build_root/src/magma_util/platform:logger_for_system_drivers",
"src",
]
configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ]
configs += [ "//build/config/fuchsia:static_cpp_standard_library" ]
}
driver_module("msd_vsl_test") {
testonly = true
output_name = "libmsd_vsl_test"
deps = [
":msd_vsl_test_entry",
"$magma_build_root/src/magma_util/platform:logger_for_system_drivers",
"src",
]
configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ]
configs += [ "//build/config/fuchsia:static_cpp_standard_library" ]
}
magma_pdev_entry("msd_vsl_entry") {
pdev_device_id = VSL_GC_DEVICE_ID
}
magma_pdev_entry("msd_vsl_test_entry") {
pdev_device_id = VSL_GC_DEVICE_ID
test_entry = true
deps = [
"tests/unit_tests:hardware_tests",
"//src/graphics/lib/magma/tests/unit_tests:magma_platform_hardware_tests",
"//src/graphics/lib/magma/tests/unit_tests:msd_abi_conformance_tests",
]
}
group("tests") {
testonly = true
public_deps = [ "tests/unit_tests:nonhardware_tests" ]
}