1 cc_library { 2 name: "libbrotli", 3 host_supported: true, 4 cflags: [ 5 "-Werror", 6 "-O2", 7 ], 8 export_include_dirs: ["include/"], 9 local_include_dirs: ["include/"], 10 srcs: [ 11 "common/*.c", 12 "dec/*.c", 13 "enc/*.c", 14 ], 15 target: { 16 linux_bionic: { 17 enabled: true, 18 }, 19 }, 20 host_ldlibs: ["-lm"], 21 stl: "none", 22 } 23 24 cc_binary { 25 name: "bro", 26 host_supported: true, 27 cflags: ["-Werror"], 28 srcs: ["tools/bro.c"], 29 target: { 30 linux_bionic: { 31 enabled: true, 32 }, 33 }, 34 shared_libs: ["libbrotli"], 35 } 36