2017-12-18 22:10:39 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# flatbuffers
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-06-10 16:14:36 +02:00
|
|
|
FLATBUFFERS_VERSION = 23.5.26
|
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
|
2023-05-06 15:47:44 +02:00
|
|
|
FLATBUFFERS_LICENSE_FILES = LICENSE
|
2021-01-11 23:36:44 +01:00
|
|
|
FLATBUFFERS_CPE_ID_VENDOR = google
|
2017-12-18 22:10:39 +01:00
|
|
|
FLATBUFFERS_INSTALL_STAGING = YES
|
2022-07-10 19:53:34 +02:00
|
|
|
FLATBUFFERS_DEPENDENCIES = host-flatbuffers
|
2017-12-18 22:10:39 +01:00
|
|
|
|
|
|
|
FLATBUFFERS_CONF_OPTS += \
|
|
|
|
-DCMAKE_CXX_FLAGS="-std=c++11" \
|
2023-01-27 15:10:46 +01:00
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
2022-07-10 19:53:34 +02:00
|
|
|
-DFLATBUFFERS_BUILD_TESTS=OFF \
|
|
|
|
-DFLATBUFFERS_FLATC_EXECUTABLE=$(HOST_DIR)/bin/flatc
|
2017-12-18 22:10:39 +01:00
|
|
|
|
|
|
|
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))
|