-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathfiles.cmake
More file actions
31 lines (25 loc) · 855 Bytes
/
files.cmake
File metadata and controls
31 lines (25 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
get_filename_component(frogfs_DIR ${CMAKE_CURRENT_LIST_DIR}/.. ABSOLUTE CACHE)
set(libfrogfs_SRC
${frogfs_DIR}/src/frogfs.c
${frogfs_DIR}/src/decomp_raw.c
)
set(libfrogfs_INC
${frogfs_DIR}/include
)
if ("${CONFIG_FROGFS_USE_HEATSHRINK}" STREQUAL "y")
set(heatshrink_DIR ${frogfs_DIR}/third-party/heatshrink)
list(APPEND libfrogfs_SRC ${frogfs_DIR}/src/decomp_heatshrink.c)
list(APPEND libfrogfs_SRC ${heatshrink_DIR}/heatshrink_decoder.c)
list(APPEND libfrogfs_INC ${heatshrink_DIR})
endif()
if ("${CONFIG_FROGFS_USE_MINIZ}" STREQUAL "y")
list(APPEND libfrogfs_SRC ${frogfs_DIR}/src/decomp_miniz.c)
endif()
if ("${CONFIG_FROGFS_USE_ZLIB}" STREQUAL "y")
list(APPEND libfrogfs_SRC ${frogfs_DIR}/src/decomp_zlib.c)
endif()
if(ESP_PLATFORM)
list(APPEND libfrogfs_SRC
${frogfs_DIR}/src/vfs.c
)
endif()