diff options
author | Mike Klein <mtklein@chromium.org> | 2018-06-20 14:05:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-20 21:50:47 +0000 |
commit | f9ae670d0563322506490e3fe7f2dae6d432e05f (patch) | |
tree | f8e1bd8ad4da55ebbeb02358a1a4c81dc6c4256c /BUILD.gn | |
parent | c2a29fcc78bea3cce44995406dc247f4c4c8d547 (diff) |
add hello-opencl
This is a little hello world for OpenCL.
Change-Id: I9502407dab75694a19e97832bcfe33f47cbd97e9
Reviewed-on: https://skia-review.googlesource.com/136223
Commit-Queue: Allan MacKinnon <allanmac@google.com>
Reviewed-by: Allan MacKinnon <allanmac@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -26,6 +26,7 @@ declare_args() { skia_use_libpng = true skia_use_libwebp = !is_fuchsia skia_use_lua = is_skia_dev_build && !is_ios + skia_use_opencl = false skia_use_piex = !is_win skia_use_zlib = true skia_use_metal = false @@ -2177,4 +2178,16 @@ if (skia_enable_tools) { ] } } + + if (skia_use_opencl) { + test_app("hello-opencl") { + sources = [ + "src/compute/common/cl/assert_cl.c", + "src/compute/common/cl/find_cl.c", + "tools/hello-opencl.cpp", + ] + include_dirs = [ "src/compute/common" ] + libs = [ "OpenCL" ] + } + } } |