blob: c17742aa355ee972df22d1864d4878d9f963da85 [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
Kristofer Jonsson8f813b32022-11-23 13:05:47 +010026 ethosu_mailbox
27 $<$<TARGET_EXISTS:ethosu_core_driver>:ethosu_core_driver>
28 inference_process
Davide Grohmann144b2d22022-05-31 15:24:02 +020029 PRIVATE
Kristofer Jonsson8f813b32022-11-23 13:05:47 +010030 cmsis_device
31 freertos_kernel
32 tflu)
Davide Grohmann144b2d22022-05-31 15:24:02 +020033
34target_sources(message_handler_lib PRIVATE
35 message_handler.cpp
36 message_queue.cpp
37 core_driver_mutex.cpp
38 freertos_allocator.cpp)