mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-28 02:23:46 +02:00
Add initial version of the Build and release action
This commit is contained in:
@@ -1,6 +1,34 @@
|
||||
idf_component_register(SRCS
|
||||
"Monitoring/CurrentMonitor.cpp"
|
||||
"Monitoring/MonitoringManager.cpp"
|
||||
INCLUDE_DIRS "Monitoring"
|
||||
REQUIRES driver esp_adc Helpers
|
||||
set(
|
||||
requires
|
||||
Helpers
|
||||
)
|
||||
|
||||
if ("$ENV{IDF_TARGET}" STREQUAL "esp32s3")
|
||||
list(APPEND requires
|
||||
driver
|
||||
esp_adc
|
||||
)
|
||||
endif()
|
||||
|
||||
set(
|
||||
source_files
|
||||
""
|
||||
)
|
||||
|
||||
if ("$ENV{IDF_TARGET}" STREQUAL "esp32s3")
|
||||
list(APPEND source_files
|
||||
"Monitoring/CurrentMonitor_esp32s3.cpp"
|
||||
"Monitoring/MonitoringManager_esp32s3.cpp"
|
||||
)
|
||||
else()
|
||||
list(APPEND source_files
|
||||
"Monitoring/CurrentMonitor_esp32.cpp"
|
||||
"Monitoring/MonitoringManager_esp32.cpp"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
idf_component_register(SRCS ${source_files}
|
||||
INCLUDE_DIRS "Monitoring"
|
||||
REQUIRES ${requires}
|
||||
)
|
||||
Reference in New Issue
Block a user