CMakeLists.txt 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. set(srcs "src/esp_lcd_common.c"
  6. "src/esp_lcd_panel_io.c"
  7. "src/esp_lcd_panel_io_i2c_v1.c"
  8. "src/esp_lcd_panel_io_i2c_v2.c"
  9. "src/esp_lcd_panel_io_spi.c"
  10. "src/esp_lcd_panel_nt35510.c"
  11. "src/esp_lcd_panel_ssd1306.c"
  12. "src/esp_lcd_panel_st7789.c"
  13. "src/esp_lcd_panel_ops.c")
  14. set(includes "include" "interface")
  15. set(priv_requires "esp_mm" "esp_psram")
  16. if(CONFIG_SOC_I2S_LCD_I80_VARIANT)
  17. list(APPEND srcs "src/esp_lcd_panel_io_i2s.c")
  18. endif()
  19. if(CONFIG_SOC_LCDCAM_SUPPORTED)
  20. list(APPEND srcs "src/esp_lcd_panel_io_i80.c" "src/esp_lcd_panel_rgb.c")
  21. endif()
  22. idf_component_register(SRCS ${srcs}
  23. INCLUDE_DIRS ${includes}
  24. PRIV_REQUIRES ${priv_requires}
  25. REQUIRES driver esp_driver_gpio esp_driver_spi
  26. LDFRAGMENTS linker.lf)