diff options
author | 2017-06-27 15:37:25 -0400 | |
---|---|---|
committer | 2017-06-27 20:28:13 +0000 | |
commit | 7a86987815be3af78fe3801d4f347ebb0c63141a (patch) | |
tree | 27a2eec9280db82617aed10b8f682de036e2e6f1 /BUILD.gn | |
parent | 3921ba236f1e3320b5999fe472f0acfbb6b6f75a (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.gn | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" ] |