• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 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
7declare_args() {
8  angle_enable_gl_null = true
9}
10
11gl_backend_sources = [
12  "BlitGL.cpp",
13  "BlitGL.h",
14  "BufferGL.cpp",
15  "BufferGL.h",
16  "ClearMultiviewGL.cpp",
17  "ClearMultiviewGL.h",
18  "CompilerGL.cpp",
19  "CompilerGL.h",
20  "ContextGL.cpp",
21  "ContextGL.h",
22  "DispatchTableGL_autogen.cpp",
23  "DispatchTableGL_autogen.h",
24  "DisplayGL.cpp",
25  "DisplayGL.h",
26  "FenceNVGL.cpp",
27  "FenceNVGL.h",
28  "FramebufferGL.cpp",
29  "FramebufferGL.h",
30  "FunctionsGL.cpp",
31  "FunctionsGL.h",
32  "ImageGL.cpp",
33  "ImageGL.h",
34  "MemoryObjectGL.cpp",
35  "MemoryObjectGL.h",
36  "PLSProgramCache.cpp",
37  "PLSProgramCache.h",
38  "ProgramExecutableGL.cpp",
39  "ProgramExecutableGL.h",
40  "ProgramGL.cpp",
41  "ProgramGL.h",
42  "ProgramPipelineGL.cpp",
43  "ProgramPipelineGL.h",
44  "QueryGL.cpp",
45  "QueryGL.h",
46  "RenderbufferGL.cpp",
47  "RenderbufferGL.h",
48  "RendererGL.cpp",
49  "RendererGL.h",
50  "SamplerGL.cpp",
51  "SamplerGL.h",
52  "SemaphoreGL.cpp",
53  "SemaphoreGL.h",
54  "ShaderGL.cpp",
55  "ShaderGL.h",
56  "StateManagerGL.cpp",
57  "StateManagerGL.h",
58  "SurfaceGL.cpp",
59  "SurfaceGL.h",
60  "SyncGL.cpp",
61  "SyncGL.h",
62  "TextureGL.cpp",
63  "TextureGL.h",
64  "TransformFeedbackGL.cpp",
65  "TransformFeedbackGL.h",
66  "VertexArrayGL.cpp",
67  "VertexArrayGL.h",
68  "formatutilsgl.cpp",
69  "formatutilsgl.h",
70  "functionsgl_enums.h",
71  "functionsgl_typedefs.h",
72  "renderergl_utils.cpp",
73  "renderergl_utils.h",
74]
75
76if (is_win) {
77  gl_backend_sources += [
78    "../../../third_party/khronos/GL/wglext.h",
79    "wgl/ContextWGL.cpp",
80    "wgl/ContextWGL.h",
81    "wgl/D3DTextureSurfaceWGL.cpp",
82    "wgl/D3DTextureSurfaceWGL.h",
83    "wgl/DXGISwapChainWindowSurfaceWGL.cpp",
84    "wgl/DXGISwapChainWindowSurfaceWGL.h",
85    "wgl/DisplayWGL.cpp",
86    "wgl/DisplayWGL.h",
87    "wgl/FunctionsWGL.cpp",
88    "wgl/FunctionsWGL.h",
89    "wgl/PbufferSurfaceWGL.cpp",
90    "wgl/PbufferSurfaceWGL.h",
91    "wgl/RendererWGL.cpp",
92    "wgl/RendererWGL.h",
93    "wgl/SurfaceWGL.h",
94    "wgl/WindowSurfaceWGL.cpp",
95    "wgl/WindowSurfaceWGL.h",
96    "wgl/functionswgl_typedefs.h",
97    "wgl/wgl_utils.cpp",
98    "wgl/wgl_utils.h",
99  ]
100}
101
102if (angle_use_x11) {
103  gl_backend_sources += [
104    "glx/DisplayGLX.cpp",
105    "glx/DisplayGLX.h",
106    "glx/DisplayGLX_api.h",
107    "glx/FunctionsGLX.cpp",
108    "glx/FunctionsGLX.h",
109    "glx/PbufferSurfaceGLX.cpp",
110    "glx/PbufferSurfaceGLX.h",
111    "glx/PixmapSurfaceGLX.cpp",
112    "glx/PixmapSurfaceGLX.h",
113    "glx/SurfaceGLX.h",
114    "glx/WindowSurfaceGLX.cpp",
115    "glx/WindowSurfaceGLX.h",
116    "glx/functionsglx_typedefs.h",
117    "glx/glx_utils.cpp",
118    "glx/glx_utils.h",
119    "glx/platform_glx.h",
120  ]
121}
122
123if (is_android || is_linux || is_chromeos) {
124  gl_backend_sources += [
125    "egl/ContextEGL.cpp",
126    "egl/ContextEGL.h",
127    "egl/DeviceEGL.cpp",
128    "egl/DeviceEGL.h",
129    "egl/DisplayEGL.cpp",
130    "egl/DisplayEGL.h",
131    "egl/DmaBufImageSiblingEGL.cpp",
132    "egl/DmaBufImageSiblingEGL.h",
133    "egl/ExternalImageSiblingEGL.h",
134    "egl/FunctionsEGL.cpp",
135    "egl/FunctionsEGL.h",
136    "egl/FunctionsEGLDL.cpp",
137    "egl/FunctionsEGLDL.h",
138    "egl/ImageEGL.cpp",
139    "egl/ImageEGL.h",
140    "egl/PbufferSurfaceEGL.cpp",
141    "egl/PbufferSurfaceEGL.h",
142    "egl/RendererEGL.cpp",
143    "egl/RendererEGL.h",
144    "egl/SurfaceEGL.cpp",
145    "egl/SurfaceEGL.h",
146    "egl/SyncEGL.cpp",
147    "egl/SyncEGL.h",
148    "egl/WindowSurfaceEGL.cpp",
149    "egl/WindowSurfaceEGL.h",
150    "egl/egl_utils.cpp",
151    "egl/egl_utils.h",
152    "egl/functionsegl_typedefs.h",
153  ]
154}
155
156if (is_android) {
157  gl_backend_sources += [
158    "egl/android/DisplayAndroid.cpp",
159    "egl/android/DisplayAndroid.h",
160    "egl/android/NativeBufferImageSiblingAndroid.cpp",
161    "egl/android/NativeBufferImageSiblingAndroid.h",
162  ]
163}
164
165if (angle_enable_cgl) {
166  gl_backend_sources += [
167    "cgl/ContextCGL.cpp",
168    "cgl/ContextCGL.h",
169    "cgl/DeviceCGL.cpp",
170    "cgl/DeviceCGL.h",
171    "cgl/DisplayCGL.h",
172    "cgl/DisplayCGL.mm",
173    "cgl/IOSurfaceSurfaceCGL.cpp",
174    "cgl/IOSurfaceSurfaceCGL.h",
175    "cgl/PbufferSurfaceCGL.cpp",
176    "cgl/PbufferSurfaceCGL.h",
177    "cgl/WindowSurfaceCGL.h",
178    "cgl/WindowSurfaceCGL.mm",
179  ]
180}
181
182if (angle_enable_eagl) {
183  gl_backend_sources += [
184    "eagl/ContextEAGL.cpp",
185    "eagl/ContextEAGL.h",
186    "eagl/DeviceEAGL.cpp",
187    "eagl/DeviceEAGL.h",
188    "eagl/DisplayEAGL.h",
189    "eagl/DisplayEAGL.mm",
190    "eagl/FunctionsEAGL.h",
191    "eagl/FunctionsEAGL.mm",
192    "eagl/IOSurfaceSurfaceEAGL.h",
193    "eagl/IOSurfaceSurfaceEAGL.mm",
194    "eagl/PbufferSurfaceEAGL.cpp",
195    "eagl/PbufferSurfaceEAGL.h",
196    "eagl/WindowSurfaceEAGL.h",
197    "eagl/WindowSurfaceEAGL.mm",
198  ]
199}
200
201if (angle_enable_gl_null) {
202  gl_backend_sources += [
203    "null_functions.cpp",
204    "null_functions.h",
205  ]
206}
207