1// Copyright 2017 The Android Open Source Project 2 3package { 4 default_applicable_licenses: ["external_fec_license"], 5} 6 7// Added automatically by a large-scale-change that took the approach of 8// 'apply every license found to every target'. While this makes sure we respect 9// every license restriction, it may not be entirely correct. 10// 11// e.g. GPL in an MIT project might only apply to the contrib/ directory. 12// 13// Please consider splitting the single license below into multiple licenses, 14// taking care not to lose any license_kind information, and overriding the 15// default license using the 'licenses: [...]' property on targets as needed. 16// 17// For unused files, consider creating a 'fileGroup' with "//visibility:private" 18// to attach the license to, and including a comment whether the files may be 19// used in the current project. 20// See: http://go/android-license-faq 21license { 22 name: "external_fec_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-GPL", 26 "SPDX-license-identifier-ISC", 27 "SPDX-license-identifier-LGPL", 28 "SPDX-license-identifier-LGPL-2.1", 29 "SPDX-license-identifier-LGPL-3.0", 30 "SPDX-license-identifier-MIT", 31 ], 32 license_text: [ 33 "NOTICE", 34 ], 35} 36 37cc_library { 38 name: "libfec_rs", 39 host_supported: true, 40 ramdisk_available: true, 41 vendor_ramdisk_available: true, 42 recovery_available: true, 43 srcs: [ 44 "encode_rs_char.c", 45 "decode_rs_char.c", 46 "init_rs_char.c", 47 ], 48 cflags: [ 49 "-Wall", 50 "-Werror", 51 "-O3", 52 ], 53 export_include_dirs: ["."], 54 55 target: { 56 linux: { 57 sanitize: { 58 misc_undefined: ["integer"], 59 }, 60 }, 61 windows: { 62 enabled: true, 63 }, 64 }, 65} 66