# Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
# SPDX-License-Identifier: Apache-2.0

zephyr_include_directories(Include)

if(CONFIG_CMSIS_DSP_HELIUM OR CONFIG_CMSIS_DSP_MVEF OR CONFIG_CMSIS_DSP_SUPPORT)
  include_directories(PrivateInclude)
endif()

add_subdirectory(Source)

# Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
# SPDX-License-Identifier: Apache-2.0

zephyr_include_directories(Include)

if(CONFIG_CMSIS_DSP_HELIUM OR CONFIG_CMSIS_DSP_MVEF OR CONFIG_CMSIS_DSP_SUPPORT)
  include_directories(PrivateInclude)
endif()

add_subdirectory(Source)

zephyr_compile_definitions_ifdef(CONFIG_ARCH_POSIX __GNUC_PYTHON__)

Support compiling on native posix
DSP: Support compiling on native posix

This commit adds support to compile cmsis-dsp
library on the host. The only definition that is
needed is `__GNUC_PYTHON__`.

When this variable is defined, all the relevant
definitions are set in the `arm_math.h` header
file. In addition, in the current commit
of cmsis library, this feature is now part
of its cmake files.
Look at: https://github.com/ARM-software/CMSIS_5/blob/659671ad826fb0a94d2b801719b1f74568378289/CMSIS/DSP/Source/configDsp.cmake

Signed-off-by: Shlomi Vaknin <54c0a9b681c5459019f43c3dc65e0278ef9673d9@gmail.com>
