1# Copyright 2022 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 15import("//build_overrides/pigweed.gni") 16import("$dir_pw_build/target_types.gni") 17 18pw_source_set("base_lib") { 19 public = [ "base.h" ] 20 public_deps = [ dir_pw_containers ] 21} 22 23pw_executable("base") { 24 sources = [ "base.cc" ] 25 deps = [ ":base_lib" ] 26} 27 28pw_executable("linked_list_one_item") { 29 sources = [ "linked_list.cc" ] 30 deps = [ 31 ":base_lib", 32 "..", 33 ] 34 defines = [ "ITEM_COUNT=1" ] 35} 36 37pw_executable("linked_list_two_item") { 38 sources = [ "linked_list.cc" ] 39 deps = [ 40 ":base_lib", 41 "..", 42 ] 43 defines = [ "ITEM_COUNT=2" ] 44} 45 46pw_executable("linked_list_four_item") { 47 sources = [ "linked_list.cc" ] 48 deps = [ 49 ":base_lib", 50 "..", 51 ] 52 defines = [ "ITEM_COUNT=4" ] 53} 54 55pw_executable("intrusive_list_one_item") { 56 sources = [ "intrusive_list.cc" ] 57 deps = [ 58 ":base_lib", 59 "..", 60 ] 61 defines = [ "ITEM_COUNT=1" ] 62} 63 64pw_executable("intrusive_list_two_item") { 65 sources = [ "intrusive_list.cc" ] 66 deps = [ 67 ":base_lib", 68 "..", 69 ] 70 defines = [ "ITEM_COUNT=2" ] 71} 72 73pw_executable("intrusive_list_four_item") { 74 sources = [ "intrusive_list.cc" ] 75 deps = [ 76 ":base_lib", 77 "..", 78 ] 79 defines = [ "ITEM_COUNT=4" ] 80} 81