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:
parent
9de6047097
commit
71d9f361ee
9
pkg/flatbuffers/Makefile
Normal file
9
pkg/flatbuffers/Makefile
Normal 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)
|
1
pkg/flatbuffers/Makefile.dep
Normal file
1
pkg/flatbuffers/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
USEMODULE += cpp11-compat
|
5
pkg/flatbuffers/Makefile.flatbuffers
Normal file
5
pkg/flatbuffers/Makefile.flatbuffers
Normal file
@ -0,0 +1,5 @@
|
||||
MODULE = flatbuffers
|
||||
|
||||
NO_AUTO_SRC := 1
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
11
pkg/flatbuffers/Makefile.include
Normal file
11
pkg/flatbuffers/Makefile.include
Normal 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
8
pkg/flatbuffers/doc.txt
Normal 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/
|
||||
*/
|
Loading…
Reference in New Issue
Block a user