blob: e8d1512e5259960f79497df680bd2842f247a3b7 [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import("//build/driver_package.gni")
import("//src/graphics/lib/magma/gnbuild/magma.gni")
driver_package("screenshot_layer") {
deps = [ ":VkLayer_screenshot" ]
libraries = [
{
name = "libVkLayer_screenshot.so"
},
]
resources = [
{
path = rebase_path("VkLayer_screenshot.json")
dest = "vulkan/implicit_layer.d/VkLayer_screenshot.json"
},
]
}
driver_package("rfb_layer") {
deps = [ ":VkLayer_rfb" ]
libraries = [
{
name = "libVkLayer_rfb.so"
},
]
resources = [
{
path = rebase_path("VkLayer_rfb.json")
dest = "vulkan/implicit_layer.d/VkLayer_rfb.json"
},
]
}
shared_library("VkLayer_rfb") {
sources = [ "rfb.cpp" ]
deps = [
"//garnet/lib/vulkan/src/rfb_server",
"//src/lib/vulkan:micro_layer_common",
]
}
shared_library("VkLayer_screenshot") {
sources = [
"screenshot.cpp",
"screenshot_parsing.cpp",
"screenshot_parsing.h",
]
deps = [ "//src/lib/vulkan:micro_layer_common" ]
}