mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 05:41:06 +00:00
bba19361f7
- Fix incorrect 'IMPLEMENTS_FACADE' which got away from me in code review. - Update the zephyr implementation of pw_assert - Fix selection of backends to happen at config time before including facades - Update Kconfigs to stop using menus which ended up just making things confusing. - Fix some missing 'select' statements in Kconfigs Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I4b830481f62aa27932df4ef5fc19233719f69c74 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/102542 Reviewed-by: Paul Fagerburg <pfagerburg@google.com> Reviewed-by: Ewout van Bekkum <ewout@google.com>
48 lines
1.3 KiB
CMake
48 lines
1.3 KiB
CMake
# Copyright 2021 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.
|
|
|
|
include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
|
|
|
|
if(NOT CONFIG_PIGWEED_ASSERT)
|
|
return()
|
|
endif()
|
|
|
|
pw_add_module_library(pw_assert_zephyr.check
|
|
IMPLEMENTS_FACADES
|
|
pw_assert.check
|
|
HEADERS
|
|
public/pw_assert_zephyr/check_zephyr.h
|
|
public_overrides/pw_assert_backend/check_backend.h
|
|
PUBLIC_INCLUDES
|
|
public
|
|
public_overrides
|
|
PUBLIC_DEPS
|
|
zephyr_interface
|
|
)
|
|
zephyr_link_libraries(pw_assert_zephyr.check)
|
|
|
|
pw_add_module_library(pw_assert_zephyr.assert
|
|
IMPLEMENTS_FACADES
|
|
pw_assert.assert
|
|
HEADERS
|
|
public/pw_assert_zephyr/assert_zephyr.h
|
|
public_overrides/pw_assert_backend/assert_backend.h
|
|
PUBLIC_INCLUDES
|
|
public
|
|
public_overrides
|
|
PUBLIC_DEPS
|
|
zephyr_interface
|
|
)
|
|
zephyr_link_libraries(pw_assert_zephyr.assert)
|