cc_library { | |
name: "libbrotli", | |
host_supported: true, | |
cflags: [ | |
"-Werror", | |
"-O2", | |
], | |
export_include_dirs: ["include/"], | |
local_include_dirs: ["include/"], | |
srcs: [ | |
"common/*.c", | |
"dec/*.c", | |
"enc/*.c", | |
], | |
target: { | |
linux_bionic: { | |
enabled: true, | |
}, | |
}, | |
host_ldlibs: ["-lm"], | |
stl: "none", | |
} | |
cc_binary { | |
name: "bro", | |
host_supported: true, | |
cflags: ["-Werror"], | |
srcs: ["tools/bro.c"], | |
target: { | |
linux_bionic: { | |
enabled: true, | |
}, | |
}, | |
shared_libs: ["libbrotli"], | |
} |