blob: 5925b83d264c79924d383884e0c4cbf5cd2c2c0e [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("//garnet/lib/magma/gnbuild/magma.gni")
import("//build/package.gni")
package("screenshot_layer") {
deprecated_system_image = true
deps = [
":VkLayer_screenshot",
"//third_party/vulkan_loader_and_validation_layers/loader",
]
libraries = [ {
name = "libVkLayer_screenshot.so"
} ]
resources = [ {
path = rebase_path("VkLayer_screenshot.json")
dest = "vulkan/implicit_layer.d/VkLayer_screenshot.json"
} ]
}
package("rfb_layer") {
deprecated_system_image = true
deps = [
":VkLayer_rfb",
"//third_party/vulkan_loader_and_validation_layers/loader",
]
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 = [
"//third_party/vulkan_loader_and_validation_layers/layers/vk_format_utils.cpp",
"rfb.cpp",
]
deps = [
"//garnet/lib/vulkan/src/rfb_server",
"//third_party/vulkan_loader_and_validation_layers/layers:layer_common",
]
}
shared_library("VkLayer_screenshot") {
sources = [
"//third_party/vulkan_loader_and_validation_layers/layers/vk_format_utils.cpp",
"screenshot.cpp",
"screenshot_parsing.cpp",
"screenshot_parsing.h",
]
deps = [
"//third_party/vulkan_loader_and_validation_layers/layers:layer_common",
]
}