From 1c06cb829cbb98e38f55641a7835ad377dac0c5a 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 Merged-In: Ibdcdfab2c5160644b9b9453e56a76d47f6d2b9b4 --- tools/validatekeymaps/Android.bp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/validatekeymaps/Android.bp b/tools/validatekeymaps/Android.bp index 9fcf034536fc4..d80f0bdfdeb65 100644 --- a/tools/validatekeymaps/Android.bp +++ b/tools/validatekeymaps/Android.bp @@ -30,11 +30,19 @@ cc_binary_host { "libcutils", "liblog", ], + 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, }, }, }