2022-12-29 04:16:28 +01:00
|
|
|
# Update source files and includes as necessary
|
2022-12-14 06:57:30 +01:00
|
|
|
idf_component_register(
|
2022-12-29 04:16:28 +01:00
|
|
|
SRCS
|
|
|
|
"mymod.c"
|
|
|
|
PRIV_INCLUDE_DIRS
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
2022-12-14 06:57:30 +01:00
|
|
|
PRIV_REQUIRES
|
|
|
|
"base_nodemcu"
|
|
|
|
"lua"
|
|
|
|
"platform"
|
|
|
|
)
|
|
|
|
|
2022-12-29 04:16:28 +01:00
|
|
|
# To register the module with NodeMCU, use one of the below functions.
|
|
|
|
# The name given MUST match the first argument to the NODEMCU_MODULE() in
|
|
|
|
# the module's C file.
|
|
|
|
#
|
|
|
|
# For modules with a Kconfig option, use:
|
|
|
|
extmod_register_conditional(MYMOD)
|
|
|
|
# ...and for modules without a Kconfig option, instead use:
|
|
|
|
#extmod_register_unconditional(MYMOD)
|