2020-12-17 10:21:10 +01:00
|
|
|
set(src_list
|
|
|
|
"interface.c"
|
|
|
|
"interface-main.c"
|
|
|
|
"interface-data.c"
|
|
|
|
"interface-datetime.c"
|
|
|
|
"interface-info.c"
|
|
|
|
"interface-input.c"
|
|
|
|
"interface-label.c"
|
|
|
|
"interface-report.c"
|
|
|
|
"interface-settings.c"
|
|
|
|
"interface-wifi.c")
|
2020-12-12 14:26:08 +01:00
|
|
|
|
2020-12-17 10:21:10 +01:00
|
|
|
set(include_list ".")
|
|
|
|
|
|
|
|
if(CONFIG_ENA_INTERFACE_INPUT_CUSTOM)
|
|
|
|
list(APPEND src_list "custom-input/custom-input.c")
|
|
|
|
list(APPEND include_list "custom-input")
|
|
|
|
elseif(CONFIG_ENA_INTERFACE_M5STICKC OR CONFIG_ENA_INTERFACE_M5STICKC_PLUS)
|
|
|
|
list(APPEND src_list "m5-input/m5-input.c" "m5-mpu6886/mpu6886.c")
|
|
|
|
list(APPEND include_list "m5-input" "m5-mpu6886")
|
2020-12-15 13:12:35 +01:00
|
|
|
elseif(CONFIG_ENA_INTERFACE_TTGO_T_WRISTBAND)
|
2020-12-17 10:21:10 +01:00
|
|
|
list(APPEND src_list "ttgo-input/ttgo-input.c" "ttgo-lsm9ds1/lsm9ds1.c")
|
|
|
|
list(APPEND include_list "ttgo-input" "ttgo-lsm9ds1")
|
2020-12-16 09:15:32 +01:00
|
|
|
else()
|
2020-12-17 10:21:10 +01:00
|
|
|
list(APPEND src_list "dummy.c")
|
2020-12-12 14:26:08 +01:00
|
|
|
endif()
|
|
|
|
|
2020-07-27 16:54:51 +02:00
|
|
|
idf_component_register(
|
|
|
|
SRCS
|
2020-12-17 10:21:10 +01:00
|
|
|
${src_list}
|
|
|
|
INCLUDE_DIRS
|
|
|
|
${include_list}
|
|
|
|
PRIV_REQUIRES
|
|
|
|
"ena"
|
|
|
|
"ena-eke-proxy"
|
|
|
|
"display"
|
|
|
|
"rtc"
|
|
|
|
"wifi-controller"
|
|
|
|
"i2c-main"
|
2020-12-16 09:15:32 +01:00
|
|
|
)
|