• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19# Baseline size report library.
20pw_source_set("base_lib") {
21  public = [ "base.h" ]
22  public_deps = [ dir_pw_tokenizer ]
23}
24
25# Baseline tokenize string size report executable.
26pw_executable("tokenize_string_base") {
27  sources = [ "tokenize_string.cc" ]
28  deps = [
29    ":base_lib",
30    "..",
31  ]
32  defines = [ "BASELINE" ]
33}
34
35# Tokenize string size report executable.
36pw_executable("tokenize_string") {
37  sources = [ "tokenize_string.cc" ]
38  deps = [
39    ":base_lib",
40    "..",
41  ]
42}
43
44# Baseline tokenize string expression size report executable.
45pw_executable("tokenize_string_expr_base") {
46  sources = [ "tokenize_string_expr.cc" ]
47  deps = [
48    ":base_lib",
49    "..",
50  ]
51  defines = [ "BASELINE" ]
52}
53
54# Tokenize string expression size report executable.
55pw_executable("tokenize_string_expr") {
56  sources = [ "tokenize_string_expr.cc" ]
57  deps = [
58    ":base_lib",
59    "..",
60  ]
61}
62