Commit 00928ac1 authored by Colomban Wendling's avatar Colomban Wendling

Add custom marshal generator.

parent 027546bf
......@@ -19,6 +19,7 @@ AC_SUBST(ovccincludedir)
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
AC_CHECK_PROGS([GLIB_GENMARSHAL], [glib-genmarshal], [NONE])
AC_CHECK_PROGS([GLIB_MKENUMS], [glib-mkenums], [NONE])
# check for gtk-doc
......
......@@ -3,6 +3,7 @@ noinst_PROGRAMS = test
libovcc_la_CPPFLAGS = -DG_LOG_DOMAIN=\"libovcc\"
libovcc_la_SOURCES = enumtypes.c \
ovcc-marshal.c \
board.c \
pawn.c \
player.c \
......@@ -33,3 +34,11 @@ enumtypes.c: $(ovccinclude_HEADERS) enumtypes.c.template enumtypes.h
$(AM_V_GEN) \
( cd $(srcdir) && $(GLIB_MKENUMS) --template $@.template \
$(ovccinclude_HEADERS) | sed 's/o_vcc_/ovcc_/g' ) > $@
ovcc-marshal.h: ovcc-marshal.list
$(AM_V_GEN) \
$(GLIB_GENMARSHAL) $< --header --prefix=_ovcc_marshal > $@
ovcc-marshal.c: ovcc-marshal.list ovcc-marshal.h
$(AM_V_GEN) \
( echo '#include "ovcc-marshal.h"' && \
$(GLIB_GENMARSHAL) $< --body --prefix=_ovcc_marshal ) > $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment