package(default_visibility = ["//visibility:public"]) | |
cc_library( | |
name = "pico_util", | |
srcs = [ | |
"datetime.c", | |
"pheap.c", | |
"queue.c", | |
], | |
hdrs = [ | |
"include/pico/util/datetime.h", | |
"include/pico/util/pheap.h", | |
"include/pico/util/queue.h", | |
], | |
includes = ["include"], | |
deps = [ | |
"//src/common/pico_base:pico_base_interface", | |
"//src/common/pico_sync", | |
] + select({ | |
"//bazel/constraint:rp2": [ | |
"//src/rp2_common/hardware_sync", | |
], | |
"//bazel/constraint:host": [ | |
"//src/host/hardware_sync", | |
], | |
}), | |
) |