aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Derek Sollenberger <djsollen@google.com>2017-06-27 15:37:25 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-27 20:28:13 +0000
commit7a86987815be3af78fe3801d4f347ebb0c63141a (patch)
tree27a2eec9280db82617aed10b8f682de036e2e6f1 /BUILD.gn
parent3921ba236f1e3320b5999fe472f0acfbb6b6f75a (diff)
Use the NDK headers for AHardwareBuffer.
Bug: 6672 Change-Id: I5abd86149e912d91234853109ebd2a6b0ac5eaa2 Reviewed-on: https://skia-review.googlesource.com/20980 Reviewed-by: Stan Iliev <stani@google.com> Commit-Queue: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn5
1 files changed, 5 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 6ead044ff4..7595076a02 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -486,6 +486,11 @@ optional("gpu") {
libs = []
if (is_android) {
sources += [ "src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp" ]
+
+ # this lib is required to link against AHardwareBuffer
+ if (defined(ndk_api) && ndk_api >= 26) {
+ libs += [ "android" ]
+ }
} else if (skia_use_egl) {
sources += [ "src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp" ]
libs += [ "EGL" ]