blob: 9f187f763a60ea21e5dcefea4505a7d267524f43 [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.
import("//build/banjo/toolchain.gni")
config("banjo_gen_config") {
banjo_root_gen_dir =
get_label_info("//bogus($banjo_toolchain)", "root_gen_dir")
include_dirs = [ banjo_root_gen_dir ]
}
# TODO(fxbug.dev/95833): Delete this config after all user code
# migrates off of the C bindings.
config("fidl-deprecated-c-bindings") {
cflags = [ "-DFIDL_ALLOW_DEPRECATED_C_BINDINGS" ]
# Please do not add to this list. Refer to fxbug.dev/95833 to see
# how a target could be migrated off the C FIDL bindings.
#
# To regenerate this list, run
#
# scripts/gn/trim_visibility.py --target="//build/c:fidl-deprecated-c-bindings"
#
# and replace the contents of `visibility` with the script output.
visibility = [
"//src/camera/drivers/controller:source",
"//src/camera/drivers/controller/test:controller_unittest_bin",
"//src/camera/drivers/hw_accel/gdc:gdc_task_unittest_bin",
"//src/camera/drivers/hw_accel/gdc:lib",
"//src/camera/drivers/hw_accel/ge2d:ge2d_on_device_test",
"//src/camera/drivers/hw_accel/ge2d:ge2d_task_unittest_bin",
"//src/camera/drivers/hw_accel/ge2d:lib",
"//src/camera/drivers/hw_accel/task:camera-task",
"//src/camera/drivers/sensors/imx227:fuchsia_driver",
"//src/camera/drivers/test_utils:fake_buffer_collection",
"//src/camera/drivers/test_utils:fake_buffer_collection_unittest_bin",
"//src/camera/lib/image_utils:hsv_color_source",
"//src/camera/lib/image_utils:hsv_generator_unittest_bin",
"//src/camera/lib/image_utils:image_format_rgba",
"//src/camera/lib/image_utils:image_format_rgba_unittest_bin",
"//src/camera/lib/stream_utils:stream_configs",
"//src/connectivity/bluetooth/core/bt-host:_driver.shlib-used.fuchsia_driver",
"//src/connectivity/bluetooth/core/bt-host:device_tests",
"//src/connectivity/bluetooth/core/bt-host:sources",
"//src/connectivity/bluetooth/core/bt-host:stack",
"//src/connectivity/bluetooth/core/bt-host/fidl",
"//src/connectivity/bluetooth/core/bt-host/fidl:adapter_test_fixture",
"//src/connectivity/bluetooth/core/bt-host/fidl:helpers",
"//src/connectivity/bluetooth/core/bt-host/fidl:tests",
"//src/connectivity/bluetooth/core/bt-host/gap",
"//src/connectivity/bluetooth/core/bt-host/gap:testing",
"//src/connectivity/bluetooth/core/bt-host/gap:tests",
"//src/connectivity/bluetooth/core/bt-host/hci",
"//src/connectivity/bluetooth/core/bt-host/hci:testing",
"//src/connectivity/bluetooth/core/bt-host/hci:tests",
"//src/connectivity/bluetooth/core/bt-host/l2cap",
"//src/connectivity/bluetooth/core/bt-host/l2cap:testing",
"//src/connectivity/bluetooth/core/bt-host/l2cap:tests",
"//src/connectivity/bluetooth/core/bt-host/sco",
"//src/connectivity/bluetooth/core/bt-host/sco:tests",
"//src/connectivity/bluetooth/core/bt-host/transport",
"//src/connectivity/bluetooth/core/bt-host/transport:testing",
"//src/connectivity/bluetooth/core/bt-host/transport:tests",
"//src/connectivity/bluetooth/hci/passthrough:fuchsia_driver",
"//src/connectivity/bluetooth/hci/vendor/atheros:_driver.shlib-used.fuchsia_driver",
"//src/connectivity/bluetooth/hci/vendor/atheros:fuchsia_driver",
"//src/connectivity/bluetooth/hci/vendor/broadcom:bt-hci-broadcom-driver",
"//src/connectivity/bluetooth/hci/vendor/broadcom:bt-hci-broadcom-test-bin",
"//src/connectivity/bluetooth/hci/vendor/broadcom:common",
"//src/connectivity/bluetooth/hci/vendor/broadcom:tests_executable",
"//src/connectivity/bluetooth/tools/bt-hci-tool:bin",
"//src/connectivity/bluetooth/tools/bt-intel-tool:bin",
# TODO(https://fxbug.dev/111342): Remove.
"//src/devices/block/drivers/ums-function:ums-function-driver",
"//src/devices/board/drivers/astro:astro-driver",
"//src/devices/board/drivers/av400:av400-driver",
"//src/devices/board/drivers/buckeye:buckeye-driver",
"//src/devices/board/drivers/nelson:nelson-driver",
"//src/devices/board/drivers/nelson:nelson-module-driver",
"//src/devices/board/drivers/sherlock:luis-driver",
"//src/devices/board/drivers/sherlock:luis-factory-driver",
"//src/devices/board/drivers/sherlock:luis-factory-rndis-driver",
"//src/devices/board/drivers/sherlock:sherlock-dai-test-driver",
"//src/devices/board/drivers/sherlock:sherlock-driver",
"//src/devices/board/drivers/sherlock:sherlock-factory-driver",
"//src/devices/board/drivers/sherlock:sherlock-factory-rndis-driver",
"//src/devices/board/drivers/sherlock:sherlock_driver",
"//src/devices/board/drivers/vim3:vim3-driver",
"//src/devices/clock/bin/clock",
"//src/devices/i2c/drivers/intel-i2c:intel-i2c-driver",
"//src/devices/nand/bin/nand-util",
"//src/devices/nand/bin/nand-util:common",
"//src/devices/nand/bin/nand-util:nand-util-test-bin",
"//src/devices/power/bin/lspwr",
"//src/devices/serial/drivers/aml-uart:aml-uart-test-bin",
"//src/devices/serial/drivers/ftdi:ftdi-driver",
"//src/devices/serial/drivers/uart16550:uart16550_lib",
"//src/devices/serial/drivers/uart16550:uart16550_lib_for_testing",
"//src/devices/serial/drivers/usb-cdc-acm:usb-cdc-acm-driver",
"//src/devices/sysmem/tests/sysmem/fuzz:sysmem_fuzzer_bin",
"//src/devices/sysmem/tests/sysmem/fuzz:sysmem_fuzzer_multi_bin",
"//src/devices/tests/ddk-fidl-test",
"//src/devices/tests/ddk-power:ddk-power-test-child-driver",
"//src/devices/tests/isolateddevmgr",
"//src/devices/tests/sysdev:sysdev-driver",
"//src/devices/thermal/bin/thermal-cli",
"//src/devices/thermal/bin/thermal-cli:common",
"//src/devices/thermal/bin/thermal-cli:thermal-cli-test-bin",
"//src/devices/usb/bin/usb-fwloader",
"//src/devices/usb/bin/usbctl",
"//src/devices/usb/bin/xdc-test",
"//src/devices/usb/drivers/usb-peripheral:usb-peripheral-driver",
"//src/devices/usb/drivers/usb-peripheral:usb-peripheral-unittest-bin",
"//src/devices/usb/tests/usb",
"//src/graphics/display/drivers/amlogic-display:common_srcs",
"//src/graphics/display/drivers/display:shared",
"//src/graphics/display/drivers/display/tests:base",
"//src/graphics/display/drivers/dsi-dw:common_srcs",
"//src/graphics/display/drivers/fake:fake-lib",
"//src/graphics/display/drivers/fake:sysmem-proxy-device",
"//src/graphics/display/drivers/goldfish-display:goldfish-display-driver",
"//src/graphics/display/drivers/goldfish-display:goldfish-unittests",
"//src/graphics/display/drivers/intel-i915:common_srcs",
"//src/graphics/display/drivers/intel-i915-tgl:common_srcs",
"//src/graphics/display/testing",
"//src/graphics/drivers/virtio:gpu_lib",
"//src/graphics/lib/magma/src/magma_util/platform/zircon:sysmem_connection",
"//src/lib/fidl/c/simple_tests:bin",
"//src/media/audio/bin/ihda",
"//src/media/audio/drivers/intel-hda/controller:controller_test",
"//src/media/audio/drivers/intel-hda/controller:src",
"//src/media/audio/drivers/intel-hda/test:test_libs",
"//src/performance/ktrace_provider:bin",
"//src/power/thermd:bin",
# TODO(https://fxbug.dev/114596): Remove.
"//src/storage/bin/dd",
"//src/sys/early_boot_instrumentation:coverage-source",
"//src/virtualization/bin/vmm/device:block",
"//src/virtualization/bin/vmm/device/virtio_magma:magma_image",
"//zircon/kernel/lib/userabi/userboot/*",
"//zircon/system/ulib/c/sanitizers",
"//zircon/system/ulib/hid",
"//zircon/system/ulib/image-format",
"//zircon/system/ulib/image-format/test:image-format-test",
"//zircon/system/ulib/kcounter",
"//zircon/system/ulib/kernel-debug",
"//zircon/system/ulib/profile",
"//zircon/system/ulib/runtests-utils",
"//zircon/system/ulib/task-utils",
"//zircon/system/ulib/zx/test:zx",
"//zircon/system/utest/fidl-utils",
"//zircon/system/utest/runtests-utils",
"//zircon/system/utest/svchost",
]
}
# TODO(fxbug.dev/95833): Delete this config after all user code
# migrates off of the C bindings.
# This is used by generated C bindings library from fidlc, which unfortunately
# cannot have a definite visibility restriction. Please do not use this config.
config("fidl-deprecated-c-bindings-reserved-for-fidlc-generated-code-only") {
cflags = [ "-DFIDL_ALLOW_DEPRECATED_C_BINDINGS" ]
}