1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/flatbuffers: add support to RIOT

This commit is contained in:
Alexandre Abadie 2019-11-27 11:54:18 +01:00
parent 9de6047097
commit 71d9f361ee
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
5 changed files with 34 additions and 0 deletions

9
pkg/flatbuffers/Makefile Normal file
View File

@ -0,0 +1,9 @@
PKG_NAME=flatbuffers
PKG_URL=https://github.com/google/flatbuffers
PKG_VERSION=v1.11.0
PKG_LICENSE=Apache2.0
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.$(PKG_NAME)

View File

@ -0,0 +1 @@
USEMODULE += cpp11-compat

View File

@ -0,0 +1,5 @@
MODULE = flatbuffers
NO_AUTO_SRC := 1
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,11 @@
INCLUDES += -I$(PKGDIRBASE)/flatbuffers/include
FLATC ?= flatc
ifneq (0,$(shell which flatc 2>&1 > /dev/null ; echo $$?))
FLATC = $(RIOTTOOLS)/flatc/flatc
$(call target-export-variables,all,FLATC)
endif
# This module requires cpp11 support
CXXEXFLAGS += -std=c++11

8
pkg/flatbuffers/doc.txt Normal file
View File

@ -0,0 +1,8 @@
/**
* @defgroup pkg_flatbuffers FlatBuffers
* @ingroup pkg
* @ingroup sys_serialization
* @brief FlatBuffers: Memory Efficient Serialization Library
*
* @see http://google.github.io/flatbuffers/
*/