xref: /aosp_15_r20/external/pigweed/pw_assert_tokenized/CMakeLists.txt (revision 61c4878ac05f98d0ceed94b57d316916de578985)
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
15include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
16
17pw_add_library(pw_assert_tokenized.handler STATIC
18  HEADERS
19    public/pw_assert_tokenized/handler.h
20  PUBLIC_INCLUDES
21    public
22  PUBLIC_DEPS
23    pw_preprocessor
24  SOURCES
25    log_handler.cc
26  PRIVATE_DEPS
27    pw_assert.config
28    pw_base64
29    pw_bytes
30    pw_log
31    pw_log_tokenized
32)
33
34pw_add_library(pw_assert_tokenized.assert_backend INTERFACE
35  HEADERS
36    assert_public_overrides/pw_assert_backend/assert_backend.h
37    public/pw_assert_tokenized/assert_tokenized.h
38  PUBLIC_INCLUDES
39    assert_public_overrides
40    public
41  PUBLIC_DEPS
42    pw_assert_tokenized.handler
43    pw_tokenizer
44)
45
46pw_add_library(pw_assert_tokenized.check_backend INTERFACE
47  HEADERS
48    check_public_overrides/pw_assert_backend/check_backend.h
49    public/pw_assert_tokenized/check_tokenized.h
50  PUBLIC_INCLUDES
51    check_public_overrides
52    public
53  PUBLIC_DEPS
54    pw_assert_tokenized.handler
55    pw_log_tokenized
56    pw_tokenizer
57)
58