| # Copyright 2016 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("//src/graphics/lib/magma/gnbuild/magma.gni") |
| |
| source_set("platform_device_helper") { |
| public_configs = [ "../../..:src_config" ] |
| |
| public_deps = [ |
| "//src/graphics/magma/lib/magma/platform:device_dfv2", |
| "//src/graphics/magma/lib/magma/util:macros", |
| ] |
| |
| sources = [ "platform_device_helper.h" ] |
| } |
| |
| source_set("platform_device_helper_dfv2") { |
| public_configs = [ "../../..:src_config" ] |
| |
| public_deps = [ |
| "//src/graphics/magma/lib/magma/platform:device_dfv2", |
| "//src/graphics/magma/lib/magma/util:macros", |
| ] |
| |
| sources = [ "platform_device_helper.h" ] |
| } |
| |
| source_set("gtest_printer") { |
| testonly = true |
| public_configs = [ "../../..:src_config" ] |
| |
| public_deps = [ |
| "//src/graphics/magma/lib/magma/platform:logger_header", |
| "//third_party/googletest:gtest", |
| ] |
| |
| sources = [ |
| "gtest_printer.cc", |
| "gtest_printer.h", |
| ] |
| } |
| |
| source_set("platform_pci_device_helper") { |
| public_configs = [ "../../..:src_config" ] |
| |
| public_deps = [ |
| "//src/graphics/magma/lib/magma/platform:device_dfv2", |
| "//src/graphics/magma/lib/magma/util:macros", |
| ] |
| |
| sources = [ "platform_pci_device_helper.h" ] |
| } |
| |
| source_set("platform_msd_device_helper") { |
| public_configs = [ "../../..:src_config" ] |
| |
| public_deps = [ "//src/graphics/magma/lib/magma/util:macros" ] |
| |
| sources = [ "platform_msd_device_helper.h" ] |
| } |
| |
| source_set("command_buffer_helper_cpp") { |
| public_configs = [ "../../..:src_config" ] |
| |
| public_deps = [ |
| ":platform_msd_device_helper", |
| "//sdk/lib/async:async-cpp", |
| "//sdk/lib/async-loop:async-loop-cpp", |
| "//src/graphics/magma/lib/magma/platform:device_dfv2", |
| "//src/graphics/magma/lib/magma/platform:semaphore", |
| "//src/graphics/magma/lib/magma_service/sys_driver", |
| ] |
| |
| sources = [ "command_buffer_helper_cpp.h" ] |
| } |
| |
| source_set("msd_stubs") { |
| testonly = true |
| sources = [ "msd_stubs.h" ] |
| public_deps = [ "//src/graphics/magma:msd" ] |
| public_configs = [ "../../..:src_config" ] |
| } |
| |
| source_set("pci_driver_gtest") { |
| testonly = true |
| |
| sources = [ "pci_driver_test_gtest.cc" ] |
| |
| deps = [ |
| "//src/graphics/magma/lib/magma/platform:device_dfv2", |
| "//src/graphics/magma/lib/magma_service/test_util:platform_msd_device_helper", |
| "//src/graphics/magma/lib/magma_service/test_util:platform_pci_device_helper", |
| "//third_party/googletest:gtest", |
| ] |
| } |