1package { 2 default_applicable_licenses: ["external_selinux_checkpolicy_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// http://go/android-license-faq 19license { 20 name: "external_selinux_checkpolicy_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-GPL", 24 "SPDX-license-identifier-GPL-2.0", 25 "SPDX-license-identifier-LGPL", 26 ], 27 license_text: [ 28 "COPYING", 29 ], 30} 31 32common_CFLAGS = [ 33 "-Wall", 34 "-Werror", 35 "-Wshadow", 36] 37 38cc_binary_host { 39 name: "checkpolicy", 40 cflags: common_CFLAGS, 41 srcs: [ 42 "policy_parse.y", 43 "policy_scan.l", 44 "queue.c", 45 "module_compiler.c", 46 "parse_util.c", 47 "policy_define.c", 48 "checkpolicy.c", 49 ], 50 static_libs: ["libsepol"], 51} 52 53cc_binary_host { 54 name: "dispol", 55 cflags: common_CFLAGS, 56 srcs: ["test/dispol.c"], 57 static_libs: ["libsepol"], 58} 59