xref: /aosp_15_r20/external/e2fsprogs/lib/blkid/Android.bp (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker// Copyright 2017 The Android Open Source Project
2*6a54128fSAndroid Build Coastguard Worker
3*6a54128fSAndroid Build Coastguard Workerpackage {
4*6a54128fSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
5*6a54128fSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
6*6a54128fSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_e2fsprogs_license"
7*6a54128fSAndroid Build Coastguard Worker    // to get the below license kinds:
8*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-GPL
9*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-LGPL
10*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-LGPL-2.1
11*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-LGPL-3.0
12*6a54128fSAndroid Build Coastguard Worker    default_applicable_licenses: ["external_e2fsprogs_license"],
13*6a54128fSAndroid Build Coastguard Worker}
14*6a54128fSAndroid Build Coastguard Worker
15*6a54128fSAndroid Build Coastguard Workercc_library {
16*6a54128fSAndroid Build Coastguard Worker    name: "libext2_blkid",
17*6a54128fSAndroid Build Coastguard Worker    host_supported: true,
18*6a54128fSAndroid Build Coastguard Worker    ramdisk_available: true,
19*6a54128fSAndroid Build Coastguard Worker    vendor_available: true,
20*6a54128fSAndroid Build Coastguard Worker    vendor_ramdisk_available: true,
21*6a54128fSAndroid Build Coastguard Worker    recovery_available: true,
22*6a54128fSAndroid Build Coastguard Worker    unique_host_soname: true,
23*6a54128fSAndroid Build Coastguard Worker    defaults: ["e2fsprogs-defaults"],
24*6a54128fSAndroid Build Coastguard Worker    srcs: [
25*6a54128fSAndroid Build Coastguard Worker        "cache.c",
26*6a54128fSAndroid Build Coastguard Worker        "dev.c",
27*6a54128fSAndroid Build Coastguard Worker        "devname.c",
28*6a54128fSAndroid Build Coastguard Worker        "devno.c",
29*6a54128fSAndroid Build Coastguard Worker        "getsize.c",
30*6a54128fSAndroid Build Coastguard Worker        "llseek.c",
31*6a54128fSAndroid Build Coastguard Worker        "probe.c",
32*6a54128fSAndroid Build Coastguard Worker        "read.c",
33*6a54128fSAndroid Build Coastguard Worker        "resolve.c",
34*6a54128fSAndroid Build Coastguard Worker        "save.c",
35*6a54128fSAndroid Build Coastguard Worker        "tag.c",
36*6a54128fSAndroid Build Coastguard Worker        "version.c",
37*6a54128fSAndroid Build Coastguard Worker    ],
38*6a54128fSAndroid Build Coastguard Worker    shared_libs: ["libext2_uuid"],
39*6a54128fSAndroid Build Coastguard Worker
40*6a54128fSAndroid Build Coastguard Worker    target: {
41*6a54128fSAndroid Build Coastguard Worker        darwin: {
42*6a54128fSAndroid Build Coastguard Worker            enabled: true,
43*6a54128fSAndroid Build Coastguard Worker        },
44*6a54128fSAndroid Build Coastguard Worker        windows: {
45*6a54128fSAndroid Build Coastguard Worker            enabled: true,
46*6a54128fSAndroid Build Coastguard Worker        },
47*6a54128fSAndroid Build Coastguard Worker    },
48*6a54128fSAndroid Build Coastguard Worker
49*6a54128fSAndroid Build Coastguard Worker    header_libs: ["libext2-headers"],
50*6a54128fSAndroid Build Coastguard Worker    export_include_dirs: ["."],
51*6a54128fSAndroid Build Coastguard Worker    export_header_lib_headers: ["libext2-headers"],
52*6a54128fSAndroid Build Coastguard Worker}
53