• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    native_bridge_supported: true,
9    vndk: {
10        enabled: true,
11        support_system_process: true,
12    },
13    sdk_version: "9",
14    stl: "none",
15
16    cflags: [
17        "-D_7ZIP_ST",
18        "-Wall",
19        "-Werror",
20        "-Wno-empty-body",
21        "-Wno-enum-conversion",
22        "-Wno-logical-op-parentheses",
23        "-Wno-self-assign",
24    ],
25
26    export_include_dirs: ["."],
27
28    srcs: [
29        "7zAlloc.c",
30        "7zArcIn.c",
31        "7zBuf2.c",
32        "7zBuf.c",
33        "7zCrc.c",
34        "7zCrcOpt.c",
35        "7zDec.c",
36        "7zFile.c",
37        "7zStream.c",
38        "Aes.c",
39        "AesOpt.c",
40        "Alloc.c",
41        "Bcj2.c",
42        "Bra86.c",
43        "Bra.c",
44        "BraIA64.c",
45        "CpuArch.c",
46        "Delta.c",
47        "LzFind.c",
48        "Lzma2Dec.c",
49        "Lzma2Enc.c",
50        "Lzma86Dec.c",
51        "Lzma86Enc.c",
52        "LzmaDec.c",
53        "LzmaEnc.c",
54        "LzmaLib.c",
55        "Ppmd7.c",
56        "Ppmd7Dec.c",
57        "Ppmd7Enc.c",
58        "Sha256.c",
59        "Sort.c",
60        "Xz.c",
61        "XzCrc64.c",
62        "XzCrc64Opt.c",
63        "XzDec.c",
64        "XzEnc.c",
65        "XzIn.c",
66    ],
67
68    target: {
69        linux_bionic: {
70            enabled: true,
71        },
72        windows: {
73            enabled: true,
74            srcs: [
75                "Bcj2Enc.c",
76                "DllSecur.c",
77                "LzFindMt.c",
78                "Lzma2DecMt.c",
79                "MtCoder.c",
80                "MtDec.c",
81                "Threads.c",
82            ],
83        },
84    },
85
86    apex_available: [
87        "//apex_available:platform",
88        "com.android.art.debug", // from libartbase
89        "com.android.art.release",
90    ],
91}
92