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