From f56c789601b4db04080e307a94d2bdb6da3162f8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 16 Jun 2017 14:33:13 -0700 Subject: Build libxz from external/xz-embedded. Also add the various bits of Android tree detritus. Bug: http://b/32846435 Test: builds Change-Id: I520a6b37d4f66078b6d94f91f1208a84c2d5d9c4 --- Android.bp | 13 +++++++++++++ MODULE_LICENSE_PUBLIC_DOMAIN | 0 NOTICE | 1 + README.version | 2 ++ 4 files changed, 16 insertions(+) create mode 100644 Android.bp create mode 100644 MODULE_LICENSE_PUBLIC_DOMAIN create mode 120000 NOTICE create mode 100644 README.version diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..4572804 --- /dev/null +++ b/Android.bp @@ -0,0 +1,13 @@ +cc_library_static { + name: "libxz", + host_supported: true, + srcs: [ + "linux/lib/xz/xz_crc32.c", + "linux/lib/xz/xz_dec_bcj.c", + "linux/lib/xz/xz_dec_lzma2.c", + "linux/lib/xz/xz_dec_stream.c", + ], + include_dirs: ["external/xz-embedded/userspace/"], + cflags: ["-DXZ_DEC_X86", "-DXZ_DEC_ARM", "-DXZ_DEC_ARMTHUMB"], + export_include_dirs: ["linux/include/linux/"], +} diff --git a/MODULE_LICENSE_PUBLIC_DOMAIN b/MODULE_LICENSE_PUBLIC_DOMAIN new file mode 100644 index 0000000..e69de29 diff --git a/NOTICE b/NOTICE new file mode 120000 index 0000000..d24842f --- /dev/null +++ b/NOTICE @@ -0,0 +1 @@ +COPYING \ No newline at end of file diff --git a/README.version b/README.version new file mode 100644 index 0000000..a9aaf07 --- /dev/null +++ b/README.version @@ -0,0 +1,2 @@ +URL: https://git.tukaani.org/?p=xz-embedded.git +Version: 79b68de5657beecfad575578a7181cf6fca869cb -- cgit v1.2.3