Elliott Hughes | f56c789 | 2017-06-16 14:33:13 -0700 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libxz", |
| 3 | host_supported: true, |
Dan Willemsen | 6f13985 | 2018-10-23 14:10:58 -0700 | [diff] [blame^] | 4 | recovery_available: true, |
Elliott Hughes | f56c789 | 2017-06-16 14:33:13 -0700 | [diff] [blame] | 5 | srcs: [ |
| 6 | "linux/lib/xz/xz_crc32.c", |
| 7 | "linux/lib/xz/xz_dec_bcj.c", |
| 8 | "linux/lib/xz/xz_dec_lzma2.c", |
| 9 | "linux/lib/xz/xz_dec_stream.c", |
| 10 | ], |
Dan Willemsen | 6f13985 | 2018-10-23 14:10:58 -0700 | [diff] [blame^] | 11 | local_include_dirs: ["userspace"], |
Elliott Hughes | 03e7a3e | 2017-06-22 09:13:20 -0700 | [diff] [blame] | 12 | |
| 13 | // Enable branch/call/jump filters. See http://b/27817327. |
Chih-Hung Hsieh | 04db9dd | 2017-09-29 11:40:30 -0700 | [diff] [blame] | 14 | cflags: [ |
| 15 | "-DXZ_DEC_X86", |
| 16 | "-DXZ_DEC_ARM", |
| 17 | "-DXZ_DEC_ARMTHUMB", |
| 18 | "-Wall", |
| 19 | "-Werror", |
| 20 | ], |
Elliott Hughes | 03e7a3e | 2017-06-22 09:13:20 -0700 | [diff] [blame] | 21 | |
Elliott Hughes | f56c789 | 2017-06-16 14:33:13 -0700 | [diff] [blame] | 22 | export_include_dirs: ["linux/include/linux/"], |
| 23 | } |