1*288bf522SAndroid Build Coastguard Workerpackage { 2*288bf522SAndroid Build Coastguard Worker default_applicable_licenses: ["system_extras_cpustats_license"], 3*288bf522SAndroid Build Coastguard Worker} 4*288bf522SAndroid Build Coastguard Worker 5*288bf522SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 6*288bf522SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 7*288bf522SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 8*288bf522SAndroid Build Coastguard Worker// 9*288bf522SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10*288bf522SAndroid Build Coastguard Worker// 11*288bf522SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 12*288bf522SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 13*288bf522SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 14*288bf522SAndroid Build Coastguard Worker// 15*288bf522SAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16*288bf522SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 17*288bf522SAndroid Build Coastguard Worker// used in the current project. 18*288bf522SAndroid Build Coastguard Worker// See: http://go/android-license-faq 19*288bf522SAndroid Build Coastguard Workerlicense { 20*288bf522SAndroid Build Coastguard Worker name: "system_extras_cpustats_license", 21*288bf522SAndroid Build Coastguard Worker visibility: [":__subpackages__"], 22*288bf522SAndroid Build Coastguard Worker license_kinds: [ 23*288bf522SAndroid Build Coastguard Worker "SPDX-license-identifier-Apache-2.0", 24*288bf522SAndroid Build Coastguard Worker "SPDX-license-identifier-BSD", 25*288bf522SAndroid Build Coastguard Worker ], 26*288bf522SAndroid Build Coastguard Worker license_text: [ 27*288bf522SAndroid Build Coastguard Worker "NOTICE", 28*288bf522SAndroid Build Coastguard Worker ], 29*288bf522SAndroid Build Coastguard Worker} 30*288bf522SAndroid Build Coastguard Worker 31*288bf522SAndroid Build Coastguard Workercc_binary { 32*288bf522SAndroid Build Coastguard Worker name: "cpustats", 33*288bf522SAndroid Build Coastguard Worker srcs: ["cpustats.c"], 34*288bf522SAndroid Build Coastguard Worker cflags: [ 35*288bf522SAndroid Build Coastguard Worker "-Wall", 36*288bf522SAndroid Build Coastguard Worker "-Werror", 37*288bf522SAndroid Build Coastguard Worker ], 38*288bf522SAndroid Build Coastguard Worker} 39