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 17# This backend to pw_assert's PW_CHECK()/PW_CRASH() macros via PW_LOG. 18pw_add_library(pw_assert_log.check_backend STATIC 19 HEADERS 20 check_backend_public_overrides/pw_assert_backend/check_backend.h 21 public/pw_assert_log/check_log.h 22 PUBLIC_INCLUDES 23 check_backend_public_overrides 24 public 25 PUBLIC_DEPS 26 pw_log 27 pw_preprocessor 28 SOURCES 29 assert_log.cc 30 PRIVATE_DEPS 31 pw_assert.config 32 pw_assert.assert_compatibility_backend 33) 34 35# This backend to pw_assert's PW_ASSERT() macros via PW_LOG. It is intended only 36# for use with PW_LOG backends which are constexpr compatible such as 37# pw_log_android. 38pw_add_library(pw_assert_log.assert_backend INTERFACE 39 HEADERS 40 assert_backend_public_overrides/pw_assert_backend/assert_backend.h 41 public/pw_assert_log/assert_log.h 42 PUBLIC_INCLUDES 43 assert_backend_public_overrides 44 public 45 PUBLIC_DEPS 46 pw_log 47 pw_preprocessor 48) 49