diff options
author | Tetsui Ohkubo <tetsui@google.com> | 2019-01-17 11:12:41 +0900 |
---|---|---|
committer | Tetsui Ohkubo <tetsui@google.com> | 2019-02-05 16:43:13 +0900 |
commit | 531410ebb3d8034bbbbae61e4a6280eba4edd7c6 (patch) | |
tree | 034f650ce9167e5df9c88a40194d5adede746f63 | |
parent | 1c00aae3b9ddd4d69631407f8dcdf19c516b323e (diff) | |
download | libxkbcommon-531410ebb3d8034bbbbae61e4a6280eba4edd7c6.tar.gz |
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
-rw-r--r-- | Android.bp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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", } |