2019-11-14 15:16:40 +00:00
|
|
|
# Copyright 2019 The Pigweed Authors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at
|
|
|
|
#
|
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations under
|
|
|
|
# the License.
|
|
|
|
|
|
|
|
load(
|
|
|
|
"//pw_build:pigweed.bzl",
|
2019-11-18 19:09:39 +00:00
|
|
|
"pw_cc_library",
|
|
|
|
"pw_cc_test",
|
2019-11-14 15:16:40 +00:00
|
|
|
)
|
|
|
|
|
2019-11-19 17:50:42 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"]) # Apache License 2.0
|
|
|
|
|
2019-11-18 19:09:39 +00:00
|
|
|
pw_cc_library(
|
2019-11-14 15:16:40 +00:00
|
|
|
name = "pw_preprocessor",
|
|
|
|
hdrs = glob(["public/pw_preprocessor/*.h"]),
|
2020-01-06 18:30:14 +00:00
|
|
|
includes = ["public"],
|
2019-11-14 15:16:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
TESTS = [
|
|
|
|
"boolean_test",
|
|
|
|
"concat_test",
|
|
|
|
"macro_arg_count_test",
|
|
|
|
"util_test",
|
|
|
|
]
|
|
|
|
|
|
|
|
[
|
2019-11-18 19:09:39 +00:00
|
|
|
pw_cc_test(
|
2019-11-14 15:16:40 +00:00
|
|
|
name = t,
|
|
|
|
srcs = [t + ".cc"],
|
2020-04-06 20:25:43 +00:00
|
|
|
deps = [
|
|
|
|
":pw_preprocessor",
|
|
|
|
"//pw_unit_test",
|
|
|
|
],
|
2019-11-14 15:16:40 +00:00
|
|
|
)
|
|
|
|
for t in TESTS
|
|
|
|
]
|