summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-08-23 01:20:33 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-08-23 10:37:10 +0300
commit457535e1bb5c9ab6a6726e0c814c8df60f1d4e6d (patch)
tree54a388be67b4d15d9b90e3226fbfc944f578bc4d /solenv
parent68e756de2ec7f9aeb1b6a6a28468745eca114715 (diff)
Add YaccObject class
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/winmingw.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/winmingw.mk b/solenv/gbuild/platform/winmingw.mk
index d4af63131d5c..17e65a7c72fc 100644
--- a/solenv/gbuild/platform/winmingw.mk
+++ b/solenv/gbuild/platform/winmingw.mk
@@ -42,6 +42,7 @@ gb_CXX := $(CXX)
gb_AR := $(shell $(CC) -print-prog-name=ar)
gb_AWK := awk
gb_CLASSPATHSEP := :
+gb_YACC := bison
gb_RC := $(WINDRES)
ifeq ($(USE_MINGW),cygwin)
gb_MINGWLIBDIR := $(COMPATH)/lib/mingw
@@ -222,6 +223,16 @@ $(patsubst $(SRCDIR)%,$(gb_Helper_SRCDIR_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
# We (LibreOffice) support MinGW only for cross-compilation. This is identical to