blob: c7a7128132df88938ef6eb7c09e8ef5975998861 [file]
load("//bazel:defs.bzl", "compatible_with_rp2")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "pico_stdlib",
srcs = ["stdlib.c"],
target_compatible_with = compatible_with_rp2(),
deps = [
"//src/common/pico_binary_info",
"//src/common/pico_stdlib:pico_stdlib_interface",
"//src/rp2_common/hardware_clocks",
"//src/rp2_common/hardware_pll",
] + select({
"//bazel/constraint:pico_stdio_semihosting_enabled": ["//src/rp2_common/pico_stdio_semihosting"],
"//conditions:default": [],
}) + select({
"//bazel/constraint:pico_stdio_uart_enabled": ["//src/rp2_common/pico_stdio_uart"],
"//conditions:default": [],
}) + select({
"//bazel/constraint:pico_stdio_usb_enabled": ["//src/rp2_common/pico_stdio_usb"],
"//conditions:default": [],
}),
)