1// Copyright 2023 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 15package { 16 default_applicable_licenses: ["external_pigweed_license"], 17} 18 19// To use the pw_log_basic facade, add pw_log_basic_no_backends to the defaults 20// list of the library or binary that uses it and provide the pw_sys_io backend 21// and its backend as dependencies. 22cc_defaults { 23 name: "pw_log_basic_no_backends", 24 cpp_std: "c++20", 25 defaults: [ 26 "pw_sys_io_no_backends", 27 ], 28 header_libs: [ 29 "pw_log", 30 "pw_log_basic_include_dirs", 31 "pw_sys_io_include_dirs", 32 ], 33 export_header_lib_headers: [ 34 "pw_log_basic_include_dirs", 35 ], 36 static_libs: [ 37 "pw_preprocessor", 38 "pw_string", 39 ], 40 export_static_lib_headers: [ 41 "pw_preprocessor", 42 ], 43 srcs: [ 44 ":pw_log_basic_scr_files", 45 ], 46} 47 48// Do not include these since they are for pw_log_basic_no_backends. Depend on 49// pw_log_basic_no_backends instead. 50cc_library_headers { 51 name: "pw_log_basic_include_dirs", 52 cpp_std: "c++20", 53 export_include_dirs: [ 54 "public", 55 "public_overrides", 56 ], 57 vendor_available: true, 58 host_supported: true, 59} 60 61// Do not include these since they are for pw_log_basic_no_backends. Depend on 62// pw_log_basic_no_backends instead. 63filegroup { 64 name: "pw_log_basic_scr_files", 65 srcs: [ 66 "log_basic.cc", 67 ], 68} 69