blob: 3b2a7afaf7e13bae3555b317c67c1c014937e897 [file] [log] [blame]
# Copyright 2019 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/compiled_action.gni")
import("//build/testing/cc_test_executable.gni")
cc_test_executable("kgsl_unit_tests") {
testonly = true
sources = [ "kgsl_unit_tests.cc" ]
deps = [ "//src/lib/fxl/test:gtest_main" ]
}
cc_test_executable("virtmagma_vulkan_unit_tests") {
testonly = true
deps = [
":basic_compute",
"//src/lib/fxl/test:gtest_main",
"//src/lib/vulkan:vulkan_headers_and_loader",
]
sources = [ "virtmagma_vulkan_unit_tests.cc" ]
}
compiled_action("basic_compute") {
tool = "//third_party/glslang/src:glslang_validator"
inputs = [ "${target_name}.glsl" ]
outputs = [ "$target_gen_dir/${target_name}.h" ]
args = [
rebase_path("${target_name}.glsl", root_build_dir),
"-s",
"-S",
"comp",
"-V",
"-o",
rebase_path("$target_gen_dir/${target_name}.h", root_build_dir),
"--vn",
"${target_name}_spirv",
]
}
cc_test_executable("virtmagma_unit_tests") {
testonly = true
sources = [ "virtmagma_unit_tests.cc" ]
deps = [
"//src/graphics/lib/magma/include/virtio",
"//src/graphics/lib/magma/src/libmagma_virt:virtmagma_headers",
"//src/lib/fxl/test:gtest_main",
]
}