1// Copyright 2015 The Android Open Source Project 2 3package { 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // the below license kinds from "external_lzma_license": 6 // legacy_unencumbered 7 default_applicable_licenses: ["external_lzma_license"], 8} 9 10cc_library { 11 name: "liblzma", 12 host_supported: true, 13 vendor_available: true, 14 product_available: true, 15 recovery_available: true, 16 vendor_ramdisk_available: true, 17 native_bridge_supported: true, 18 vndk: { 19 enabled: true, 20 support_system_process: true, 21 }, 22 sdk_version: "9", 23 stl: "none", 24 25 cflags: [ 26 "-D_7ZIP_ST", 27 "-Wall", 28 "-Werror", 29 "-Wno-empty-body", 30 "-Wno-enum-conversion", 31 "-Wno-logical-op-parentheses", 32 "-Wno-self-assign", 33 ], 34 35 export_include_dirs: ["."], 36 37 srcs: [ 38 "7zAlloc.c", 39 "7zArcIn.c", 40 "7zBuf2.c", 41 "7zBuf.c", 42 "7zCrc.c", 43 "7zCrcOpt.c", 44 "7zDec.c", 45 "7zFile.c", 46 "7zStream.c", 47 "Aes.c", 48 "AesOpt.c", 49 "Alloc.c", 50 "Bcj2.c", 51 "Bra86.c", 52 "Bra.c", 53 "BraIA64.c", 54 "CpuArch.c", 55 "Delta.c", 56 "LzFind.c", 57 "Lzma2Dec.c", 58 "Lzma2Enc.c", 59 "Lzma86Dec.c", 60 "Lzma86Enc.c", 61 "LzmaDec.c", 62 "LzmaEnc.c", 63 "LzmaLib.c", 64 "Ppmd7.c", 65 "Ppmd7Dec.c", 66 "Ppmd7Enc.c", 67 "Sha256.c", 68 "Sort.c", 69 "Xz.c", 70 "XzCrc64.c", 71 "XzCrc64Opt.c", 72 "XzDec.c", 73 "XzEnc.c", 74 "XzIn.c", 75 ], 76 77 target: { 78 linux_bionic: { 79 enabled: true, 80 }, 81 windows: { 82 enabled: true, 83 srcs: [ 84 "Bcj2Enc.c", 85 "DllSecur.c", 86 "LzFindMt.c", 87 "Lzma2DecMt.c", 88 "MtCoder.c", 89 "MtDec.c", 90 "Threads.c", 91 ], 92 }, 93 }, 94 95 apex_available: [ 96 "//apex_available:platform", 97 "com.android.art", // from libartbase 98 "com.android.art.debug", 99 ], 100 min_sdk_version: "apex_inherit", 101} 102