blob: 6135745c01d0616745224d33cfffd39420bb1a16 [file] [log] [blame]
package {
default_applicable_licenses: ["external_selinux_libsepol_license"],
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
// For unused files, consider creating a 'filegroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// http://go/android-license-faq
license {
name: "external_selinux_libsepol_license",
visibility: [":__subpackages__"],
license_kinds: [
license_text: [
cc_defaults {
name: "libsepol_defaults",
cflags: [
target: {
bionic: {
musl: {
cc_library {
name: "libsepol",
defaults: ["libsepol_defaults"],
host_supported: true,
srcs: [
local_include_dirs: [
export_include_dirs: [
stl: "none",
// The host version of libsepol is loaded by the system python, which does
// not have the sanitizer runtimes.
target: {
host: {
sanitize: {
never: true,
cc_binary_host {
name: "chkcon",
defaults: ["libsepol_defaults"],
srcs: ["utils/chkcon.c"],
shared_libs: ["libsepol"],