skia2/third_party/spirv-cross/BUILD.gn
Stephen White 20c626aa23 Update Dawn backend to ToT. This is about 3 months of changes.
Remove optional param to SetIndexBuffer().
Update SetVertexBuffers -> SetVertexBuffer.
PipelineStageDescriptor -> ProgrammableStageDescriptor.
Update past generator changes, ring buffer changes, etc.
Add ErrorScopeTracker.cpp/.h to the build.
Add Vulkan MemoryResourceAllocator files.
Fix vertexShader ShaderStageDescriptor.
Fix spirv-cross include path.
TextureUsageBit -> TextureUsage, etc.
DawnErrorCallback fixes.
Removal of texture.CreateDefaultView.
Fix GL supported_extesions mumbo jumbo.
Update past ChromeOS change.
Add PassResourceUsageTracker.cpp/.h to build.
Add GLFormat.cpp/.h to build.
Add Extensions and Toggles to the build.
Add EncodingContext, AttachmentState to build.
Add RenderEncoderBase to Dawn build.
gn format dawn BUILD.gn, spirv-cross BUILD.gn.

Change-Id: I26538d63c93668647048814aad6ad456ae323679
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/248261
Commit-Queue: Stephen White <senorblanco@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2019-10-15 22:26:38 +00:00

50 lines
1.4 KiB
Plaintext

spirv_cross = "//third_party/externals/spirv-cross"
config("spirv_cross_config") {
include_dirs = [
"//third_party/externals",
"//third_party/externals/spirv-cross",
]
defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
}
static_library("spirv_cross") {
public_configs = [ ":spirv_cross_config" ]
configs -= [ "//gn:warnings" ]
cflags = []
if (is_win) {
cflags += [
"/wd5850",
"/wd4245",
"/wd4702",
"/wd4706",
"/wd4715",
]
}
sources = rebase_path([
"GLSL.std.450.h",
"spirv.hpp",
"spirv_cfg.cpp",
"spirv_cfg.hpp",
"spirv_common.hpp",
"spirv_cpp.cpp",
"spirv_cpp.hpp",
"spirv_cross.cpp",
"spirv_cross.hpp",
"spirv_cross_parsed_ir.cpp",
"spirv_cross_parsed_ir.hpp",
"spirv_glsl.cpp",
"spirv_glsl.hpp",
"spirv_hlsl.cpp",
"spirv_hlsl.hpp",
"spirv_msl.cpp",
"spirv_msl.hpp",
"spirv_parser.cpp",
"spirv_parser.hpp",
],
".",
"${spirv_cross}")
}