2017-12-18 22:10:39 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# flatbuffers
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-07 20:23:07 +02:00
|
|
|
FLATBUFFERS_VERSION = 1.12.0
|
2019-08-31 12:34:56 +02:00
|
|
|
FLATBUFFERS_SITE = $(call github,google,flatbuffers,v$(FLATBUFFERS_VERSION))
|
2017-12-18 22:10:39 +01:00
|
|
|
FLATBUFFERS_LICENSE = Apache-2.0
|
|
|
|
FLATBUFFERS_LICENSE_FILES = LICENSE.txt
|
|
|
|
FLATBUFFERS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
FLATBUFFERS_CONF_OPTS += \
|
|
|
|
-DCMAKE_CXX_FLAGS="-std=c++11" \
|
|
|
|
-DFLATBUFFERS_BUILD_TESTS=OFF
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
FLATBUFFERS_CONF_OPTS += -DFLATBUFFERS_BUILD_SHAREDLIB=OFF
|
|
|
|
else
|
|
|
|
FLATBUFFERS_CONF_OPTS += -DFLATBUFFERS_BUILD_SHAREDLIB=ON
|
|
|
|
endif
|
|
|
|
|
2019-06-16 22:23:37 +02:00
|
|
|
HOST_FLATBUFFERS_CONF_OPTS += \
|
|
|
|
-DCMAKE_CXX_FLAGS="-std=c++11" \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATC=ON \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATHASH=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_GRPCTEST=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_SHAREDLIB=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_TESTS=OFF
|
|
|
|
|
2017-12-18 22:10:39 +01:00
|
|
|
$(eval $(cmake-package))
|
2019-06-16 22:23:37 +02:00
|
|
|
$(eval $(host-cmake-package))
|