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 19cc_library { 20 name: "pw_allocator", 21 cpp_std: "c++20", 22 vendor_available: true, 23 export_include_dirs: [ 24 "public", 25 "block/public", 26 ], 27 defaults: [ 28 "pw_android_common_backends", 29 ], 30 header_libs: [ 31 "pw_assert", 32 "fuchsia_sdk_lib_stdcompat", 33 ], 34 export_header_lib_headers: [ 35 "pw_assert", 36 "fuchsia_sdk_lib_stdcompat", 37 ], 38 export_static_lib_headers: [ 39 "pw_bytes", 40 "pw_containers", 41 "pw_metric", 42 "pw_preprocessor", 43 "pw_result", 44 "pw_span", 45 "pw_status", 46 "pw_tokenizer", 47 ], 48 host_supported: true, 49 srcs: [ 50 "allocator.cc", 51 "allocator_as_pool.cc", 52 "block/contiguous.cc", 53 "block/poisonable.cc", 54 "chunk_pool.cc", 55 "libc_allocator.cc", 56 "unique_ptr.cc", 57 ], 58 static_libs: [ 59 "pw_bytes", 60 "pw_containers", 61 "pw_metric", 62 "pw_preprocessor", 63 "pw_result", 64 "pw_span", 65 "pw_status", 66 "pw_tokenizer", 67 ], 68} 69