xref: /aosp_15_r20/external/mtools/Android.bp (revision d5c9a868b113e0ec0db2f27bc2ce8a253e77c4b0)
1// Copyright 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
16//     CONSULT THE OWNERS AND [email protected] BEFORE
17//     DEPENDING ON IT IN YOUR PROJECT. ***
18package {
19    default_applicable_licenses: ["external_mtools_license"],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25    name: "external_mtools_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-GPL-3.0",
29        "legacy_by_exception_only", // by exception only
30    ],
31    license_text: [
32        "COPYING",
33    ],
34}
35
36cc_binary_host {
37    name: "mtools",
38    srcs: [
39        "buffer.c",
40        "charsetConv.c",
41        "codepages.c",
42        "config.c",
43        "copyfile.c",
44        "device.c",
45        "devices.c",
46        "dirCache.c",
47        "directory.c",
48        "direntry.c",
49        "dos2unix.c",
50        "expand.c",
51        "fat.c",
52        "fat_free.c",
53        "file.c",
54        "file_name.c",
55        "floppyd_io.c",
56        "force_io.c",
57        "hash.c",
58        "init.c",
59        "lba.c",
60        "llong.c",
61        "lockdev.c",
62        "mainloop.c",
63        "match.c",
64        "mattrib.c",
65        "mbadblocks.c",
66        "mcat.c",
67        "mcd.c",
68        "mcopy.c",
69        "mdel.c",
70        "mdir.c",
71        "mdoctorfat.c",
72        "mdu.c",
73        "mformat.c",
74        "minfo.c",
75        "misc.c",
76        "missFuncs.c",
77        "mk_direntry.c",
78        "mlabel.c",
79        "mmd.c",
80        "mmount.c",
81        "mmove.c",
82        "mpartition.c",
83        "mshortname.c",
84        "mshowfat.c",
85        "mtools.c",
86        "mzip.c",
87        "offset.c",
88        "old_dos.c",
89        "open_image.c",
90        "partition.c",
91        "patchlevel.c",
92        "plain_io.c",
93        "precmd.c",
94        "privileges.c",
95        "remap.c",
96        "scsi.c",
97        "scsi_io.c",
98        "signal.c",
99        "stream.c",
100        "streamcache.c",
101        "strtonum.c",
102        "swap.c",
103        "tty.c",
104        "unix2dos.c",
105        "unixdir.c",
106        "vfat.c",
107        "xdf_io.c",
108    ],
109    cflags: [
110        "-DSYSCONFDIR=\"/etc\"",
111        "-Wno-missing-field-initializers",
112        "-Wno-unused-parameter",
113        "-Wno-unused-result",
114    ],
115    symlinks: [
116        "mcopy",
117        "mmd",
118    ],
119}
120