aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/.cvsignore2
-rw-r--r--calendar/cal-util/Makefile.am18
-rw-r--r--calendar/cal-util/cal-util-marshal.list2
3 files changed, 22 insertions, 0 deletions
diff --git a/calendar/cal-util/.cvsignore b/calendar/cal-util/.cvsignore
index 9f93120f8a..fdcaeeafc5 100644
--- a/calendar/cal-util/.cvsignore
+++ b/calendar/cal-util/.cvsignore
@@ -5,3 +5,5 @@ Makefile
*.lo
*.la
test-recur
+cal-util-marshal.c
+cal-util-marshal.h
diff --git a/calendar/cal-util/Makefile.am b/calendar/cal-util/Makefile.am
index 40ad034cf8..f54316e258 100644
--- a/calendar/cal-util/Makefile.am
+++ b/calendar/cal-util/Makefile.am
@@ -20,6 +20,8 @@ lib_LTLIBRARIES = libcal-util.la
privlib_LTLIBRARIES = libcal-util-static.la
libcal_util_la_SOURCES = \
+ cal-util-marshal.c \
+ cal-util-marshal.h \
cal-component.c \
cal-recur.c \
cal-util.c \
@@ -33,6 +35,22 @@ libcal_utilinclude_HEADERS = \
cal-util.h \
timeutil.h
+# GLib marshalling cruft
+
+cal-util-marshal.h: cal-util-marshal.list
+ ( @GLIB_GENMARSHAL@ --prefix=cal_util_marshal cal-util-marshal.list --header > cal-util-marshal.tmp \
+ && mv cal-util-marshal.tmp cal-util-marshal.h ) \
+ || ( rm -f cal-util-marshal.tmp && exit 1 )
+
+cal-util-marshal.c: cal-util-marshal.h
+ ( @GLIB_GENMARSHAL@ --prefix=cal_util_marshal cal-util-marshal.list --body > cal-util-marshal.tmp \
+ && mv cal-util-marshal.tmp cal-util-marshal.c ) \
+ || ( rm -f cal-util-marshal.tmp && exit 1 )
+
+MARSHAL_GENERATED = cal-util-marshal.c cal-util-marshal.h
+
+BUILT_SOURCES = $(MARSHAL_GENERATED)
+
#
# static library for use in conduits' shared libraries
#
diff --git a/calendar/cal-util/cal-util-marshal.list b/calendar/cal-util/cal-util-marshal.list
new file mode 100644
index 0000000000..cc9097d75d
--- /dev/null
+++ b/calendar/cal-util/cal-util-marshal.list
@@ -0,0 +1,2 @@
+NONE:INT,INT
+NONE:ENUM,ENUM