1package { 2 default_applicable_licenses: ["external_libfuse_license"], 3} 4 5// Added automatically by a large-scale-change that took the approach of 6// 'apply every license found to every target'. While this makes sure we respect 7// every license restriction, it may not be entirely correct. 8// 9// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10// 11// Please consider splitting the single license below into multiple licenses, 12// taking care not to lose any license_kind information, and overriding the 13// default license using the 'licenses: [...]' property on targets as needed. 14// 15// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16// to attach the license to, and including a comment whether the files may be 17// used in the current project. 18// 19// large-scale-change included anything that looked like it might be a license 20// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 21// 22// Please consider removing redundant or irrelevant files from 'license_text:'. 23// See: http://go/android-license-faq 24license { 25 name: "external_libfuse_license", 26 visibility: [":__subpackages__"], 27 license_kinds: [ 28 "SPDX-license-identifier-BSD", 29 "SPDX-license-identifier-GPL", 30 "SPDX-license-identifier-GPL-2.0", 31 "SPDX-license-identifier-LGPL", 32 "SPDX-license-identifier-LGPL-2.0", 33 "SPDX-license-identifier-LGPL-2.1", 34 "SPDX-license-identifier-LGPL-3.0", 35 ], 36 license_text: [ 37 "LGPL2.txt", 38 "LICENSE", 39 ], 40} 41 42cc_defaults { 43 name: "libfuse_default_flags", 44 local_include_dirs: ["include/", "lib/"], 45 cflags: [ 46 "-D_FILE_OFFSET_BITS=64", 47 "-DFUSERMOUNT_DIR=\"/system/bin\"", 48 "-DFUSE_USE_VERSION=34", 49 "-Wall", 50 "-Werror", 51 "-Wextra", 52 "-Wno-sign-compare", 53 "-Wno-incompatible-pointer-types", 54 "-Wno-missing-field-initializers", 55 "-Wno-unused-parameter", 56 "-Wno-unused-variable", 57 ], 58 59 clang: true, 60 sdk_version: "current", 61 min_sdk_version: "30", 62 63 ldflags: [ 64 ], 65} 66 67cc_library { 68 name: "libfuse", 69 defaults: [ 70 "libfuse_default_flags", 71 ], 72 73 export_include_dirs: ["include", "lib"], 74 75 version_script: "lib/fuse_versionscript", 76 77 vendor_available: true, 78 79 srcs: [ 80 "lib/buffer.c", 81 "lib/cuse_lowlevel.c", 82 "lib/fuse.c", 83 "lib/fuse_log.c", 84 "lib/fuse_loop.c", 85 "lib/fuse_loop_mt.c", 86 "lib/fuse_lowlevel.c", 87 "lib/fuse_opt.c", 88 "lib/fuse_signals.c", 89 "lib/helper.c", 90 "lib/modules/subdir.c", 91 "lib/modules/iconv.c", 92 "lib/mount.c", 93 "lib/mount_util.c", 94 ], 95} 96