blob: 758bb80068cd52da3d2f5245d9962c3dd52cfded [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The zx_library() template accepts an optional `sdk_publishable` argument that
# indicates that the library should be included in the SDK in the specified
# category. Since "partner" is the only category that is published, this should
# be the only value passed. However, for historical reasons, other categories
# are specified (see https://fxbug.dev/333125197). These allowlists prevent
# adding more such instances.
group("sdk_category_partner_allowlist") {
# This is the only expected category.
# All libraries actually for the SDK should be in one of these directories.
visibility = [
"//sdk/lib/*",
"//zircon/system/ulib/*",
]
}
group("sdk_category_internal_allowlist") {
# See https://fxbug.dev/333125197 and https://fxbug.dev/331961405.
# TODO(https://fxbug.dev/333907192) Remove once @internal_sdk is eliminated.
visibility = [
"//sdk/lib/driver/mmio/testing/*",
"//src/devices/testing/*",
"//zircon/kernel/lib/devicetree/*",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fzl/*",
]
}
group("sdk_category_firmware_allowlist") {
# See https://fxbug.dev/331962496 and https://fxbug.dev/331961405. This can be
# removed when the firmware SDK is no longer using zx_library().
visibility = [ "//src/firmware/lib/*" ]
}