1# Copyright 2024 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("@rules_cc//cc:cc_library.bzl", "cc_library") 16load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test") 17 18package(default_visibility = ["//pw_bluetooth_sapphire:__subpackages__"]) 19 20cc_library( 21 name = "cpp-string", 22 srcs = [ 23 "string_printf.cc", 24 ], 25 hdrs = [ 26 "public/cpp-string/string_printf.h", 27 ], 28 strip_include_prefix = "public", 29) 30 31pw_cc_test( 32 name = "string_printf_test", 33 srcs = [ 34 "string_printf_test.cc", 35 ], 36 copts = [ 37 "-Wno-format-zero-length", 38 ], 39 deps = [ 40 ":cpp-string", 41 ], 42) 43