From 69dae32776ef2915ed51b78771cb42f4f4b83c4c Mon Sep 17 00:00:00 2001 From: Alex Ames Date: Mon, 9 Feb 2015 15:18:38 -0800 Subject: [PATCH] Call $(strip) on parameters so newlines work. Added a call to $(strip) to the parameters of `flatbuffers_header_build_rules` so that newlines can be used when passing arguments to it. Change-Id: Ie2149acebcef91d28ce2cb4bfd204a209b4c4e2f --- android/jni/include.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/android/jni/include.mk b/android/jni/include.mk index d1a373cfa..3ce49f200 100644 --- a/android/jni/include.mk +++ b/android/jni/include.mk @@ -162,10 +162,12 @@ endef # $(MY_PROJ_SCHEMA_INCLUDE_DIRS),$(LOCAL_SRC_FILES)) define flatbuffers_header_build_rules $(foreach schema,$(1),\ - $(call flatbuffers_header_build_rule,$(schema),$(2),$(3),$(4)))\ -$(foreach src,$(5),\ + $(call flatbuffers_header_build_rule,\ + $(schema),$(strip $(2)),$(strip $(3)),$(strip $(4))))\ +$(foreach src,$(strip $(5)),\ $(eval $(LOCAL_PATH)/$$(src): \ - $(foreach schema,$(1),$(call flatbuffers_fbs_to_h,$(2),$(3),$(schema))))) + $(foreach schema,$(strip $(1)),\ + $(call flatbuffers_fbs_to_h,$(strip $(2)),$(strip $(3)),$(schema))))) endef endif # FLATBUFFERS_INCLUDE_MK_