blob: 4ea4010063331db6f6f4b256b75cb3b3cc4ba5d3 [file] [log] [blame]
Davide Grohmann144b2d22022-05-31 15:24:02 +02001#
2# Copyright (c) 2020-2022 Arm Limited.
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6# Licensed under the Apache License, Version 2.0 (the License); you may
7# not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an AS IS BASIS, WITHOUT
14# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18
19add_library(message_handler_lib STATIC)
20
21target_include_directories(message_handler_lib PUBLIC include
Davide Grohmann06f954b2022-06-16 13:40:15 +020022 PRIVATE ${LINUX_DRIVER_STACK_PATH}/kernel)
Davide Grohmann144b2d22022-05-31 15:24:02 +020023
Davide Grohmann06f954b2022-06-16 13:40:15 +020024target_link_libraries(message_handler_lib
25 PUBLIC
26 ethosu_mailbox
27 $<$<TARGET_EXISTS:ethosu_core_driver>:ethosu_core_driver>
Davide Grohmann144b2d22022-05-31 15:24:02 +020028 PRIVATE
29 cmsis_device
Davide Grohmann144b2d22022-05-31 15:24:02 +020030 freertos_kernel
31 inference_process
32 tflu)
33
34target_sources(message_handler_lib PRIVATE
35 message_handler.cpp
36 message_queue.cpp
37 core_driver_mutex.cpp
38 freertos_allocator.cpp)