1# Copyright 2015 The Android Open Source Project
2#
3LOCAL_PATH := $(call my-dir)
4
5lzma_files := \
6  7zAlloc.c \
7  7zArcIn.c \
8  7zBuf2.c \
9  7zBuf.c \
10  7zCrc.c \
11  7zCrcOpt.c \
12  7zDec.c \
13  7zFile.c \
14  7zStream.c \
15  Aes.c \
16  AesOpt.c \
17  Alloc.c \
18  Bcj2.c \
19  Bra86.c \
20  Bra.c \
21  BraIA64.c \
22  CpuArch.c \
23  Delta.c \
24  LzFind.c \
25  Lzma2Dec.c \
26  Lzma2Enc.c \
27  Lzma86Dec.c \
28  Lzma86Enc.c \
29  LzmaDec.c \
30  LzmaEnc.c \
31  LzmaLib.c \
32  Ppmd7.c \
33  Ppmd7Dec.c \
34  Ppmd7Enc.c \
35  Sha256.c \
36  Sort.c \
37  Xz.c \
38  XzCrc64.c \
39  XzCrc64Opt.c \
40  XzDec.c \
41  XzEnc.c \
42  XzIn.c
43
44lzma_cflags := -D_7ZIP_ST -Wno-empty-body
45lzma_clang_cflags := -Wno-self-assign
46
47include $(CLEAR_VARS)
48LOCAL_MODULE := liblzma
49LOCAL_CFLAGS := $(lzma_cflags)
50LOCAL_CLANG_CFLAGS := $(lzma_clang_cflags)
51LOCAL_SRC_FILES := $(lzma_files)
52LOCAL_MULTILIB := both
53LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
54include $(BUILD_HOST_STATIC_LIBRARY)
55
56include $(CLEAR_VARS)
57LOCAL_MODULE := liblzma
58LOCAL_CFLAGS := $(lzma_cflags)
59LOCAL_CLANG_CFLAGS := $(lzma_clang_cflags)
60LOCAL_SRC_FILES := $(lzma_files)
61LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
62include $(BUILD_STATIC_LIBRARY)
63
64include $(CLEAR_VARS)
65LOCAL_MODULE := liblzma
66LOCAL_CFLAGS := $(lzma_cflags)
67LOCAL_CLANG_CFLAGS := $(lzma_clang_cflags)
68LOCAL_SRC_FILES := $(lzma_files)
69LOCAL_MULTILIB := both
70LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
71include $(BUILD_HOST_SHARED_LIBRARY)
72
73include $(CLEAR_VARS)
74LOCAL_MODULE := liblzma
75LOCAL_CFLAGS := $(lzma_cflags)
76LOCAL_CLANG_CFLAGS := $(lzma_clang_cflags)
77LOCAL_SRC_FILES := $(lzma_files)
78LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
79include $(BUILD_SHARED_LIBRARY)
80