| # 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. |
| |
| source_set("surface_header") { |
| sources = [ "image_pipe_surface.h" ] |
| public_deps = [ |
| "//sdk/fidl/fuchsia.images", |
| "//src/lib/vulkan:headers", |
| ] |
| } |
| |
| loadable_module("swapchain") { |
| output_name = "VkLayer_image_pipe_swapchain" |
| sources = [ |
| "image_pipe_surface_async.cc", |
| "image_pipe_surface_async.h", |
| "image_pipe_swapchain_layer.cc", |
| ] |
| deps = [ |
| ":surface_header", |
| "//sdk/lib/fdio", |
| "//src/lib/vulkan:micro_layer_common", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/trace", |
| ] |
| ldflags = [ "-static-libstdc++" ] |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |
| |
| source_set("display") { |
| sources = [ |
| "image_pipe_surface_display.cc", |
| "image_pipe_surface_display.h", |
| ] |
| deps = [ |
| ":surface_header", |
| "//sdk/fidl/fuchsia.hardware.display:fuchsia.hardware.display_c", |
| "//sdk/fidl/fuchsia.sysmem", |
| "//sdk/lib/fdio", |
| "//src/lib/vulkan:micro_layer_common", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/system/ulib/fdio-caller", |
| "//zircon/system/ulib/fzl", |
| ] |
| public_deps = [ |
| "//sdk/fidl/fuchsia.hardware.display", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |
| |
| loadable_module("fb") { |
| output_name = "VkLayer_image_pipe_swapchain_fb" |
| defines = [ |
| "USE_IMAGEPIPE_SURFACE_FB", |
| "USE_IMAGEPIPE_LAYER_NAME=\"VK_LAYER_FUCHSIA_imagepipe_swapchain_fb\"", |
| ] |
| sources = [ "image_pipe_swapchain_layer.cc" ] |
| deps = [ |
| ":display", |
| ":surface_header", |
| "//src/lib/vulkan:micro_layer_common", |
| "//zircon/system/ulib/trace", |
| ] |
| ldflags = [ "-static-libstdc++" ] |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |
| |
| loadable_module("fb_skip_present") { |
| output_name = "VkLayer_image_pipe_swapchain_fb_skip_present" |
| defines = [ |
| "USE_IMAGEPIPE_SURFACE_FB", |
| "USE_IMAGEPIPE_LAYER_NAME=\"VK_LAYER_FUCHSIA_imagepipe_swapchain_fb_skip_present\"", |
| "SKIP_PRESENT", |
| ] |
| sources = [ "image_pipe_swapchain_layer.cc" ] |
| deps = [ |
| ":display", |
| ":surface_header", |
| "//src/lib/vulkan:micro_layer_common", |
| "//zircon/system/ulib/trace", |
| ] |
| ldflags = [ "-static-libstdc++" ] |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |