aboutsummaryrefslogtreecommitdiff
path: root/components/service/common/serializer/protobuf/component.cmake
diff options
context:
space:
mode:
authorJulian Hall <julian.hall@arm.com>2020-11-23 18:09:55 +0100
committerGyorgy Szing <Gyorgy.Szing@arm.com>2020-11-27 16:47:03 +0100
commitdf86fcee4f72a719cd56a57e1fbb03105bbfc024 (patch)
tree4ce98279d929b58921dff045b7048a5e57cbd4b1 /components/service/common/serializer/protobuf/component.cmake
parent2dcd69c1c9db918f6b5555468e4678408056b8ec (diff)
downloadtrusted-services-df86fcee4f72a719cd56a57e1fbb03105bbfc024.tar.gz
Add serializer service for protobuf
Implements a serializer service for protobuf using nanopb. Adds external component to fetch nanopb. Change-Id: I31464be0e38d78bdf543e9f30bd51218e935dc9d Signed-off-by: Julian Hall <julian.hall@arm.com>
Diffstat (limited to 'components/service/common/serializer/protobuf/component.cmake')
-rw-r--r--components/service/common/serializer/protobuf/component.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/service/common/serializer/protobuf/component.cmake b/components/service/common/serializer/protobuf/component.cmake
new file mode 100644
index 000000000..b9f8d975e
--- /dev/null
+++ b/components/service/common/serializer/protobuf/component.cmake
@@ -0,0 +1,13 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+ message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+target_sources(${TGT} PRIVATE
+ "${CMAKE_CURRENT_LIST_DIR}/pb_helper.c"
+ )