1# Copyright 2020 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15load("//pw_build:compatibility.bzl", "incompatible_with_mcu") 16 17package(default_visibility = ["//visibility:public"]) 18 19licenses(["notice"]) 20 21cc_library( 22 name = "system_clock", 23 hdrs = [ 24 "clock_public_overrides/pw_chrono_backend/system_clock_config.h", 25 "clock_public_overrides/pw_chrono_backend/system_clock_inline.h", 26 "public/pw_chrono_stl/system_clock_config.h", 27 "public/pw_chrono_stl/system_clock_inline.h", 28 ], 29 includes = [ 30 "clock_public_overrides", 31 "public", 32 ], 33 target_compatible_with = incompatible_with_mcu(), 34 deps = [ 35 "//pw_chrono:epoch", 36 "//pw_chrono:system_clock.facade", 37 ], 38) 39 40cc_library( 41 name = "system_timer", 42 srcs = [ 43 "system_timer.cc", 44 ], 45 hdrs = [ 46 "public/pw_chrono_stl/system_timer_inline.h", 47 "public/pw_chrono_stl/system_timer_native.h", 48 "timer_public_overrides/pw_chrono_backend/system_timer_inline.h", 49 "timer_public_overrides/pw_chrono_backend/system_timer_native.h", 50 ], 51 includes = [ 52 "public", 53 "timer_public_overrides", 54 ], 55 target_compatible_with = incompatible_with_mcu(), 56 deps = [ 57 "//pw_chrono:system_clock", 58 "//pw_chrono:system_timer.facade", 59 "//pw_function", 60 ], 61) 62