From 4bfc6508ab0c44a8010603651c5f0f3f42bc86ce Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Tue, 3 Nov 2020 16:04:22 -0800 Subject: [PATCH] Hopefully fix validatekeymaps mac build. Only link in libbinder for linux builds. Bug: 172023026 Test: m validatekeymaps Change-Id: Ibdcdfab2c5160644b9b9453e56a76d47f6d2b9b4 --- tools/validatekeymaps/Android.bp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/validatekeymaps/Android.bp b/tools/validatekeymaps/Android.bp index 2759e29d16200..15b8b4105713d 100644 --- a/tools/validatekeymaps/Android.bp +++ b/tools/validatekeymaps/Android.bp @@ -16,18 +16,25 @@ cc_binary_host { static_libs: [ "libbase", - "libbinder", "libinput", "libutils", "libcutils", "liblog", "libui-types", ], + target: { + linux_glibc: { + static_libs: [ + // libbinder is only available for linux + "libbinder", + ], + }, + }, // This tool is prebuilt if we're doing an app-only build. product_variables: { unbundled_build: { - enabled: false, + enabled: false, }, }, }