blob: 4f9461f951e3252b9cbf03b90a32ecd980254fa3 [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: [
Bob Badour8c780b32022-03-07 14:30:03 -080028 "SPDX-license-identifier-GPL-3.0",
Bob Badour7d0f5e22021-03-15 09:37:31 -070029 "legacy_by_exception_only", // by exception only
30 ],
31 license_text: [
32 "COPYING",
33 ],
34}
35
Alistair Delvabeaee832021-02-24 11:27:23 -080036cc_binary_host {
37 name: "mtools",
38 srcs: [
39 "buffer.c",
40 "charsetConv.c",
41 "codepages.c",
42 "config.c",
43 "copyfile.c",
Yi Kong39bbd962022-01-09 19:41:38 +080044 "device.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080045 "devices.c",
46 "dirCache.c",
47 "directory.c",
48 "direntry.c",
Yi Kong39bbd962022-01-09 19:41:38 +080049 "dos2unix.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080050 "expand.c",
51 "fat.c",
52 "fat_free.c",
53 "file.c",
54 "file_name.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080055 "floppyd_io.c",
56 "force_io.c",
57 "hash.c",
58 "init.c",
Yi Kong39bbd962022-01-09 19:41:38 +080059 "lba.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080060 "llong.c",
61 "lockdev.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080062 "mainloop.c",
Yi Kong39bbd962022-01-09 19:41:38 +080063 "match.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080064 "mattrib.c",
65 "mbadblocks.c",
66 "mcat.c",
67 "mcd.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080068 "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",
Alistair Delvabeaee832021-02-24 11:27:23 -080085 "mtools.c",
Yi Kong39bbd962022-01-09 19:41:38 +080086 "mzip.c",
87 "offset.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080088 "old_dos.c",
Yi Kong39bbd962022-01-09 19:41:38 +080089 "open_image.c",
90 "partition.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080091 "patchlevel.c",
92 "plain_io.c",
93 "precmd.c",
94 "privileges.c",
Yi Kong39bbd962022-01-09 19:41:38 +080095 "remap.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080096 "scsi.c",
Yi Kong39bbd962022-01-09 19:41:38 +080097 "scsi_io.c",
Alistair Delvabeaee832021-02-24 11:27:23 -080098 "signal.c",
99 "stream.c",
100 "streamcache.c",
101 "strtonum.c",
Yi Kong39bbd962022-01-09 19:41:38 +0800102 "swap.c",
Alistair Delvabeaee832021-02-24 11:27:23 -0800103 "tty.c",
Yi Kong39bbd962022-01-09 19:41:38 +0800104 "unix2dos.c",
105 "unixdir.c",
Alistair Delvabeaee832021-02-24 11:27:23 -0800106 "vfat.c",
107 "xdf_io.c",
108 ],
Yi Kong39bbd962022-01-09 19:41:38 +0800109 // Needs C11 language feature.
110 c_std: "experimental",
Alistair Delvabeaee832021-02-24 11:27:23 -0800111 cflags: [
112 "-DSYSCONFDIR=\"/etc\"",
113 "-Wno-missing-field-initializers",
114 "-Wno-unused-parameter",
115 "-Wno-unused-result",
116 ],
117 symlinks: [
118 "mcopy",
Alistair Delva06e5b282021-03-15 12:12:55 -0700119 "mmd",
Alistair Delvabeaee832021-02-24 11:27:23 -0800120 ],
121}