summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Brett Chabot <brettchabot@google.com> 2020-11-03 16:04:22 -0800
committer Brett Chabot <brettchabot@google.com> 2020-11-03 16:09:58 -0800
commit4bfc6508ab0c44a8010603651c5f0f3f42bc86ce (patch)
tree590e8ce8bd48a0838a31e99c9addf4f04ed47cbf
parent8e5bcf841b2c8a75bad6c0906206317b89a57e47 (diff)
Hopefully fix validatekeymaps mac build.
Only link in libbinder for linux builds. Bug: 172023026 Test: m validatekeymaps Change-Id: Ibdcdfab2c5160644b9b9453e56a76d47f6d2b9b4
-rw-r--r--tools/validatekeymaps/Android.bp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/validatekeymaps/Android.bp b/tools/validatekeymaps/Android.bp
index 2759e29d1620..15b8b4105713 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,
},
},
}