refactor(protocomm): Make the protocomm proto-c headers public

This commit is contained in:
Laukik Hase 2024-02-28 13:47:08 +05:30
parent f02fadda87
commit 379e02ec9c
No known key found for this signature in database
GPG Key ID: D6F3208C06086AC8
4 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ if(${target} STREQUAL "linux")
endif() endif()
set(include_dirs include) set(include_dirs include)
set(priv_include_dirs proto-c src ../protocomm/proto-c) set(priv_include_dirs proto-c src)
set(srcs "src/esp_local_ctrl.c" set(srcs "src/esp_local_ctrl.c"
"src/esp_local_ctrl_handler.c" "src/esp_local_ctrl_handler.c"
"proto-c/esp_local_ctrl.pb-c.c") "proto-c/esp_local_ctrl.pb-c.c")

View File

@ -7,8 +7,9 @@ endif()
set(include_dirs include/common set(include_dirs include/common
include/security include/security
include/transports include/transports
include/crypto/srp6a) include/crypto/srp6a
set(priv_include_dirs proto-c src/common) proto-c)
set(priv_include_dirs src/common)
set(srcs set(srcs
"src/common/protocomm.c" "src/common/protocomm.c"
"proto-c/constants.pb-c.c" "proto-c/constants.pb-c.c"

View File

@ -1,4 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
PRIV_INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
PRIV_INCLUDE_DIRS "../../proto-c/"
PRIV_REQUIRES cmock mbedtls protocomm protobuf-c test_utils unity) PRIV_REQUIRES cmock mbedtls protocomm protobuf-c test_utils unity)

View File

@ -28,6 +28,6 @@ endif()
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS include INCLUDE_DIRS include
PRIV_INCLUDE_DIRS src proto-c ../protocomm/proto-c PRIV_INCLUDE_DIRS src proto-c
REQUIRES lwip protocomm REQUIRES lwip protocomm
PRIV_REQUIRES protobuf-c bt json esp_timer esp_wifi) PRIV_REQUIRES protobuf-c bt json esp_timer esp_wifi)