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_binary { 57 name: "fsverity_multilib", 58 defaults: [ 59 "fsverity_default_flags", 60 ], 61 host_supported: true, 62 shared_libs: ["libfsverity"], 63 srcs: [ 64 "programs/cmd_*.c", 65 "programs/fsverity.c", 66 "programs/utils.c", 67 ], 68 compile_multilib: "both", 69 multilib: { 70 lib32: { 71 suffix: "32", 72 }, 73 lib64: { 74 suffix: "64", 75 }, 76 }, 77} 78 79cc_library { 80 name: "libfsverity", 81 defaults: [ 82 "fsverity_default_flags", 83 ], 84 host_supported: true, 85 shared_libs: ["libcrypto"], 86 87 export_include_dirs: ["include"], 88 89 apex_available: [ 90 "//apex_available:platform", 91 "com.android.compos", 92 ], 93 recovery_available: true, 94 95 srcs: [ 96 "lib/*.c", 97 ], 98} 99