4f4c064d5b
Nice periodically, and this version also has a Mac arm64 binary. Refine a few visibility rules from ":*" (any target in this file) to "./*" (any target in any .gn file anywhere under this directory). Use frameworks over libs where now required. Change-Id: Ic19e1533e2810d18ae4684645d8555b422320b7f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354536 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
16 lines
387 B
Plaintext
16 lines
387 B
Plaintext
import("../third_party.gni")
|
|
|
|
third_party("opencl") {
|
|
# OpenCL C++ wrapper API, cl.hpp.
|
|
# (Some platforms only ship the C APIs, which cl.hpp builds on.)
|
|
public_include_dirs = [ "../externals/opencl-registry/api/2.1" ]
|
|
|
|
if (is_linux) {
|
|
libs = [ "OpenCL" ]
|
|
} else if (is_mac) {
|
|
frameworks = [ "OpenCL.framework" ]
|
|
} else if (is_win) {
|
|
libs = [ "OpenCL.lib" ]
|
|
}
|
|
}
|