blob: 828df5de1e3502a04497a2c5a064ffd913d46fd1 [file] [log] [blame]
# Copyright 2013 The Flutter 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("//flutter/testing/testing.gni")
if (enable_unittests) {
compiled_action_foreach("spirv_compile_general_shaders") {
tool = "//flutter/lib/spirv/test:glsl_to_spirv"
sources = [
"functions.glsl",
"simple.glsl",
"uniforms.glsl",
]
outputs = [ "$target_gen_dir/{{source_name_part}}.spv" ]
args = [
"{{source}}",
rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.spv",
]
}
}