Whamcloud - gitweb
AOSP: Android: add a new upstream source file
[tools/e2fsprogs.git] / lib / support / Android.bp
1 // Copyright 2017 The Android Open Source Project
2
3 package {
4     // See: http://go/android-license-faq
5     // A large-scale-change added 'default_applicable_licenses' to import
6     // all of the 'license_kinds' from "external_e2fsprogs_license"
7     // to get the below license kinds:
8     //   SPDX-license-identifier-GPL
9     //   SPDX-license-identifier-MIT
10     default_applicable_licenses: ["external_e2fsprogs_license"],
11 }
12
13 cc_library {
14     name: "libext2_quota",
15     host_supported: true,
16     ramdisk_available: true,
17     vendor_ramdisk_available: true,
18     recovery_available: true,
19     unique_host_soname: true,
20     defaults: ["e2fsprogs-defaults"],
21     srcs: [
22         "devname.c",
23         "dict.c",
24         "mkquota.c",
25         "parse_qtype.c",
26         "plausible.c",
27         "profile.c",
28         "profile_helpers.c",
29         "prof_err.c",
30         "quotaio.c",
31         "quotaio_tree.c",
32         "quotaio_v2.c",
33     ],
34     shared_libs: [
35         "libext2fs",
36         "libext2_blkid",
37         "libext2_com_err",
38     ],
39
40     target: {
41         windows: {
42             enabled: true
43         },
44     },
45
46     header_libs: ["libext2-headers"],
47     export_include_dirs: ["."],
48     export_header_lib_headers: ["libext2-headers"],
49 }
50
51 cc_library_shared {
52     name: "libext2_profile",
53     host_supported: true,
54     unique_host_soname: true,
55     defaults: ["e2fsprogs-defaults"],
56
57     srcs: [
58         "prof_err.c",
59         "profile.c",
60     ],
61     shared_libs: ["libext2_com_err"],
62
63     header_libs: ["libext2-headers"],
64     export_include_dirs: ["."],
65     export_header_lib_headers: ["libext2-headers"],
66 }
67
68 cc_library {
69     name: "libext2_support",
70     host_supported: true,
71     defaults: ["e2fsprogs-defaults"],
72
73     srcs: [
74         "cstring.c",
75     ],
76     header_libs: ["libext2-headers"],
77     export_include_dirs: ["."],
78 }