blob: ef7603d8a9324f6b8931fe612a68029896754939 [file] [log] [blame]
package(default_visibility = ["//visibility:public"])
cc_library(
name = "pico_stdlib",
srcs = ["stdlib.c"],
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
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:stdio_semihosting": ["//src/rp2_common/pico_stdio_semihosting"],
"//bazel/constraint:stdio_uart": ["//src/rp2_common/pico_stdio_uart"],
"//bazel/constraint:stdio_usb": ["//src/rp2_common/pico_stdio_usb"],
}),
)