aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsui Ohkubo <tetsui@google.com>2019-02-05 09:27:27 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-02-05 09:27:27 -0800
commit5abdcda44fc7d1078bf66acc32ac0a9273e7c5eb (patch)
tree034f650ce9167e5df9c88a40194d5adede746f63
parent5e8cb2c2aa691a120f7c2535335e847e202e8bdc (diff)
parent2abba433677fe782e6250cfe53abf0099713c50a (diff)
downloadlibxkbcommon-5abdcda44fc7d1078bf66acc32ac0a9273e7c5eb.tar.gz
StaticKCM: Build libxkbcommon also on host. am: 531410ebb3
am: 2abba43367 Change-Id: Icd04dd8225c450e1da5bbeefd73e38c6d45ae300
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
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",
}