1package { 2 default_applicable_licenses: ["external_fsverity-utils_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// See: http://go/android-license-faq 19license { 20 name: "external_fsverity-utils_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-GPL-2.0", 24 "SPDX-license-identifier-MIT", 25 ], 26 license_text: [ 27 "LICENSE", 28 ], 29} 30 31cc_defaults { 32 name: "fsverity_default_flags", 33 34 cflags: [ 35 "-Wall", 36 "-Wno-pointer-arith", 37 "-D_GNU_SOURCE", 38 "-D_FILE_OFFSET_BITS=64", 39 ], 40} 41 42cc_binary { 43 name: "fsverity", 44 defaults: [ 45 "fsverity_default_flags", 46 ], 47 host_supported: true, 48 shared_libs: ["libfsverity"], 49 srcs: [ 50 "programs/cmd_*.c", 51 "programs/fsverity.c", 52 "programs/utils.c", 53 ], 54} 55 56cc_library { 57 name: "libfsverity", 58 defaults: [ 59 "fsverity_default_flags", 60 ], 61 host_supported: true, 62 shared_libs: ["libcrypto"], 63 64 export_include_dirs: ["include"], 65 66 apex_available: [ 67 "//apex_available:platform", 68 "com.android.compos", 69 ], 70 recovery_available: true, 71 72 srcs: [ 73 "lib/*.c", 74 ], 75} 76