xref: /aosp_15_r20/external/e2fsprogs/lib/et/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-0BSD
9*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-BSD
10*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-GPL-2.0
11*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-MIT
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_com_err",
17*6a54128fSAndroid Build Coastguard Worker    host_supported: true,
18*6a54128fSAndroid Build Coastguard Worker    ramdisk_available: true,
19*6a54128fSAndroid Build Coastguard Worker    vendor_ramdisk_available: true,
20*6a54128fSAndroid Build Coastguard Worker    recovery_available: true,
21*6a54128fSAndroid Build Coastguard Worker    vendor_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        "error_message.c",
26*6a54128fSAndroid Build Coastguard Worker        "et_name.c",
27*6a54128fSAndroid Build Coastguard Worker        "init_et.c",
28*6a54128fSAndroid Build Coastguard Worker        "com_err.c",
29*6a54128fSAndroid Build Coastguard Worker        "com_right.c",
30*6a54128fSAndroid Build Coastguard Worker    ],
31*6a54128fSAndroid Build Coastguard Worker
32*6a54128fSAndroid Build Coastguard Worker    target: {
33*6a54128fSAndroid Build Coastguard Worker        windows: {
34*6a54128fSAndroid Build Coastguard Worker            enabled: true,
35*6a54128fSAndroid Build Coastguard Worker        },
36*6a54128fSAndroid Build Coastguard Worker    },
37*6a54128fSAndroid Build Coastguard Worker
38*6a54128fSAndroid Build Coastguard Worker    header_libs: ["libext2-headers"],
39*6a54128fSAndroid Build Coastguard Worker    export_include_dirs: ["."],
40*6a54128fSAndroid Build Coastguard Worker    export_header_lib_headers: ["libext2-headers"],
41*6a54128fSAndroid Build Coastguard Worker}
42