1# Makefile - STLIB SDK
2#
3# Copyright (c) 2016 Linaro Limited
4#
5# SPDX-License-Identifier: Apache-2.0
6
7if(CONFIG_HAS_STLIB)
8
9zephyr_library()
10
11if(CONFIG_VL53L0X)
12zephyr_include_directories(sensor/vl53l0x/api/core/inc
13			   ${PROJECT_SOURCE_DIR}/drivers/sensor/st/vl53l0x)
14zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api.c)
15zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_ranging.c)
16zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_calibration.c)
17zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_core.c)
18zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_strings.c)
19endif()
20
21if(CONFIG_VL53L1X)
22zephyr_include_directories(sensor/vl53l1x/api/core/inc
23			   ${PROJECT_SOURCE_DIR}/drivers/sensor/st/vl53l1x)
24zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api.c)
25zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api_calibration.c)
26zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_wait.c)
27zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_core.c)
28zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api_core.c)
29zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api_preset_modes.c)
30zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_core_support.c)
31zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_register_funcs.c)
32endif()
33
34if(CONFIG_AUDIO_MPXXDTYY)
35zephyr_include_directories(audio/microphone)
36zephyr_library_sources(audio/microphone/OpenPDMFilter.c)
37endif()
38
39endif()
40
41# STMEMSC - Hardware Abstraction Layer for ST sensor
42add_subdirectory_ifdef(CONFIG_HAS_STMEMSC sensor/stmemsc)
43