blob: ef9f1f027d260724c62b018847f2f970bdbdd6a9 [file]
# 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")
declare_args() {
# Set this to accommodate long running tests
hangcheck_timeout_ms = 0
}
source_set("src") {
public_configs = [ "$msd_intel_gen_build_root:msd_src_include_config" ]
if (hangcheck_timeout_ms != 0) {
defines = [ "HANGCHECK_TIMEOUT_MS=$hangcheck_timeout_ms" ]
}
sources = [
"address_space.h",
"cache_config.cc",
"cache_config.h",
"command_buffer.cc",
"command_buffer.h",
"engine_command_streamer.cc",
"engine_command_streamer.h",
"gpu_mapping.h",
"gpu_progress.cc",
"gpu_progress.h",
"gtt.h",
"gtt_shim.cc",
"interrupt_manager.h",
"interrupt_manager_shim.cc",
"msd_intel_buffer.cc",
"msd_intel_buffer.h",
"msd_intel_connection.cc",
"msd_intel_connection.h",
"msd_intel_context.cc",
"msd_intel_context.h",
"msd_intel_device.cc",
"msd_intel_device.h",
"msd_intel_device_dump.cc",
"msd_intel_driver.cc",
"msd_intel_driver.h",
"msd_intel_pci_device.h",
"msd_intel_pci_device_shim.cc",
"msd_intel_semaphore.cc",
"pagetable.h",
"ppgtt.cc",
"ppgtt.h",
"registers.h",
"render_command_streamer.cc",
"render_command_streamer.h",
"render_init_batch.cc",
"render_init_batch.h",
"render_init_batch_gen9.cc",
"ringbuffer.h",
"scheduler.cc",
"scheduler.h",
"types.h",
"video_command_streamer.cc",
"video_command_streamer.h",
"workarounds.cc",
"workarounds.h",
]
deps = [
"$magma_build_root/include:msd",
"$magma_build_root/src/magma_util:address_space",
"$magma_build_root/src/magma_util:allocator",
"$magma_build_root/src/magma_util:macros",
"$magma_build_root/src/magma_util:registers",
"$magma_build_root/src/magma_util:ringbuffer",
"$magma_build_root/src/magma_util:semaphore_port",
"$magma_build_root/src/magma_util:thread",
"$magma_build_root/src/magma_util/platform:buffer",
"$magma_build_root/src/magma_util/platform:bus_mapper",
"$magma_build_root/src/magma_util/platform:device",
"$magma_build_root/src/magma_util/platform:event",
"$magma_build_root/src/magma_util/platform:logger",
"$magma_build_root/src/magma_util/platform:semaphore",
"$magma_build_root/src/magma_util/platform:thread",
"$magma_build_root/src/magma_util/platform:trace",
"../include",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/system/ulib/fbl",
]
public_deps = [
"//sdk/banjo/fuchsia.hardware.intelgpucore:fuchsia.hardware.intelgpucore_banjo_cpp",
"//zircon/system/ulib/hwreg",
]
# TODO(fxbug.dev/94768): This target uses mutable tables which are deprecated,
# rather than builders.
configs += [ "//build/cpp:fidl-wire-deprecated-mutable-tables" ]
}