aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2019-06-16 22:23:37 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-17 20:06:36 +0200
commit865883f57527fb9d12c3c3a0871acd8d9ee403af (patch)
tree5b0e526837cef4ed97c1bf0c75ca52225275972d
parent10c7b5acec50c56c5ef5f31ecfbed23c24166d49 (diff)
downloadbuildroot-865883f57527fb9d12c3c3a0871acd8d9ee403af.tar.gz
buildroot-865883f57527fb9d12c3c3a0871acd8d9ee403af.tar.bz2
package/flatbuffers: enable host build
Host version of flatc compiler is needed for Kodi 18.x: https://github.com/xbmc/xbmc/blob/master/cmake/modules/FindFlatBuffers.cmake#L51 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/flatbuffers/flatbuffers.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/flatbuffers/flatbuffers.mk b/package/flatbuffers/flatbuffers.mk
index 8252a1616c..3664cc79cb 100644
--- a/package/flatbuffers/flatbuffers.mk
+++ b/package/flatbuffers/flatbuffers.mk
@@ -20,4 +20,14 @@ else
FLATBUFFERS_CONF_OPTS += -DFLATBUFFERS_BUILD_SHAREDLIB=ON
endif
+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
+
$(eval $(cmake-package))
+$(eval $(host-cmake-package))