blob: 602e8a7c4c2c2c221f2c559512066070fee03f61 [file] [log] [blame]
Bob Badour78105962021-02-12 15:22:19 -08001package {
2 default_applicable_licenses: ["external_xz-embedded_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8 name: "external_xz-embedded_license",
9 visibility: [":__subpackages__"],
10 license_kinds: [
11 "legacy_unencumbered",
12 ],
13 license_text: [
14 "COPYING",
15 ],
16}
17
Elliott Hughesf56c7892017-06-16 14:33:13 -070018cc_library_static {
19 name: "libxz",
20 host_supported: true,
Dan Willemsen6f139852018-10-23 14:10:58 -070021 recovery_available: true,
Elliott Hughesf56c7892017-06-16 14:33:13 -070022 srcs: [
23 "linux/lib/xz/xz_crc32.c",
24 "linux/lib/xz/xz_dec_bcj.c",
25 "linux/lib/xz/xz_dec_lzma2.c",
26 "linux/lib/xz/xz_dec_stream.c",
27 ],
Dan Willemsen6f139852018-10-23 14:10:58 -070028 local_include_dirs: ["userspace"],
Elliott Hughes03e7a3e2017-06-22 09:13:20 -070029
30 // Enable branch/call/jump filters. See http://b/27817327.
Chih-Hung Hsieh04db9dd2017-09-29 11:40:30 -070031 cflags: [
32 "-DXZ_DEC_X86",
33 "-DXZ_DEC_ARM",
34 "-DXZ_DEC_ARMTHUMB",
35 "-Wall",
36 "-Werror",
37 ],
Elliott Hughes03e7a3e2017-06-22 09:13:20 -070038
Elliott Hughesf56c7892017-06-16 14:33:13 -070039 export_include_dirs: ["linux/include/linux/"],
40}