1# Copyright 2024 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("../../../../gni/angle.gni") 6 7wgpu_backend_sources = [ 8 "BufferWgpu.cpp", 9 "BufferWgpu.h", 10 "CompilerWgpu.cpp", 11 "CompilerWgpu.h", 12 "ContextWgpu.cpp", 13 "ContextWgpu.h", 14 "DeviceWgpu.cpp", 15 "DeviceWgpu.h", 16 "DisplayWgpu.cpp", 17 "DisplayWgpu.h", 18 "DisplayWgpu_api.h", 19 "FenceNVWgpu.cpp", 20 "FenceNVWgpu.h", 21 "FramebufferWgpu.cpp", 22 "FramebufferWgpu.h", 23 "ImageWgpu.cpp", 24 "ImageWgpu.h", 25 "ProgramExecutableWgpu.cpp", 26 "ProgramExecutableWgpu.h", 27 "ProgramPipelineWgpu.cpp", 28 "ProgramPipelineWgpu.h", 29 "ProgramWgpu.cpp", 30 "ProgramWgpu.h", 31 "QueryWgpu.cpp", 32 "QueryWgpu.h", 33 "RenderTargetWgpu.cpp", 34 "RenderTargetWgpu.h", 35 "RenderbufferWgpu.cpp", 36 "RenderbufferWgpu.h", 37 "SamplerWgpu.cpp", 38 "SamplerWgpu.h", 39 "ShaderWgpu.cpp", 40 "ShaderWgpu.h", 41 "SurfaceWgpu.cpp", 42 "SurfaceWgpu.h", 43 "SyncWgpu.cpp", 44 "SyncWgpu.h", 45 "TextureWgpu.cpp", 46 "TextureWgpu.h", 47 "TransformFeedbackWgpu.cpp", 48 "TransformFeedbackWgpu.h", 49 "VertexArrayWgpu.cpp", 50 "VertexArrayWgpu.h", 51 "wgpu_command_buffer.cpp", 52 "wgpu_command_buffer.h", 53 "wgpu_format_table_autogen.cpp", 54 "wgpu_format_utils.cpp", 55 "wgpu_format_utils.h", 56 "wgpu_helpers.cpp", 57 "wgpu_helpers.h", 58 "wgpu_pipeline_state.cpp", 59 "wgpu_pipeline_state.h", 60 "wgpu_utils.cpp", 61 "wgpu_utils.h", 62 "wgpu_wgsl_util.cpp", 63 "wgpu_wgsl_util.h", 64] 65 66if (is_win) { 67 wgpu_backend_sources += [ 68 "win32/WindowSurfaceWgpuWin32.cpp", 69 "win32/WindowSurfaceWgpuWin32.h", 70 ] 71} 72 73if (is_mac) { 74 wgpu_backend_sources += [ 75 "mac/WindowSurfaceWgpuMetalLayer.h", 76 "mac/WindowSurfaceWgpuMetalLayer.mm", 77 ] 78} 79 80if (angle_use_x11) { 81 wgpu_backend_sources += [ 82 "linux/x11/WindowSurfaceWgpuX11.cpp", 83 "linux/x11/WindowSurfaceWgpuX11.h", 84 ] 85} 86