~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to glib-gen.mak

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# these are the variables your Makefile.am should set
2
 
# the example is based on the colorbalance interface
3
 
 
4
 
#glib_enum_headers=$(colorbalance_headers)
5
 
#glib_enum_output=gst-color-balance-enumtypes
6
 
#glib_enum_define=GST_COLOR_BALANCE
7
 
#glib_enum_prefix=gst_color_balance
8
 
 
9
 
# these are all the rules generating the relevant files
10
 
%-marshal.h: %-marshal.list
11
 
        $(AM_V_GEN) glib-genmarshal --header --prefix=$(glib_enum_prefix)_marshal $^ > $*-marshal.h.tmp && \
12
 
        mv $*-marshal.h.tmp $*-marshal.h
13
 
 
14
 
%-marshal.c: %-marshal.list
15
 
        $(AM_V_GEN) echo "#include \"$*-marshal.h\"" >> $*-marshal.c.tmp && \
16
 
        glib-genmarshal --body --prefix=$(glib_enum_prefix)_marshal $^ >> $*-marshal.c.tmp && \
17
 
        mv $*-marshal.c.tmp $*-marshal.c
18
 
 
19
 
$(glib_enum_output).h: $(glib_enum_headers)
20
 
        $(AM_V_GEN) glib-mkenums \
21
 
        --fhead "#ifndef __$(glib_enum_define)_ENUM_TYPES_H__\n#define __$(glib_enum_define)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
22
 
        --fprod "/* enumerations from \"@filename@\" */\n" \
23
 
        --vhead "GType @enum_name@_get_type (void);\n#define E_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
24
 
        --ftail "G_END_DECLS\n\n#endif /* __$(glib_enum_define)_ENUM_TYPES_H__ */" \
25
 
        $^ > $@
26
 
 
27
 
$(glib_enum_output).c: $(glib_enum_headers)
28
 
        @if test "x$(glib_enum_headers)" == "x"; then echo "ERROR: glib_enum_headers is empty, please fix Makefile"; exit 1; fi
29
 
        $(AM_V_GEN) glib-mkenums \
30
 
        --fhead "#include <$<>\n#include \"$(glib_enum_output).h\"" \
31
 
        --fprod "\n/* enumerations from \"@filename@\" */" \
32
 
        --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
33
 
        --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
34
 
        --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
35
 
        $^ > $@
36
 
 
37
 
# a hack rule to make sure .Plo files exist because they get include'd
38
 
# from Makefile's
39
 
.deps/%-marshal.Plo:
40
 
        touch $@
41
 
 
42
 
.deps/$(glib_enum_output).Plo:
43
 
        touch $@