| # 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("//src/graphics/lib/magma/gnbuild/magma.gni") |
| import("//src/sys/build/components.gni") |
| |
| source_set("src") { |
| testonly = true |
| |
| sources = [ |
| "icd_load.cc", |
| "icd_load.h", |
| ] |
| public_deps = [ |
| "//src/lib/fxl/test:test_settings", |
| "//third_party/googletest:gtest", |
| ] |
| public_deps += [ "//src/lib/vulkan" ] |
| } |
| |
| executable("icd_load_bin") { |
| testonly = true |
| output_name = "icd_load" |
| |
| deps = [ ":src" ] |
| } |
| |
| fuchsia_component("icd_load_cmp") { |
| testonly = true |
| component_name = "icd_load" |
| deps = [ |
| ":icd_load_bin", |
| "//src/lib/vulkan:image-pipe-swapchain-fb", |
| "//src/lib/vulkan:validation-layers", |
| ] |
| |
| manifest = "meta/icd_load.cmx" |
| } |
| |
| fuchsia_test_package("icd-load") { |
| package_name = "icd_load" |
| test_components = [ ":icd_load_cmp" ] |
| test_specs = { |
| environments = magma_libvulkan_hardware_envs |
| } |
| } |
| |
| group("icd_load") { |
| testonly = true |
| deps = [ ":icd-load" ] |
| } |