blob: 0f516cf46ba77546a4c4f8eadaba6109d5b0e15d [file] [log] [blame]
# 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("//garnet/lib/magma/gnbuild/magma.gni")
executable("vkcube") {
include_dirs = [ "." ]
defines = [ "VK_USE_PLATFORM_FUCHSIA" ]
sources = [
"$magma_build_root/third_party/vkcube/cube.cc",
"main.cc",
]
deps = [
"$magma_build_root/src/magma_util",
"$magma_build_root/src/magma_util/platform:trace",
"$zircon_build_root/public/lib/async-loop-cpp",
"$zircon_build_root/public/lib/trace-provider",
]
if (use_vulkan_loader_for_tests) {
deps += [ "//third_party/vulkan_loader_and_validation_layers:vulkan" ]
} else {
deps += [ "$magma_build_root/tests/vulkan_shim" ]
}
}