aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-10-09 10:16:01 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-09 14:41:03 +0000
commitc1720d40360e9efc0f91b4a43c8ff694dd3af2a8 (patch)
tree007832ba9b3d1354dc4a611415ebc1af216dd5db /BUILD.gn
parentc203e65265ccf0dcf426eafa4fae97b2b99cba7d (diff)
Get HelloWorld example running again
Change-Id: I5956f7c52d265d9f52dd061f1555c54ad092fe76 Reviewed-on: https://skia-review.googlesource.com/57101 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn20
1 files changed, 20 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index ece39b05d9..29fc0204b3 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1421,6 +1421,26 @@ if (skia_enable_tools) {
}
}
+ if (skia_enable_gpu && !skia_use_angle && (is_linux || is_win || is_mac)) {
+ test_app("HelloWorld") {
+ sources = [
+ "example/HelloWorld.cpp",
+ ]
+ if (is_mac) {
+ sources += [ "src/views/mac/skia_mac.mm" ]
+ } else if (is_win) {
+ sources += [ "src/views/win/skia_win.cpp" ]
+ } else if (is_linux) {
+ sources += [ "src/views/unix/skia_unix.cpp" ]
+ }
+ deps = [
+ ":gpu_tool_utils",
+ ":skia",
+ ":views",
+ ]
+ }
+ }
+
if (skia_enable_gpu) {
test_app("skpbench") {
sources = [