blob: b6751f67c0f0db39fd12ec858896a7c49481aa83 [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_supported_op_shaders") {
tool = "//flutter/lib/spirv/test:glsl_to_spirv"
sources = [
"127_OpFNegate.glsl",
"129_OpFAdd.glsl",
"131_OpFSub.glsl",
"142_OpVectorTimesScalar.glsl",
"143_OpMatrixTimesScalar.glsl",
"144_OpVectorTimesMatrix.glsl",
"145_OpMatrixTimesVector.glsl",
"146_OpMatrixTimesMatrix.glsl",
"148_OpDot.glsl",
"19_OpTypeVoid.glsl",
"20_OpTypeBool.glsl",
"21_OpTypeInt.glsl",
"22_OpTypeFloat.glsl",
"23_OpTypeVector.glsl",
"24_OpTypeMatrix.glsl",
"33_OpTypeFunction.glsl",
]
outputs = [ "$target_gen_dir/{{source_name_part}}.spv" ]
args = [
"{{source}}",
rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.spv",
]
}
}