1// Copyright 2015 The Android Open Source Project
2
3cc_library {
4    name: "liblzma",
5    host_supported: true,
6    vendor_available: true,
7    recovery_available: true,
8    vndk: {
9        enabled: true,
10        support_system_process: true,
11    },
12    sdk_version: "9",
13    stl: "none",
14
15    cflags: [
16        "-D_7ZIP_ST",
17        "-Wall",
18        "-Werror",
19        "-Wno-empty-body",
20        "-Wno-enum-conversion",
21        "-Wno-logical-op-parentheses",
22        "-Wno-self-assign",
23    ],
24
25    export_include_dirs: ["."],
26
27    srcs: [
28        "7zAlloc.c",
29        "7zArcIn.c",
30        "7zBuf2.c",
31        "7zBuf.c",
32        "7zCrc.c",
33        "7zCrcOpt.c",
34        "7zDec.c",
35        "7zFile.c",
36        "7zStream.c",
37        "Aes.c",
38        "AesOpt.c",
39        "Alloc.c",
40        "Bcj2.c",
41        "Bra86.c",
42        "Bra.c",
43        "BraIA64.c",
44        "CpuArch.c",
45        "Delta.c",
46        "LzFind.c",
47        "Lzma2Dec.c",
48        "Lzma2Enc.c",
49        "Lzma86Dec.c",
50        "Lzma86Enc.c",
51        "LzmaDec.c",
52        "LzmaEnc.c",
53        "LzmaLib.c",
54        "Ppmd7.c",
55        "Ppmd7Dec.c",
56        "Ppmd7Enc.c",
57        "Sha256.c",
58        "Sort.c",
59        "Xz.c",
60        "XzCrc64.c",
61        "XzCrc64Opt.c",
62        "XzDec.c",
63        "XzEnc.c",
64        "XzIn.c",
65    ],
66
67    target: {
68        linux_bionic: {
69            enabled: true,
70        },
71        windows: {
72            enabled: true,
73            srcs: [
74                "Bcj2Enc.c",
75                "DllSecur.c",
76                "LzFindMt.c",
77                "Lzma2DecMt.c",
78                "MtCoder.c",
79                "MtDec.c",
80                "Threads.c",
81            ],
82        },
83    },
84}
85