blob: 326de1da665a0360a2be4ca3084c7348f13cbd7b [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("//build/package.gni")
import("//src/graphics/lib/magma/gnbuild/magma.gni")
import("//src/lib/vulkan/image_pipe_swapchain.gni")
import("//src/lib/vulkan/layers.gni")
package("vkcube-on-scenic") {
testonly = true
deps = [ ":vkcube-on-scenic-executable" ]
binaries = [
{
name = "vkcube-on-scenic"
},
]
meta = [
{
path = rebase_path("meta/vkcube-on-scenic.cmx")
dest = "vkcube-on-scenic.cmx"
},
]
public_deps =
vulkan_validation_layers.public_deps + image_pipe_swapchain.public_deps
loadable_modules = vulkan_validation_layers.loadable_modules +
image_pipe_swapchain.loadable_modules
resources =
[
{
path = rebase_path("bbb_frame.yuv")
dest = "bbb_frame.yuv"
},
] + vulkan_validation_layers.resources + image_pipe_swapchain.resources
}
package("vkcube-on-fb") {
testonly = true
deps = [ ":vkcube-on-fb-executable" ]
binaries = [
{
name = "vkcube-on-fb"
},
]
meta = [
{
path = rebase_path("meta/vkcube-on-fb.cmx")
dest = "vkcube-on-fb.cmx"
},
]
public_deps =
vulkan_validation_layers.public_deps + image_pipe_swapchain_fb.public_deps
loadable_modules = vulkan_validation_layers.loadable_modules +
image_pipe_swapchain_fb.loadable_modules
resources =
[
{
path = rebase_path("bbb_frame.yuv")
dest = "bbb_frame.yuv"
},
] + vulkan_validation_layers.resources + image_pipe_swapchain_fb.resources
}
package("vkcube-skip-present") {
testonly = true
deps = [ ":vkcube-skip-present-executable" ]
binaries = [
{
name = "vkcube-skip-present"
},
]
meta = [
{
path = rebase_path("meta/vkcube-skip-present.cmx")
dest = "vkcube-skip-present.cmx"
},
]
public_deps = vulkan_validation_layers.public_deps +
image_pipe_swapchain_fb_skip_present.public_deps
loadable_modules = vulkan_validation_layers.loadable_modules +
image_pipe_swapchain_fb_skip_present.loadable_modules
resources = [
{
path = rebase_path("bbb_frame.yuv")
dest = "bbb_frame.yuv"
},
] + vulkan_validation_layers.resources +
image_pipe_swapchain_fb_skip_present.resources
}
executable("vkcube-on-scenic-executable") {
output_name = "vkcube-on-scenic"
sources = [
"main.cc",
"test_vk_cube.h",
"third_party/vkcube/cube.cc",
"third_party/vkcube/cube.h",
]
# TODO(fxbug.dev/58160): delete the below and fix compiler warnings
cflags = [ "-Wno-reorder-init-list" ]
defines = [
"VK_USE_PLATFORM_FUCHSIA",
"CUBE_USE_IMAGE_PIPE",
]
deps = [
"$zircon_build_root/system/ulib/async-loop:async-loop-cpp",
"$zircon_build_root/system/ulib/async-loop:async-loop-default",
"$zircon_build_root/system/ulib/trace",
"$zircon_build_root/system/ulib/trace-provider:trace-provider-with-fdio",
"//src/lib/vulkan",
"//src/lib/vulkan/imagepipe_view",
"//zircon/system/ulib/syslog",
]
# TODO(fxbug.dev/58160): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-reorder-init-list" ]
}
executable("vkcube-on-fb-executable") {
output_name = "vkcube-on-fb"
sources = [
"main.cc",
"test_vk_cube.h",
"third_party/vkcube/cube.cc",
"third_party/vkcube/cube.h",
]
# TODO(fxbug.dev/58160): delete the below and fix compiler warnings
cflags = [ "-Wno-reorder-init-list" ]
defines = [ "VK_USE_PLATFORM_FUCHSIA" ]
deps = [
"$zircon_build_root/system/ulib/async-loop:async-loop-cpp",
"$zircon_build_root/system/ulib/async-loop:async-loop-default",
"$zircon_build_root/system/ulib/trace",
"$zircon_build_root/system/ulib/trace-provider:trace-provider-with-fdio",
"//src/lib/vulkan",
"//zircon/system/ulib/syslog",
]
public_deps = [ "//zircon/public/lib/fit" ]
# TODO(fxbug.dev/58160): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-reorder-init-list" ]
}
executable("vkcube-skip-present-executable") {
output_name = "vkcube-skip-present"
sources = [
"main.cc",
"test_vk_cube.h",
"third_party/vkcube/cube.cc",
"third_party/vkcube/cube.h",
]
# TODO(fxbug.dev/58160): delete the below and fix compiler warnings
cflags = [ "-Wno-reorder-init-list" ]
defines = [
"VK_USE_PLATFORM_FUCHSIA",
"CUBE_SKIP_PRESENT",
]
deps = [
"$zircon_build_root/system/ulib/async-loop:async-loop-cpp",
"$zircon_build_root/system/ulib/async-loop:async-loop-default",
"$zircon_build_root/system/ulib/trace",
"$zircon_build_root/system/ulib/trace-provider",
"//src/lib/vulkan",
"//zircon/system/ulib/syslog",
]
public_deps = [ "//zircon/public/lib/fit" ]
# TODO(fxbug.dev/58160): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-reorder-init-list" ]
}