Ewout van Bekkum | 3c61ae9 | 2020-10-30 15:52:25 -0700 | [diff] [blame] | 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 | |
| 15 | import("//build_overrides/pigweed.gni") |
| 16 | |
| 17 | import("$dir_pw_build/target_types.gni") |
| 18 | import("$dir_pw_docgen/docs.gni") |
| 19 | |
| 20 | config("public_include_path") { |
| 21 | include_dirs = [ "public" ] |
| 22 | visibility = [ ":*" ] |
| 23 | } |
| 24 | |
| 25 | config("backend_config") { |
| 26 | include_dirs = [ "public_overrides" ] |
| 27 | visibility = [ ":*" ] |
| 28 | } |
| 29 | |
| 30 | # This target provides the backend for pw::chrono::SystemClock. |
| 31 | pw_source_set("system_clock") { |
| 32 | public_configs = [ |
| 33 | ":public_include_path", |
| 34 | ":backend_config", |
| 35 | ] |
| 36 | public = [ |
| 37 | "public/pw_chrono_stl/system_clock_config.h", |
| 38 | "public/pw_chrono_stl/system_clock_inline.h", |
| 39 | "public_overrides/pw_chrono_backend/system_clock_config.h", |
| 40 | "public_overrides/pw_chrono_backend/system_clock_inline.h", |
| 41 | ] |
| 42 | public_deps = [ |
| 43 | "$dir_pw_chrono:epoch", |
| 44 | "$dir_pw_chrono:system_clock.facade", |
| 45 | ] |
| 46 | } |
| 47 | |
| 48 | pw_doc_group("docs") { |
| 49 | sources = [ "docs.rst" ] |
| 50 | } |