xref: /aosp_15_r20/external/e2fsprogs/lib/e2p/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    default_applicable_licenses: ["external_e2fsprogs_license"],
11*6a54128fSAndroid Build Coastguard Worker}
12*6a54128fSAndroid Build Coastguard Worker
13*6a54128fSAndroid Build Coastguard Workercc_library {
14*6a54128fSAndroid Build Coastguard Worker    name: "libext2_e2p",
15*6a54128fSAndroid Build Coastguard Worker    host_supported: true,
16*6a54128fSAndroid Build Coastguard Worker    ramdisk_available: true,
17*6a54128fSAndroid Build Coastguard Worker    vendor_ramdisk_available: true,
18*6a54128fSAndroid Build Coastguard Worker    vendor_available: true,
19*6a54128fSAndroid Build Coastguard Worker    recovery_available: true,
20*6a54128fSAndroid Build Coastguard Worker    unique_host_soname: true,
21*6a54128fSAndroid Build Coastguard Worker    defaults: ["e2fsprogs-defaults"],
22*6a54128fSAndroid Build Coastguard Worker    srcs: [
23*6a54128fSAndroid Build Coastguard Worker        "encoding.c",
24*6a54128fSAndroid Build Coastguard Worker        "errcode.c",
25*6a54128fSAndroid Build Coastguard Worker        "feature.c",
26*6a54128fSAndroid Build Coastguard Worker        "fgetflags.c",
27*6a54128fSAndroid Build Coastguard Worker        "fsetflags.c",
28*6a54128fSAndroid Build Coastguard Worker        "fgetproject.c",
29*6a54128fSAndroid Build Coastguard Worker        "fsetproject.c",
30*6a54128fSAndroid Build Coastguard Worker        "fgetversion.c",
31*6a54128fSAndroid Build Coastguard Worker        "fsetversion.c",
32*6a54128fSAndroid Build Coastguard Worker        "getflags.c",
33*6a54128fSAndroid Build Coastguard Worker        "getversion.c",
34*6a54128fSAndroid Build Coastguard Worker        "hashstr.c",
35*6a54128fSAndroid Build Coastguard Worker        "iod.c",
36*6a54128fSAndroid Build Coastguard Worker        "ljs.c",
37*6a54128fSAndroid Build Coastguard Worker        "ls.c",
38*6a54128fSAndroid Build Coastguard Worker        "mntopts.c",
39*6a54128fSAndroid Build Coastguard Worker        "parse_num.c",
40*6a54128fSAndroid Build Coastguard Worker        "pe.c",
41*6a54128fSAndroid Build Coastguard Worker        "pf.c",
42*6a54128fSAndroid Build Coastguard Worker        "ps.c",
43*6a54128fSAndroid Build Coastguard Worker        "setflags.c",
44*6a54128fSAndroid Build Coastguard Worker        "setversion.c",
45*6a54128fSAndroid Build Coastguard Worker        "uuid.c",
46*6a54128fSAndroid Build Coastguard Worker        "ostype.c",
47*6a54128fSAndroid Build Coastguard Worker        "percent.c",
48*6a54128fSAndroid Build Coastguard Worker    ],
49*6a54128fSAndroid Build Coastguard Worker
50*6a54128fSAndroid Build Coastguard Worker    target: {
51*6a54128fSAndroid Build Coastguard Worker        windows: {
52*6a54128fSAndroid Build Coastguard Worker            enabled: true,
53*6a54128fSAndroid Build Coastguard Worker        },
54*6a54128fSAndroid Build Coastguard Worker    },
55*6a54128fSAndroid Build Coastguard Worker
56*6a54128fSAndroid Build Coastguard Worker    header_libs: ["libext2-headers"],
57*6a54128fSAndroid Build Coastguard Worker    export_include_dirs: ["."],
58*6a54128fSAndroid Build Coastguard Worker    export_header_lib_headers: ["libext2-headers"],
59*6a54128fSAndroid Build Coastguard Worker}
60