Hash :
1d7046ca
Author :
Date :
2021-04-12T16:17:22
Generate CL stubs in libGLESv2 Bug: angleproject:5758 Change-Id: I6440dacf0db57a56923d2cab5a7c791981ba3b9d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2822248 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
# Copyright 2021 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Build configuration for OpenCL-related targets.
import("../../gni/angle.gni")
angle_source_set("cl_includes") {
sources = [
"../../include/CL/cl.h",
"../../include/CL/cl_d3d10.h",
"../../include/CL/cl_d3d11.h",
"../../include/CL/cl_dx9_media_sharing.h",
"../../include/CL/cl_dx9_media_sharing_intel.h",
"../../include/CL/cl_egl.h",
"../../include/CL/cl_ext.h",
"../../include/CL/cl_ext_intel.h",
"../../include/CL/cl_gl.h",
"../../include/CL/cl_gl_ext.h",
"../../include/CL/cl_half.h",
"../../include/CL/cl_icd.h",
"../../include/CL/cl_layer.h",
"../../include/CL/cl_platform.h",
"../../include/CL/cl_va_api_media_sharing_intel.h",
"../../include/CL/cl_version.h",
"../../include/CL/opencl.h",
"../../include/angle_cl.h",
"../../include/export.h",
]
}
angle_shared_library("OpenCL") {
defines = [ "LIBCL_IMPLEMENTATION" ]
sources = [
"cl_loader.h",
"cl_loader_autogen.cpp",
"entry_points_cl_autogen.cpp",
"entry_points_cl_autogen.h",
"entry_points_cl_utils.h",
"libOpenCL_autogen.cpp",
]
deps = [ ":cl_includes" ]
}
group("angle_cl") {
data_deps = [ ":OpenCL" ]
}