• 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
15load(
16    "//pw_build:pigweed.bzl",
17    "pw_cc_binary",
18)
19
20# Baseline size report library.
21cc_library(
22    name = "base_lib",
23    hdrs = ["base.h"],
24)
25
26# Baseline tokenize string size report binary.
27pw_cc_binary(
28    name = "tokenize_string_base",
29    srcs = ["tokenize_string.cc"],
30    defines = ["BASELINE"],
31    deps = [
32        ":base_lib",
33        "//pw_tokenizer",
34    ],
35)
36
37# Tokenize string size report binary.
38pw_cc_binary(
39    name = "tokenize_string",
40    srcs = ["tokenize_string.cc"],
41    deps = [
42        ":base_lib",
43        "//pw_tokenizer",
44    ],
45)
46
47# Baseline tokenize string expression size report binary.
48pw_cc_binary(
49    name = "tokenize_string_expr_base",
50    srcs = ["tokenize_string_expr.cc"],
51    defines = ["BASELINE"],
52    deps = [
53        ":base_lib",
54        "//pw_tokenizer",
55    ],
56)
57
58# Tokenize string expression size report binary.
59pw_cc_binary(
60    name = "tokenize_string_expr",
61    srcs = ["tokenize_string_expr.cc"],
62    deps = [
63        ":base_lib",
64        "//pw_tokenizer",
65    ],
66)
67