blob: 634c2d371329ddf252b434fadc5653ec08030cc1 [file] [log] [blame]
Elliott Hughesf56c7892017-06-16 14:33:13 -07001cc_library_static {
2 name: "libxz",
3 host_supported: true,
Dan Willemsen6f139852018-10-23 14:10:58 -07004 recovery_available: true,
Elliott Hughesf56c7892017-06-16 14:33:13 -07005 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 Willemsen6f139852018-10-23 14:10:58 -070011 local_include_dirs: ["userspace"],
Elliott Hughes03e7a3e2017-06-22 09:13:20 -070012
13 // Enable branch/call/jump filters. See http://b/27817327.
Chih-Hung Hsieh04db9dd2017-09-29 11:40:30 -070014 cflags: [
15 "-DXZ_DEC_X86",
16 "-DXZ_DEC_ARM",
17 "-DXZ_DEC_ARMTHUMB",
18 "-Wall",
19 "-Werror",
20 ],
Elliott Hughes03e7a3e2017-06-22 09:13:20 -070021
Elliott Hughesf56c7892017-06-16 14:33:13 -070022 export_include_dirs: ["linux/include/linux/"],
23}