| # Copyright 2020 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) |
| include($ENV{PW_ROOT}/pw_protobuf_compiler/proto.cmake) |
| |
| pw_add_module_config(pw_cpu_exception_cortex_m_CONFIG) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.config |
| PUBLIC_DEPS |
| ${pw_cpu_exception_cortex_m_CONFIG} |
| HEADERS |
| pw_cpu_exception_cortex_m_private/config.h |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.cpu_state |
| PUBLIC_DEPS |
| pw_preprocessor |
| pw_preprocessor.arch |
| HEADERS |
| public/pw_cpu_exception_cortex_m/cpu_state.h |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.cpu_exception |
| IMPLEMENTS_FACADES |
| pw_cpu_exception.entry |
| PUBLIC_DEPS |
| pw_preprocessor |
| pw_preprocessor.arch |
| pw_cpu_exception_cortex_m.cpu_state |
| PRIVATE_DEPS |
| pw_cpu_exception.handler |
| pw_cpu_exception_cortex_m.config |
| pw_cpu_exception_cortex_m.constants |
| SOURCES |
| entry.cc |
| HEADERS |
| public_overrides/pw_cpu_exception_backend/state.h |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.util |
| PUBLIC_DEPS |
| pw_cpu_exception_cortex_m.cpu_state |
| PRIVATE_DEPS |
| pw_cpu_exception_cortex_m.config |
| pw_cpu_exception_cortex_m.constants |
| pw_log |
| pw_preprocessor.arch |
| SOURCES |
| util.cc |
| HEADERS |
| public/pw_cpu_exception_cortex_m/util.h |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.support |
| IMPLEMENTS_FACADES |
| pw_cpu_exception.support |
| PRIVATE_DEPS |
| pw_cpu_exception_cortex_m.config |
| pw_cpu_exception_cortex_m.constants |
| pw_cpu_exception_cortex_m.util |
| pw_log |
| pw_preprocessor.arch |
| pw_string |
| SOURCES |
| support.cc |
| ) |
| |
| pw_proto_library(pw_cpu_exception_cortex_m.cpu_state_protos |
| SOURCES |
| pw_cpu_exception_cortex_m_protos/cpu_state.proto |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.proto_dump |
| PUBLIC_DEPS |
| pw_cpu_exception_cortex_m.cpu_state |
| pw_protobuf |
| pw_status |
| pw_stream |
| PRIVATE_DEPS |
| pw_cpu_exception_cortex_m.config |
| pw_cpu_exception_cortex_m.cpu_state_protos.pwpb |
| SOURCES |
| proto_dump.cc |
| HEADERS |
| public/pw_cpu_exception_cortex_m/proto_dump.h |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.snapshot |
| PUBLIC_DEPS |
| pw_cpu_exception_cortex_m.cpu_state |
| pw_cpu_exception_cortex_m.cpu_state_protos.pwpb |
| pw_protobuf |
| pw_status |
| PRIVATE_DEPS |
| pw_cpu_exception_cortex_m.config |
| pw_cpu_exception_cortex_m.constants |
| pw_cpu_exception_cortex_m.proto_dump |
| pw_log |
| SOURCES |
| snapshot.cc |
| HEADERS |
| public/pw_cpu_exception_cortex_m/snapshot.h |
| ) |
| |
| pw_add_module_library(pw_cpu_exception_cortex_m.constants |
| PUBLIC_DEPS |
| pw_preprocessor.arch |
| HEADERS |
| pw_cpu_exception_cortex_m_private/cortex_m_constants.h |
| ) |