blob: 2466b88f503a6144da07a609ac4199862e02817f [file] [log] [blame]
Alistair Delvabeaee832021-02-24 11:27:23 -08001// 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
Bob Badour7d0f5e22021-03-15 09:37:31 -070015// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
16// CONSULT THE OWNERS AND opensource-licensing@google.com 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 "legacy_by_exception_only", // by exception only
29 ],
30 license_text: [
31 "COPYING",
32 ],
33}
34
Alistair Delvabeaee832021-02-24 11:27:23 -080035cc_binary_host {
36 name: "mtools",
37 srcs: [
38 "buffer.c",
39 "charsetConv.c",
40 "codepages.c",
41 "config.c",
42 "copyfile.c",
Yi Kong39bbd962022-01-09 19:41:38 +080043 "device.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080044 "devices.c",
45 "dirCache.c",
46 "directory.c",
47 "direntry.c",
Yi Kong39bbd962022-01-09 19:41:38 +080048 "dos2unix.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080049 "expand.c",
50 "fat.c",
51 "fat_free.c",
52 "file.c",
53 "file_name.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080054 "floppyd_io.c",
55 "force_io.c",
56 "hash.c",
57 "init.c",
Yi Kong39bbd962022-01-09 19:41:38 +080058 "lba.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080059 "llong.c",
60 "lockdev.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080061 "mainloop.c",
Yi Kong39bbd962022-01-09 19:41:38 +080062 "match.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080063 "mattrib.c",
64 "mbadblocks.c",
65 "mcat.c",
66 "mcd.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080067 "mcopy.c",
68 "mdel.c",
69 "mdir.c",
70 "mdoctorfat.c",
71 "mdu.c",
72 "mformat.c",
73 "minfo.c",
74 "misc.c",
75 "missFuncs.c",
76 "mk_direntry.c",
77 "mlabel.c",
78 "mmd.c",
79 "mmount.c",
80 "mmove.c",
81 "mpartition.c",
82 "mshortname.c",
83 "mshowfat.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080084 "mtools.c",
Yi Kong39bbd962022-01-09 19:41:38 +080085 "mzip.c",
86 "offset.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080087 "old_dos.c",
Yi Kong39bbd962022-01-09 19:41:38 +080088 "open_image.c",
89 "partition.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080090 "patchlevel.c",
91 "plain_io.c",
92 "precmd.c",
93 "privileges.c",
Yi Kong39bbd962022-01-09 19:41:38 +080094 "remap.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080095 "scsi.c",
Yi Kong39bbd962022-01-09 19:41:38 +080096 "scsi_io.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080097 "signal.c",
98 "stream.c",
99 "streamcache.c",
100 "strtonum.c",
Yi Kong39bbd962022-01-09 19:41:38 +0800101 "swap.c",
Alistair Delvabeaee832021-02-24 11:27:23 -0800102 "tty.c",
Yi Kong39bbd962022-01-09 19:41:38 +0800103 "unix2dos.c",
104 "unixdir.c",
Alistair Delvabeaee832021-02-24 11:27:23 -0800105 "vfat.c",
106 "xdf_io.c",
107 ],
Yi Kong39bbd962022-01-09 19:41:38 +0800108 // Needs C11 language feature.
109 c_std: "experimental",
Alistair Delvabeaee832021-02-24 11:27:23 -0800110 cflags: [
111 "-DSYSCONFDIR=\"/etc\"",
112 "-Wno-missing-field-initializers",
113 "-Wno-unused-parameter",
114 "-Wno-unused-result",
115 ],
116 symlinks: [
117 "mcopy",
Alistair Delva06e5b282021-03-15 12:12:55 -0700118 "mmd",
Alistair Delvabeaee832021-02-24 11:27:23 -0800119 ],
120}