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