Edit

kc3-lang/angle/src/libOpenCL/BUILD.gn

Branch :

  • Show log

    Commit

  • Author : John Plate
    Date : 2021-03-10 19:02:12
    Hash : 65586746
    Message : add cl entry points loader Bug: angleproject:5743 Change-Id: I61791f412e8dbc54878cd3791519ad1c4ee33399 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2749595 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: John Plate <jplate@google.com>

  • src/libOpenCL/BUILD.gn
  • # 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/export.h",
      ]
    }
    
    # TODO(jplate): Fix OpenCL headers for Windows http://anglebug.com/5761
    if (is_linux) {
      angle_shared_library("OpenCL") {
        defines = [
          "CL_TARGET_OPENCL_VERSION=100",
          "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") {
      # TODO(jplate): Fix OpenCL headers for Windows http://anglebug.com/5761
      if (is_linux) {
        data_deps = [ ":OpenCL" ]
      }
    }