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 ], 39} 40 41cc_defaults { 42 name: "libfuse_default_flags", 43 local_include_dirs: [ 44 "include/", 45 "lib/", 46 ], 47 cflags: [ 48 "-D_FILE_OFFSET_BITS=64", 49 "-DFUSERMOUNT_DIR=\"/system/bin\"", 50 "-DFUSE_USE_VERSION=317", 51 "-Wall", 52 "-Werror", 53 "-Wextra", 54 "-Wno-sign-compare", 55 "-Wno-incompatible-pointer-types", 56 "-Wno-missing-field-initializers", 57 "-Wno-unused-parameter", 58 "-Wno-unused-variable", 59 ], 60 61 sdk_version: "current", 62 min_sdk_version: "30", 63 64 ldflags: [ 65 ], 66} 67 68cc_library_headers { 69 name: "libfuse_headers", 70 export_include_dirs: ["include"], 71} 72 73cc_library { 74 name: "libfuse", 75 defaults: [ 76 "libfuse_default_flags", 77 ], 78 79 export_include_dirs: [ 80 "include", 81 "lib", 82 ], 83 84 version_script: "lib/fuse_versionscript", 85 86 vendor_available: true, 87 88 srcs: [ 89 "lib/buffer.c", 90 "lib/cuse_lowlevel.c", 91 "lib/fuse.c", 92 "lib/fuse_log.c", 93 "lib/fuse_loop.c", 94 "lib/fuse_loop_mt.c", 95 "lib/fuse_lowlevel.c", 96 "lib/fuse_opt.c", 97 "lib/fuse_signals.c", 98 "lib/helper.c", 99 "lib/modules/subdir.c", 100 "lib/modules/iconv.c", 101 "lib/mount.c", 102 "lib/mount_util.c", 103 ], 104 105 // http://b/329787497 - LTO causes non-deterministic output 106 lto: { 107 never: true, 108 }, 109 110 apex_available: [ 111 "//apex_available:platform", 112 "com.android.mediaprovider", 113 ], 114 115 // Workaround LTO build breakage. 116 lto_O0: true, 117} 118