2020-07-20 17:10:35 +00:00
|
|
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-10-12 11:35:19 +00:00
|
|
|
# List of all storage libraries available.
|
2020-10-22 16:00:21 +00:00
|
|
|
add_library(mbed-storage INTERFACE)
|
2020-10-12 11:35:19 +00:00
|
|
|
|
2020-10-22 16:00:21 +00:00
|
|
|
add_library(mbed-storage-blockdevice INTERFACE)
|
|
|
|
add_library(mbed-storage-dataflash INTERFACE)
|
|
|
|
add_library(mbed-storage-flashiap INTERFACE)
|
|
|
|
add_library(mbed-storage-i2cee INTERFACE)
|
2020-12-21 13:04:12 +00:00
|
|
|
add_library(mbed-storage-ospif INTERFACE)
|
2020-10-22 16:00:21 +00:00
|
|
|
add_library(mbed-storage-qspif INTERFACE)
|
|
|
|
add_library(mbed-storage-sd INTERFACE)
|
|
|
|
add_library(mbed-storage-spif INTERFACE)
|
2020-10-12 11:35:19 +00:00
|
|
|
|
2020-10-22 16:00:21 +00:00
|
|
|
add_library(mbed-storage-filesystem INTERFACE)
|
|
|
|
add_library(mbed-storage-littlefs-v2 INTERFACE)
|
|
|
|
add_library(mbed-storage-littlefs INTERFACE)
|
|
|
|
add_library(mbed-storage-fat INTERFACE)
|
2020-10-12 11:35:19 +00:00
|
|
|
|
2020-10-22 16:00:21 +00:00
|
|
|
add_library(mbed-storage-kvstore INTERFACE)
|
2020-11-13 11:58:50 +00:00
|
|
|
add_library(mbed-storage-tdbstore INTERFACE)
|
|
|
|
add_library(mbed-storage-filesystemstore INTERFACE)
|
|
|
|
add_library(mbed-storage-securestore INTERFACE)
|
|
|
|
add_library(mbed-storage-kv-config INTERFACE)
|
|
|
|
add_library(mbed-storage-direct-access-devicekey INTERFACE)
|
|
|
|
add_library(mbed-storage-kv-global-api INTERFACE)
|
2020-10-12 11:35:19 +00:00
|
|
|
|
2021-05-20 13:13:07 +00:00
|
|
|
if(${CMAKE_CROSSCOMPILING})
|
|
|
|
# The directories below contain optional target libraries
|
|
|
|
add_subdirectory(blockdevice EXCLUDE_FROM_ALL)
|
|
|
|
add_subdirectory(filesystem EXCLUDE_FROM_ALL)
|
|
|
|
add_subdirectory(kvstore EXCLUDE_FROM_ALL)
|
|
|
|
add_subdirectory(platform EXCLUDE_FROM_ALL)
|
|
|
|
else()
|
|
|
|
# Add these subdirectories for the Unit test
|
|
|
|
add_subdirectory(blockdevice)
|
|
|
|
add_subdirectory(kvstore)
|
|
|
|
endif()
|
2020-07-20 17:10:35 +00:00
|
|
|
|
2020-10-22 16:00:21 +00:00
|
|
|
target_include_directories(mbed-storage
|
2020-10-12 11:35:19 +00:00
|
|
|
INTERFACE
|
|
|
|
.
|
|
|
|
)
|