summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-08-20 17:34:28 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-08-20 17:34:28 -0500
commitace5147f4f8eb651c0d9e83f1fc710118f239ce2 (patch)
tree4045e2a5b0f3b9a8b2720185c99f15e7de3e9cd4
parent105ed49aca83e88a4f8e11d0815e2f275bd8939e (diff)
ios does not seems to inherit form macos, so add a yacc rule there too
-rw-r--r--solenv/gbuild/platform/ios.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/ios.mk b/solenv/gbuild/platform/ios.mk
index 1039497c1c7e..7621ff051f0b 100644
--- a/solenv/gbuild/platform/ios.mk
+++ b/solenv/gbuild/platform/ios.mk
@@ -45,6 +45,7 @@ gb_GCCP := $(CC)
gb_AR := ar
gb_AWK := awk
gb_CLASSPATHSEP := :
+gb_YACC := bison
gb_OSDEFS := \
-D$(OS) \
@@ -134,6 +135,16 @@ define gb_Helper_convert_native
$(1)
endef
+# YaccObject class
+
+define gb_YaccObject__command
+$(call gb_Output_announce,$(2),$(true),YAC,3)
+$(call gb_Helper_abbreviate_dirs,\
+ mkdir -p $(dir $(3)) && \
+ $(gb_YACC) $(T_YACCFLAGS) --defines=$(4) -o $(3) $(1) )
+
+endef
+
# CObject class