From 531410ebb3d8034bbbbae61e4a6280eba4edd7c6 Mon Sep 17 00:00:00 2001 From: Tetsui Ohkubo Date: Thu, 17 Jan 2019 11:12:41 +0900 Subject: StaticKCM: Build libxkbcommon also on host. In order to add static KCM converter, we need libxkbcommon to be also built on host. Here's WIP CL of XkbToKcmConverter http://ag/6051716 Design doc: go/arc-static-kcm-converter Test: none Bug: 122704772 Change-Id: I5ae34a16454b23e0ac7084d7bc32940ea529fd69 --- Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Android.bp b/Android.bp index 10471bc..503d42d 100644 --- a/Android.bp +++ b/Android.bp @@ -53,6 +53,8 @@ cc_library_static { "-Wno-unused-parameter", "-Wno-missing-field-initializers", "-DXLOCALEDIR=\"/usr/share/X11/locale\"", + // Needed because libxkbcommon uses GNU extension asprintf(). + "-D_GNU_SOURCE", "-DDEFAULT_XKB_LAYOUT=\"us\"", "-DDEFAULT_XKB_MODEL=\"pc105\"", "-DDEFAULT_XKB_RULES=\"evdev\"", @@ -61,5 +63,6 @@ cc_library_static { local_include_dirs: ["xkbcommon/src"], export_include_dirs: ["xkbcommon"], vendor_available: true, + host_supported: true, name: "libxkbcommon", } -- cgit v1.2.3