| # 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("//garnet/lib/magma/gnbuild/magma.gni") |
| |
| config("vulkan_shim_config") { |
| include_dirs = [ "." ] |
| defines = [ "MAGMA_USE_SHIM" ] |
| configs = [ |
| "//third_party/vulkan_loader_and_validation_layers:vulkan_build_config", |
| ] |
| } |
| |
| source_set("vulkan_shim") { |
| public_configs = [ ":vulkan_shim_config" ] |
| |
| sources = [ |
| "vulkan_shim.cc", |
| "vulkan_shim.h", |
| ] |
| |
| public_deps = build_libvulkan |
| } |