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 15include($ENV{PW_ROOT}/pw_build/pigweed.cmake) 16 17pw_add_module_config(pw_log_basic_CONFIG) 18 19pw_add_library(pw_log_basic STATIC 20 HEADERS 21 public/pw_log_basic/log_basic.h 22 public_overrides/pw_log_backend/log_backend.h 23 pw_log_basic_private/config.h 24 PUBLIC_INCLUDES 25 public 26 public_overrides 27 PUBLIC_DEPS 28 pw_preprocessor 29 SOURCES 30 log_basic.cc 31 PRIVATE_DEPS 32 pw_string 33 pw_sys_io 34 pw_log.facade 35 ${pw_log_basic_CONFIG} 36) 37 38pw_add_library(pw_log_basic.log_string_handler STATIC 39 SOURCES 40 log_string_handler.cc 41 PRIVATE_DEPS 42 pw_log_basic 43 pw_log_string.handler.facade 44) 45