2024-04-08 14:08:23 +02:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
2024-01-29 12:16:09 +08:00
|
|
|
set(srcs "esp_cam_ctlr.c")
|
|
|
|
|
|
|
|
|
|
set(include "include" "interface")
|
|
|
|
|
|
|
|
|
|
if(CONFIG_SOC_MIPI_CSI_SUPPORTED)
|
|
|
|
|
list(APPEND srcs "csi/src/esp_cam_ctlr_csi.c")
|
|
|
|
|
list(APPEND include "csi/include")
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-04-08 14:08:23 +02:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
|
set(priv_requires "")
|
|
|
|
|
else()
|
|
|
|
|
set(priv_requires esp_mm)
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-01-29 12:16:09 +08:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
|
INCLUDE_DIRS ${include}
|
2024-04-08 14:08:23 +02:00
|
|
|
PRIV_REQUIRES "${priv_requires}"
|
2024-01-29 12:16:09 +08:00
|
|
|
)
|