From 3ba8eed60aa2997a2894c27b5a6e53186101369e Mon Sep 17 00:00:00 2001 From: Amey Inamdar Date: Fri, 20 Jul 2018 18:05:31 +0530 Subject: [PATCH] protobuf-c : Added Google's protocol buffer C library as sub-module Source https://github.com/protobuf-c/protobuf-c Co-Authored-By: Amey Inamdar Co-Authored-By: Anurag Kar --- .gitmodules | 4 ++++ components/protobuf-c/CMakeLists.txt | 4 ++++ components/protobuf-c/component.mk | 8 ++++++++ components/protobuf-c/protobuf-c | 1 + tools/ci/mirror-list.txt | 1 + 5 files changed, 18 insertions(+) create mode 100644 components/protobuf-c/CMakeLists.txt create mode 100644 components/protobuf-c/component.mk create mode 160000 components/protobuf-c/protobuf-c diff --git a/.gitmodules b/.gitmodules index 164d2ce98d..12672aae1e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -57,3 +57,7 @@ [submodule "components/mqtt/esp-mqtt"] path = components/mqtt/esp-mqtt url = https://github.com/espressif/esp-mqtt.git + +[submodule "components/protobuf-c/protobuf-c"] + path = components/protobuf-c/protobuf-c + url = https://github.com/protobuf-c/protobuf-c diff --git a/components/protobuf-c/CMakeLists.txt b/components/protobuf-c/CMakeLists.txt new file mode 100644 index 0000000000..1c9a3ffc3f --- /dev/null +++ b/components/protobuf-c/CMakeLists.txt @@ -0,0 +1,4 @@ +set(COMPONENT_ADD_INCLUDEDIRS protobuf-c) +set(COMPONENT_SRCS "protobuf-c/protobuf-c/protobuf-c.c") + +register_component() diff --git a/components/protobuf-c/component.mk b/components/protobuf-c/component.mk new file mode 100644 index 0000000000..a8c4900ab2 --- /dev/null +++ b/components/protobuf-c/component.mk @@ -0,0 +1,8 @@ +# +# Component Makefile +# +COMPONENT_ADD_INCLUDEDIRS := protobuf-c + +COMPONENT_SRCDIRS := protobuf-c/protobuf-c + +COMPONENT_SUBMODULES += protobuf-c diff --git a/components/protobuf-c/protobuf-c b/components/protobuf-c/protobuf-c new file mode 160000 index 0000000000..dac1a65fea --- /dev/null +++ b/components/protobuf-c/protobuf-c @@ -0,0 +1 @@ +Subproject commit dac1a65feac4ad72f612aab99f487056fbcf5c1a diff --git a/tools/ci/mirror-list.txt b/tools/ci/mirror-list.txt index 621a03b4cd..b015e61cb7 100644 --- a/tools/ci/mirror-list.txt +++ b/tools/ci/mirror-list.txt @@ -15,3 +15,4 @@ components/lwip/lwip @GENERAL_MIRROR_SERVER@/idf/ third-party/mruby @GENERAL_MIRROR_SERVER@/idf/mruby.git ALLOW_TO_SYNC_FROM_PUBLIC third-party/neverbleed @GENERAL_MIRROR_SERVER@/idf/neverbleed.git ALLOW_TO_SYNC_FROM_PUBLIC components/mqtt/esp-mqtt @GENERAL_MIRROR_SERVER@/idf/esp-mqtt.git ALLOW_TO_SYNC_FROM_PUBLIC +components/protobuf-c/protobuf-c @GENERAL_MIRROR_SERVER@/idf/protobuf-c.git ALLOW_TO_SYNC_FROM_PUBLIC