2018-07-30 12:06:48 -04:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS include/common
|
|
|
|
include/security
|
|
|
|
include/transports)
|
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS proto-c src/common src/simple_ble)
|
|
|
|
set(COMPONENT_SRCS "src/common/protocomm.c"
|
|
|
|
"src/security/security0.c"
|
|
|
|
"src/security/security1.c"
|
|
|
|
"proto-c/constants.pb-c.c"
|
|
|
|
"proto-c/sec0.pb-c.c"
|
|
|
|
"proto-c/sec1.pb-c.c"
|
|
|
|
"proto-c/session.pb-c.c"
|
|
|
|
"src/transports/protocomm_console.c"
|
|
|
|
"src/transports/protocomm_httpd.c")
|
|
|
|
|
2019-04-27 23:27:30 -04:00
|
|
|
set(COMPONENT_REQUIRES protobuf-c bt)
|
|
|
|
set(COMPONENT_PRIV_REQUIRES mbedtls console esp_http_server)
|
2018-07-30 12:06:48 -04:00
|
|
|
|
|
|
|
if(CONFIG_BT_ENABLED)
|
2019-05-02 09:36:06 -04:00
|
|
|
if(CONFIG_BT_BLUEDROID_ENABLED)
|
2018-07-30 12:06:48 -04:00
|
|
|
list(APPEND COMPONENT_SRCS
|
|
|
|
"src/simple_ble/simple_ble.c"
|
|
|
|
"src/transports/protocomm_ble.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
register_component()
|