# Copyright 2023 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. import("//build_overrides/pigweed.gni") import("$dir_pw_build/target_types.gni") pw_executable("base") { sources = [ "base.cc" ] defines = [ "PW_ALLOCATOR_SIZE_REPORTER_BASE" ] deps = [ "$dir_pw_bloat:bloat_this_binary", "..:size_reporter", dir_pw_bytes, ] } pw_executable("as_pmr_allocator_base") { sources = [ "as_pmr_allocator_base.cc" ] deps = [ "..:block_allocator", "..:size_reporter", ] } pw_executable("as_pmr_allocator") { sources = [ "as_pmr_allocator.cc" ] deps = [ "..:allocator", "..:block_allocator", "..:size_reporter", ] } pw_executable("best_fit_block_allocator") { include_dirs = [ "../public" ] sources = [ "best_fit_block_allocator.cc" ] deps = [ "..:block_allocator", "..:size_reporter", ] } pw_executable("bucket_block_allocator") { include_dirs = [ "../public" ] sources = [ "bucket_block_allocator.cc" ] deps = [ "..:bucket_block_allocator", "..:size_reporter", ] } pw_executable("buddy_allocator") { include_dirs = [ "../public" ] sources = [ "buddy_allocator.cc" ] deps = [ "..:buddy_allocator", "..:size_reporter", ] } pw_executable("bump_allocator") { include_dirs = [ "../public" ] sources = [ "bump_allocator.cc" ] deps = [ "..:bump_allocator", "..:size_reporter", ] } pw_executable("dual_first_fit_block_allocator") { sources = [ "dual_first_fit_block_allocator.cc" ] deps = [ "..:block_allocator", "..:size_reporter", ] } pw_executable("fallback_allocator_base") { sources = [ "fallback_allocator_base.cc" ] deps = [ "..:block_allocator", "..:fallback_allocator", "..:size_reporter", ] } pw_executable("fallback_allocator") { sources = [ "fallback_allocator.cc" ] deps = [ "..:block_allocator", "..:fallback_allocator", "..:size_reporter", ] } pw_executable("first_fit_block_allocator") { sources = [ "first_fit_block_allocator.cc" ] deps = [ "..:block_allocator", "..:size_reporter", ] } pw_executable("last_fit_block_allocator") { sources = [ "last_fit_block_allocator.cc" ] deps = [ "..:block_allocator", "..:size_reporter", ] } pw_executable("libc_allocator") { sources = [ "libc_allocator.cc" ] deps = [ "..:libc_allocator", "..:size_reporter", ] } pw_executable("null_allocator") { sources = [ "null_allocator.cc" ] deps = [ "..:null_allocator", "..:size_reporter", ] } pw_executable("synchronized_allocator_isl") { sources = [ "synchronized_allocator_isl.cc" ] deps = [ "$dir_pw_sync:interrupt_spin_lock", "..:block_allocator", "..:size_reporter", "..:synchronized_allocator", ] } pw_executable("synchronized_allocator_mutex") { sources = [ "synchronized_allocator_mutex.cc" ] deps = [ "$dir_pw_sync:mutex", "..:block_allocator", "..:size_reporter", "..:synchronized_allocator", ] } pw_executable("tracking_allocator_all_metrics") { sources = [ "tracking_allocator_all_metrics.cc" ] deps = [ "..:block_allocator", "..:size_reporter", "..:tracking_allocator", ] } pw_executable("tracking_allocator_no_metrics") { sources = [ "tracking_allocator_no_metrics.cc" ] deps = [ "..:block_allocator", "..:size_reporter", "..:tracking_allocator", ] } pw_executable("worst_fit_block_allocator") { sources = [ "worst_fit_block_allocator.cc" ] deps = [ "..:block_allocator", "..:size_reporter", ] }