Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 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 | |
Bob Badour | 7d0f5e2 | 2021-03-15 09:37:31 -0700 | [diff] [blame] | 15 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| 16 | // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| 17 | // DEPENDING ON IT IN YOUR PROJECT. *** |
| 18 | package { |
| 19 | default_applicable_licenses: ["external_mtools_license"], |
| 20 | } |
| 21 | |
| 22 | // Added automatically by a large-scale-change |
| 23 | // See: http://go/android-license-faq |
| 24 | license { |
| 25 | name: "external_mtools_license", |
| 26 | visibility: [":__subpackages__"], |
| 27 | license_kinds: [ |
Bob Badour | 8c780b3 | 2022-03-07 14:30:03 -0800 | [diff] [blame^] | 28 | "SPDX-license-identifier-GPL-3.0", |
Bob Badour | 7d0f5e2 | 2021-03-15 09:37:31 -0700 | [diff] [blame] | 29 | "legacy_by_exception_only", // by exception only |
| 30 | ], |
| 31 | license_text: [ |
| 32 | "COPYING", |
| 33 | ], |
| 34 | } |
| 35 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 36 | cc_binary_host { |
| 37 | name: "mtools", |
| 38 | srcs: [ |
| 39 | "buffer.c", |
| 40 | "charsetConv.c", |
| 41 | "codepages.c", |
| 42 | "config.c", |
| 43 | "copyfile.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 44 | "device.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 45 | "devices.c", |
| 46 | "dirCache.c", |
| 47 | "directory.c", |
| 48 | "direntry.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 49 | "dos2unix.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 50 | "expand.c", |
| 51 | "fat.c", |
| 52 | "fat_free.c", |
| 53 | "file.c", |
| 54 | "file_name.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 55 | "floppyd_io.c", |
| 56 | "force_io.c", |
| 57 | "hash.c", |
| 58 | "init.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 59 | "lba.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 60 | "llong.c", |
| 61 | "lockdev.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 62 | "mainloop.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 63 | "match.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 64 | "mattrib.c", |
| 65 | "mbadblocks.c", |
| 66 | "mcat.c", |
| 67 | "mcd.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 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", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 85 | "mtools.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 86 | "mzip.c", |
| 87 | "offset.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 88 | "old_dos.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 89 | "open_image.c", |
| 90 | "partition.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 91 | "patchlevel.c", |
| 92 | "plain_io.c", |
| 93 | "precmd.c", |
| 94 | "privileges.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 95 | "remap.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 96 | "scsi.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 97 | "scsi_io.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 98 | "signal.c", |
| 99 | "stream.c", |
| 100 | "streamcache.c", |
| 101 | "strtonum.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 102 | "swap.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 103 | "tty.c", |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 104 | "unix2dos.c", |
| 105 | "unixdir.c", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 106 | "vfat.c", |
| 107 | "xdf_io.c", |
| 108 | ], |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 109 | // Needs C11 language feature. |
| 110 | c_std: "experimental", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 111 | cflags: [ |
| 112 | "-DSYSCONFDIR=\"/etc\"", |
| 113 | "-Wno-missing-field-initializers", |
| 114 | "-Wno-unused-parameter", |
| 115 | "-Wno-unused-result", |
| 116 | ], |
| 117 | symlinks: [ |
| 118 | "mcopy", |
Alistair Delva | 06e5b28 | 2021-03-15 12:12:55 -0700 | [diff] [blame] | 119 | "mmd", |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 120 | ], |
| 121 | } |