aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn13
1 files changed, 13 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 3fa93441ad..f3f170ebfc 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -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" ]
+ }
+ }
}