Hash :
d8c18ac6
Author :
Date :
2021-10-08T13:00:19
Re-land: "Isolate commit_id.h from other code." Re-land limits the angle_version deps to Windows to fix an iOS visibility rule violation in GN. Instead of recompiling multiple source files, we can seal off the files that include commit_id to prevent recompilations when the commit changes and source files don't change. Bug: angleproject:2551 Change-Id: I033f00ec7afe4bfd01e29e0eea8848eea27747a0 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3233899 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
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
# 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.
#
# This file houses the build configuration for the OpenCL pass-through back-end.
import("../../../../gni/angle.gni")
assert(angle_enable_cl_passthrough)
_cl_backend_sources = [
"CLCommandQueueCL.cpp",
"CLCommandQueueCL.h",
"CLContextCL.cpp",
"CLContextCL.h",
"CLDeviceCL.cpp",
"CLDeviceCL.h",
"CLEventCL.cpp",
"CLEventCL.h",
"CLKernelCL.cpp",
"CLKernelCL.h",
"CLMemoryCL.cpp",
"CLMemoryCL.h",
"CLPlatformCL.cpp",
"CLPlatformCL.h",
"CLProgramCL.cpp",
"CLProgramCL.h",
"CLSamplerCL.cpp",
"CLSamplerCL.h",
"cl_types.h",
"cl_util.cpp",
"cl_util.h",
]
config("angle_cl_backend_config") {
defines = [ "ANGLE_ENABLE_CL_PASSTHROUGH" ]
}
angle_source_set("angle_cl_backend") {
sources = _cl_backend_sources
public_deps = [
"$angle_root:angle_version_info",
"$angle_root:libANGLE_headers",
"$angle_root/third_party/OpenCL-ICD-Loader:opencl_icd_loader",
]
}