Bob Badour | 7810596 | 2021-02-12 15:22:19 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 7 | license { |
| 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 Hughes | f56c789 | 2017-06-16 14:33:13 -0700 | [diff] [blame] | 18 | cc_library_static { |
| 19 | name: "libxz", |
| 20 | host_supported: true, |
Dan Willemsen | 6f13985 | 2018-10-23 14:10:58 -0700 | [diff] [blame] | 21 | recovery_available: true, |
Elliott Hughes | f56c789 | 2017-06-16 14:33:13 -0700 | [diff] [blame] | 22 | 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 Willemsen | 6f13985 | 2018-10-23 14:10:58 -0700 | [diff] [blame] | 28 | local_include_dirs: ["userspace"], |
Elliott Hughes | 03e7a3e | 2017-06-22 09:13:20 -0700 | [diff] [blame] | 29 | |
| 30 | // Enable branch/call/jump filters. See http://b/27817327. |
Chih-Hung Hsieh | 04db9dd | 2017-09-29 11:40:30 -0700 | [diff] [blame] | 31 | cflags: [ |
| 32 | "-DXZ_DEC_X86", |
| 33 | "-DXZ_DEC_ARM", |
| 34 | "-DXZ_DEC_ARMTHUMB", |
| 35 | "-Wall", |
| 36 | "-Werror", |
| 37 | ], |
Elliott Hughes | 03e7a3e | 2017-06-22 09:13:20 -0700 | [diff] [blame] | 38 | |
Elliott Hughes | f56c789 | 2017-06-16 14:33:13 -0700 | [diff] [blame] | 39 | export_include_dirs: ["linux/include/linux/"], |
| 40 | } |