# SRCS is conditional on which board's panel this build targets (see # main/CMakeLists.txt's comment on why REQUIRES/PRIV_REQUIRES itself # can't be) -- an ee02 build still always requires this component (so # its Kconfig menu/include dir exist), but contributes zero object # files/symbols to it, since epd13in3e.c provides the real epd_init() # etc. for that board instead. if(CONFIG_FRAME_PANEL_EE02_13IN3) set(srcs "") else() set(srcs "epd7in3e.c") endif() idf_component_register(SRCS ${srcs} INCLUDE_DIRS "include" PRIV_REQUIRES esp_driver_spi esp_driver_gpio)