| # Copyright 2017 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/bind/bind.gni") |
| import("//build/config/fuchsia/rules.gni") |
| import("//src/graphics/lib/magma/gnbuild/magma.gni") |
| |
| driver_module("msd_arm") { |
| output_name = "libmsd_arm" |
| |
| deps = [ |
| ":msd_arm_entry", |
| "src", |
| "//src/graphics/lib/magma/src/magma_util/platform:logger_for_system_drivers", |
| ] |
| } |
| |
| driver_module("msd_arm_test") { |
| testonly = true |
| output_name = "libmsd_arm_test" |
| |
| deps = [ |
| ":msd_arm_test_entry", |
| "src", |
| "tests:gtest", |
| "//src/graphics/lib/magma/src/magma_util/platform:logger_for_system_drivers", |
| "//src/graphics/lib/magma/tests/unit_tests:magma_platform_hardware_tests", |
| "//src/graphics/lib/magma/tests/unit_tests:msd_abi_conformance_tests", |
| ] |
| } |
| |
| bind_rules("msd_arm_bind") { |
| rules = "msd_arm.bind" |
| output = "bind.h" |
| tests = "tests/bind_tests.json" |
| deps = [ |
| "//src/devices/bind/fuchsia.arm.platform", |
| "//src/devices/bind/fuchsia.platform", |
| ] |
| } |
| |
| magma_pdev_entry("msd_arm_entry") { |
| deps = [ ":msd_arm_bind" ] |
| } |
| |
| bind_rules("msd_arm_test_bind") { |
| rules = "msd_arm.bind" |
| output = "test_bind.h" |
| disable_autobind = true |
| deps = [ |
| "//src/devices/bind/fuchsia.arm.platform", |
| "//src/devices/bind/fuchsia.platform", |
| ] |
| } |
| |
| magma_pdev_entry("msd_arm_test_entry") { |
| test_entry = true |
| deps = [ ":msd_arm_test_bind" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ |
| ":msd_arm_bind_test", |
| "tests/unit_tests:msd_arm_mali_nonhardware_tests", |
| ] |
| } |
| |
| config("msd_tests_include_config") { |
| include_dirs = [ "tests" ] |
| } |
| |
| config("msd_src_include_config") { |
| include_dirs = [ "src" ] |
| } |