From e02ef7672ab04fa40c9f2b32b4db4d86976d576f Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 24 Feb 2020 11:46:09 -0800 Subject: Use libnativewindow for platform variant of android_native_app_glue 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) --- android_native_app_glue.bp | 5 +++++ 1 file changed, 5 insertions(+) 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"], + }, + }, } -- cgit v1.2.3