summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-02-24 11:46:09 -0800
committerColin Cross <ccross@android.com>2020-04-27 14:35:34 -0700
commite02ef7672ab04fa40c9f2b32b4db4d86976d576f (patch)
tree5b17cdb4ce0bd773379bde4670bf0794eb7171ec
parent7e2aace68a08de1de756ce842f5c14c69e96b173 (diff)
downloadndk-android11-mainline-documentsui-release.tar.gz
The SDK variant of android_native_app_glue doesn't need libnativewindow as that library didn't exist in the sdk version it uses, but it is necessary for the platform variant. Bug: 149591340 Test: m checkbuild Change-Id: I1bae84c436fce0a4c204701cc463bb32c92becc9 Merged-In: I1bae84c436fce0a4c204701cc463bb32c92becc9 (cherry picked from commit 253d14624c74ec1c61841489f5a73cda86b8a77b)
-rw-r--r--android_native_app_glue.bp5
1 files changed, 5 insertions, 0 deletions
diff --git a/android_native_app_glue.bp b/android_native_app_glue.bp
index 1b1c95dcb..234f9456d 100644
--- a/android_native_app_glue.bp
+++ b/android_native_app_glue.bp
@@ -20,4 +20,9 @@ cc_library_static {
cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
sdk_version: "minimum",
export_include_dirs: ["current/sources/android/native_app_glue"],
+ target: {
+ platform: {
+ shared_libs: ["libnativewindow"],
+ },
+ },
}