2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="flatbuffers"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="23.5.26"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="Apache-2.0"
|
|
|
|
PKG_SITE="https://github.com/google/flatbuffers"
|
|
|
|
PKG_URL="https://github.com/google/flatbuffers/archive/v${PKG_VERSION}.tar.gz"
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_LONGDESC="An efficient cross platform serialization library for games and other memory constrained apps."
|
|
|
|
|
|
|
|
PKG_CMAKE_OPTS_HOST="-DFLATBUFFERS_CODE_COVERAGE=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_TESTS=OFF \
|
|
|
|
-DFLATBUFFERS_INSTALL=ON \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATC=ON \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATHASH=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_GRPCTEST=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_SHAREDLIB=OFF"
|
|
|
|
|
|
|
|
PKG_CMAKE_OPTS_TARGET="-DFLATBUFFERS_CODE_COVERAGE=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_TESTS=OFF \
|
|
|
|
-DFLATBUFFERS_INSTALL=ON \
|
2022-11-01 10:04:06 +00:00
|
|
|
-DFLATBUFFERS_BUILD_FLATLIB=ON \
|
2022-02-05 14:23:32 +00:00
|
|
|
-DFLATBUFFERS_BUILD_FLATC=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_FLATHASH=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_GRPCTEST=OFF \
|
|
|
|
-DFLATBUFFERS_BUILD_SHAREDLIB=OFF"
|
|
|
|
|
|
|
|
pre_configure_host() {
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -std=c++11"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_host() {
|
|
|
|
mkdir -p ${TOOLCHAIN}/bin
|
|
|
|
cp -PR ${PKG_BUILD}/.${HOST_NAME}/flatc ${TOOLCHAIN}/bin
|
|
|
|
}
|