1# Copyright 2022 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 15include($ENV{PW_ROOT}/pw_build/pigweed.cmake) 16 17pw_add_library(pw_metric STATIC 18 HEADERS 19 public/pw_metric/metric.h 20 PUBLIC_INCLUDES 21 public 22 PUBLIC_DEPS 23 pw_tokenizer.base64 24 pw_assert 25 pw_containers 26 pw_log 27 pw_tokenizer 28 SOURCES 29 metric.cc 30 PRIVATE_DEPS 31 pw_span 32) 33 34pw_add_library(pw_metric.global STATIC 35 HEADERS 36 public/pw_metric/global.h 37 PUBLIC_INCLUDES 38 public 39 PUBLIC_DEPS 40 pw_metric 41 pw_tokenizer 42 SOURCES 43 global.cc 44) 45 46pw_add_test(pw_metric.metric_test 47 SOURCES 48 metric_test.cc 49 PRIVATE_DEPS 50 pw_metric 51 GROUPS 52 modules 53 pw_metric 54) 55 56pw_add_test(pw_metric.global_test 57 SOURCES 58 global_test.cc 59 PRIVATE_DEPS 60 pw_metric.global 61 GROUPS 62 modules 63 pw_metric 64) 65