aboutsummaryrefslogtreecommitdiff
path: root/C/Android.bp
blob: e3f796c0158381fb5a7853036ddfa904e909ac07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Copyright 2015 The Android Open Source Project

package {
    // A large-scale-change added 'default_applicable_licenses' to import
    // the below license kinds from "external_lzma_license":
    //   legacy_unencumbered
    default_applicable_licenses: ["external_lzma_license"],
}

cc_library {
    name: "liblzma",
    host_supported: true,
    vendor_available: true,
    product_available: true,
    recovery_available: true,
    vendor_ramdisk_available: true,
    native_bridge_supported: true,
    vndk: {
        enabled: true,
        support_system_process: true,
    },
    sdk_version: "9",
    stl: "none",

    cflags: [
        "-D_7ZIP_ST",
        "-Wall",
        "-Werror",
        "-Wno-empty-body",
        "-Wno-enum-conversion",
        "-Wno-logical-op-parentheses",
        "-Wno-self-assign",
    ],

    export_include_dirs: ["."],

    srcs: [
        "7zAlloc.c",
        "7zArcIn.c",
        "7zBuf2.c",
        "7zBuf.c",
        "7zCrc.c",
        "7zCrcOpt.c",
        "7zDec.c",
        "7zFile.c",
        "7zStream.c",
        "Aes.c",
        "AesOpt.c",
        "Alloc.c",
        "Bcj2.c",
        "Bra86.c",
        "Bra.c",
        "BraIA64.c",
        "CpuArch.c",
        "Delta.c",
        "LzFind.c",
        "Lzma2Dec.c",
        "Lzma2Enc.c",
        "Lzma86Dec.c",
        "Lzma86Enc.c",
        "LzmaDec.c",
        "LzmaEnc.c",
        "LzmaLib.c",
        "Ppmd7.c",
        "Ppmd7Dec.c",
        "Ppmd7Enc.c",
        "Sha256.c",
        "Sort.c",
        "Xz.c",
        "XzCrc64.c",
        "XzCrc64Opt.c",
        "XzDec.c",
        "XzEnc.c",
        "XzIn.c",
    ],

    target: {
        linux_bionic: {
            enabled: true,
        },
        windows: {
            enabled: true,
            srcs: [
                "Bcj2Enc.c",
                "DllSecur.c",
                "LzFindMt.c",
                "Lzma2DecMt.c",
                "MtCoder.c",
                "MtDec.c",
                "Threads.c",
            ],
        },
    },

    apex_available: [
        "//apex_available:platform",
        "com.android.art", // from libartbase
        "com.android.art.debug",
    ],
    min_sdk_version: "apex_inherit",
}