Allow generation of the host executable for brotli am: efe81522a1 am: a2affd912c
am: a2c81a08d1
Change-Id: Iadfff182677de8d38c1652cd5a95c3f15853c00c
diff --git a/Android.bp b/Android.bp
index 59bb2b5..cba9ff6 100755
--- a/Android.bp
+++ b/Android.bp
@@ -1,10 +1,10 @@
cc_library {
name: "libbrotli",
+ host_supported: true,
cflags: [
"-Werror",
"-O2",
],
- defaults: ["linux_bionic_supported"],
export_include_dirs: ["include/"],
local_include_dirs: ["include/"],
srcs: [
@@ -12,13 +12,24 @@
"dec/*.c",
"enc/*.c",
],
+ target: {
+ linux_bionic: {
+ enabled: true,
+ },
+ },
+ host_ldlibs: ["-lm"],
stl: "none",
}
cc_binary {
name: "bro",
+ host_supported: true,
cflags: ["-Werror"],
- defaults: ["linux_bionic_supported"],
srcs: ["tools/bro.c"],
+ target: {
+ linux_bionic: {
+ enabled: true,
+ },
+ },
shared_libs: ["libbrotli"],
}