2023-08-28 02:02:08 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
|
|
|
|
2021-05-11 23:26:07 -04:00
|
|
|
set(srcs "src/esp_lcd_common.c"
|
|
|
|
"src/esp_lcd_panel_io.c"
|
2023-08-03 00:31:36 -04:00
|
|
|
"src/esp_lcd_panel_io_i2c_v1.c"
|
|
|
|
"src/esp_lcd_panel_io_i2c_v2.c"
|
2021-05-11 23:26:07 -04:00
|
|
|
"src/esp_lcd_panel_io_spi.c"
|
2021-08-04 08:11:31 -04:00
|
|
|
"src/esp_lcd_panel_nt35510.c"
|
2021-05-11 23:26:07 -04:00
|
|
|
"src/esp_lcd_panel_ssd1306.c"
|
|
|
|
"src/esp_lcd_panel_st7789.c"
|
2022-03-07 05:04:02 -05:00
|
|
|
"src/esp_lcd_panel_ops.c")
|
2021-05-11 23:26:07 -04:00
|
|
|
set(includes "include" "interface")
|
2023-08-03 00:31:36 -04:00
|
|
|
set(priv_requires "esp_mm" "esp_psram")
|
2021-05-11 23:26:07 -04:00
|
|
|
|
2022-03-07 05:04:02 -05:00
|
|
|
if(CONFIG_SOC_I2S_LCD_I80_VARIANT)
|
|
|
|
list(APPEND srcs "src/esp_lcd_panel_io_i2s.c")
|
2023-11-07 08:06:07 -05:00
|
|
|
list(APPEND priv_requires "esp_driver_i2s")
|
2022-03-07 05:04:02 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_SOC_LCDCAM_SUPPORTED)
|
2022-11-25 04:58:58 -05:00
|
|
|
list(APPEND srcs "src/esp_lcd_panel_io_i80.c" "src/esp_lcd_panel_rgb.c")
|
2022-03-07 05:04:02 -05:00
|
|
|
endif()
|
|
|
|
|
2021-05-11 23:26:07 -04:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${includes}
|
2022-03-07 05:04:02 -05:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2023-10-19 02:38:32 -04:00
|
|
|
REQUIRES driver esp_driver_gpio esp_driver_spi
|
2022-03-07 05:04:02 -05:00
|
|
|
LDFRAGMENTS linker.lf)
|