• 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("@rules_cc//cc:cc_library.bzl", "cc_library")
16load("//pw_build:compatibility.bzl", "incompatible_with_mcu")
17load("//pw_build:pw_cc_binary.bzl", "pw_cc_binary")
18
19# Baseline size report library.
20cc_library(
21    name = "base_lib",
22    hdrs = ["base.h"],
23    tags = ["noclangtidy"],
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    tags = ["noclangtidy"],
32    target_compatible_with = incompatible_with_mcu(),
33    deps = [
34        ":base_lib",
35        "//pw_tokenizer",
36    ],
37)
38
39# Tokenize string size report binary.
40pw_cc_binary(
41    name = "tokenize_string",
42    srcs = ["tokenize_string.cc"],
43    tags = ["noclangtidy"],
44    target_compatible_with = incompatible_with_mcu(),
45    deps = [
46        ":base_lib",
47        "//pw_tokenizer",
48    ],
49)
50
51# Baseline tokenize string expression size report binary.
52pw_cc_binary(
53    name = "tokenize_string_expr_base",
54    srcs = ["tokenize_string_expr.cc"],
55    defines = ["BASELINE"],
56    tags = ["noclangtidy"],
57    target_compatible_with = incompatible_with_mcu(),
58    deps = [
59        ":base_lib",
60        "//pw_tokenizer",
61    ],
62)
63
64# Tokenize string expression size report binary.
65pw_cc_binary(
66    name = "tokenize_string_expr",
67    srcs = ["tokenize_string_expr.cc"],
68    tags = ["noclangtidy"],
69    target_compatible_with = incompatible_with_mcu(),
70    deps = [
71        ":base_lib",
72        "//pw_tokenizer",
73    ],
74)
75