2024-05-15 06:53:04 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2024-01-28 23:16:09 -05:00
|
|
|
|
2024-05-15 06:53:04 -04:00
|
|
|
set(srcs "esp_cam_ctlr.c" "dvp_share_ctrl.c")
|
|
|
|
|
|
|
|
set(includes "include" "interface")
|
|
|
|
|
|
|
|
set(requires "esp_driver_isp")
|
|
|
|
|
|
|
|
set(priv_requires "esp_driver_gpio")
|
2024-01-28 23:16:09 -05:00
|
|
|
|
|
|
|
if(CONFIG_SOC_MIPI_CSI_SUPPORTED)
|
|
|
|
list(APPEND srcs "csi/src/esp_cam_ctlr_csi.c")
|
2024-05-15 06:53:04 -04:00
|
|
|
list(APPEND includes "csi/include")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_SOC_ISP_DVP_SUPPORTED)
|
|
|
|
list(APPEND srcs "isp_dvp/src/esp_cam_ctlr_isp_dvp.c")
|
|
|
|
list(APPEND includes "isp_dvp/include")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT ${target} STREQUAL "linux")
|
|
|
|
list(APPEND requires esp_mm)
|
2024-01-28 23:16:09 -05:00
|
|
|
endif()
|
|
|
|
|
2024-05-24 03:53:11 -04:00
|
|
|
if(CONFIG_SOC_LCDCAM_CAM_SUPPORTED)
|
|
|
|
list(APPEND srcs "dvp/src/esp_cam_ctlr_dvp_gdma.c" "dvp/src/esp_cam_ctlr_dvp_cam.c")
|
|
|
|
list(APPEND includes "dvp/include")
|
|
|
|
list(APPEND priv_include_dirs "dvp/private_include")
|
|
|
|
endif()
|
|
|
|
|
2024-01-28 23:16:09 -05:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2024-05-15 06:53:04 -04:00
|
|
|
INCLUDE_DIRS ${includes}
|
2024-05-24 03:53:11 -04:00
|
|
|
PRIV_INCLUDE_DIRS ${priv_include_dirs}
|
2024-05-15 06:53:04 -04:00
|
|
|
REQUIRES ${requires}
|
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2024-01-28 23:16:09 -05:00
|
|
|
)
|