xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/cl/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2021 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#
5# This file houses the build configuration for the OpenCL pass-through back-end.
6
7import("../../../../gni/angle.gni")
8
9assert(angle_enable_cl_passthrough)
10
11_cl_backend_sources = [
12  "CLCommandQueueCL.cpp",
13  "CLCommandQueueCL.h",
14  "CLContextCL.cpp",
15  "CLContextCL.h",
16  "CLDeviceCL.cpp",
17  "CLDeviceCL.h",
18  "CLEventCL.cpp",
19  "CLEventCL.h",
20  "CLKernelCL.cpp",
21  "CLKernelCL.h",
22  "CLMemoryCL.cpp",
23  "CLMemoryCL.h",
24  "CLPlatformCL.cpp",
25  "CLPlatformCL.h",
26  "CLProgramCL.cpp",
27  "CLProgramCL.h",
28  "CLSamplerCL.cpp",
29  "CLSamplerCL.h",
30  "cl_types.h",
31  "cl_util.cpp",
32  "cl_util.h",
33]
34
35config("angle_cl_backend_config") {
36  defines = [ "ANGLE_ENABLE_CL_PASSTHROUGH" ]
37}
38
39angle_source_set("angle_cl_backend") {
40  sources = _cl_backend_sources
41
42  public_deps = [
43    "$angle_root:angle_version_info",
44    "$angle_root:libANGLE_headers",
45    "$angle_root/third_party/OpenCL-ICD-Loader:opencl_icd_loader",
46  ]
47}
48