1# Copyright 2020 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") 16 17import("$dir_pw_build/target_types.gni") 18 19pw_executable("pointer_simple") { 20 sources = [ "pointer_simple.cc" ] 21 deps = [ 22 "..", 23 dir_pw_log, 24 ] 25} 26 27pw_executable("result_simple") { 28 sources = [ "result_simple.cc" ] 29 deps = [ 30 "..", 31 dir_pw_log, 32 ] 33} 34 35pw_executable("pointer_noinline") { 36 sources = [ "pointer_noinline.cc" ] 37 deps = [ 38 "..", 39 dir_pw_log, 40 dir_pw_preprocessor, 41 ] 42} 43 44pw_executable("result_noinline") { 45 sources = [ "result_noinline.cc" ] 46 deps = [ 47 "..", 48 dir_pw_log, 49 dir_pw_preprocessor, 50 ] 51} 52 53pw_executable("pointer_read") { 54 sources = [ "pointer_read.cc" ] 55 deps = [ 56 "..", 57 dir_pw_bytes, 58 dir_pw_log, 59 dir_pw_preprocessor, 60 ] 61} 62 63pw_executable("result_read") { 64 sources = [ "result_read.cc" ] 65 deps = [ 66 "..", 67 dir_pw_bytes, 68 dir_pw_log, 69 dir_pw_preprocessor, 70 ] 71} 72 73pw_executable("ladder_and_then") { 74 sources = [ "ladder_and_then.cc" ] 75 deps = [ ".." ] 76} 77 78pw_executable("monadic_and_then") { 79 sources = [ "monadic_and_then.cc" ] 80 deps = [ ".." ] 81} 82 83pw_executable("ladder_or_else") { 84 sources = [ "ladder_or_else.cc" ] 85 deps = [ ".." ] 86} 87 88pw_executable("monadic_or_else") { 89 sources = [ "monadic_or_else.cc" ] 90 deps = [ ".." ] 91} 92 93pw_executable("ladder_transform") { 94 sources = [ "ladder_transform.cc" ] 95 deps = [ ".." ] 96} 97 98pw_executable("monadic_transform") { 99 sources = [ "monadic_transform.cc" ] 100 deps = [ ".." ] 101} 102