2019-04-28 03:38:23 -04:00
|
|
|
set(include_dirs include/common
|
|
|
|
include/security
|
|
|
|
include/transports)
|
|
|
|
set(priv_include_dirs proto-c src/common src/simple_ble)
|
2019-06-21 02:29:32 -04:00
|
|
|
set(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")
|
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)
|
2019-04-28 03:38:23 -04:00
|
|
|
list(APPEND srcs
|
2018-07-30 12:06:48 -04:00
|
|
|
"src/simple_ble/simple_ble.c"
|
|
|
|
"src/transports/protocomm_ble.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-04-28 03:38:23 -04:00
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS "${include_dirs}"
|
|
|
|
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
|
|
|
|
PRIV_REQUIRES protobuf-c mbedtls console esp_http_server bt)
|