From f878024d0babffb6d921e283072e36878ab0eda9 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Wed, 8 Feb 2017 14:57:31 -0800 Subject: [PATCH] Fixed the Android build. Change-Id: Iabb9448b4f161bba465d455c28bb826529649d30 Tested: on Android. --- android/jni/Android.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/android/jni/Android.mk b/android/jni/Android.mk index f5f83f17a..0269dd3f2 100755 --- a/android/jni/Android.mk +++ b/android/jni/Android.mk @@ -24,7 +24,9 @@ LOCAL_PATH := $(call realpath-portable,$(LOCAL_PATH)) include $(CLEAR_VARS) LOCAL_MODULE := flatbuffers LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include -LOCAL_EXPORT_CPPFLAGS := -std=c++11 -fexceptions -Wall -Wno-literal-suffix +LOCAL_EXPORT_CPPFLAGS := -std=c++11 -fexceptions -Wall \ + -DFLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE + include $(BUILD_STATIC_LIBRARY) # static library that additionally includes text parsing/generation/reflection @@ -34,7 +36,8 @@ LOCAL_MODULE := flatbuffers_extra LOCAL_SRC_FILES := src/idl_parser.cpp \ src/idl_gen_text.cpp \ src/reflection.cpp \ - src/util.cpp + src/util.cpp \ + src/code_generators.cpp LOCAL_STATIC_LIBRARIES := flatbuffers include $(BUILD_STATIC_LIBRARY)