Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 1 | cc_library { |
| 2 | name: "libbrotli", |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 3 | host_supported: true, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 4 | cflags: [ |
| 5 | "-Werror", |
| 6 | "-O2", |
| 7 | ], |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 8 | export_include_dirs: ["c/include"], |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 9 | srcs: [ |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 10 | "c/common/*.c", |
| 11 | "c/dec/*.c", |
| 12 | "c/enc/*.c", |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 13 | ], |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 14 | target: { |
| 15 | linux_bionic: { |
| 16 | enabled: true, |
| 17 | }, |
| 18 | }, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 19 | stl: "none", |
| 20 | } |
| 21 | |
| 22 | cc_binary { |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 23 | name: "brotli", |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 24 | host_supported: true, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 25 | cflags: ["-Werror"], |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 26 | srcs: ["c/tools/brotli.c"], |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 27 | target: { |
| 28 | linux_bionic: { |
| 29 | enabled: true, |
| 30 | }, |
| 31 | }, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 32 | shared_libs: ["libbrotli"], |
| 33 | } |