libtelepathy/src/Makefile.am
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 # Move this back to GENHEADERS once dbus-binding-tool supports 'g' type
       
     2 #    tp-chan-type-contact-search-gen.h
       
     3 
       
     4 GENHEADERS = \
       
     5     tp-connmgr-gen.h \
       
     6     tp-conn-gen.h \
       
     7     tp-chan-gen.h \
       
     8     tp-conn-iface-avatars-gen.h \
       
     9     tp-chan-iface-dtmf-gen.h \
       
    10     tp-chan-iface-group-gen.h \
       
    11     tp-chan-iface-hold-gen.h \
       
    12     tp-chan-iface-password-gen.h \
       
    13     tp-chan-iface-transfer-gen.h \
       
    14     tp-chan-iface-ice-signalling-gen.h \
       
    15     tp-chan-type-contact-list-gen.h \
       
    16     tp-chan-type-room-list-gen.h \
       
    17     tp-chan-type-streamed-media-gen.h \
       
    18     tp-chan-type-text-gen.h \
       
    19     tp-conn-iface-aliasing-gen.h \
       
    20     tp-conn-iface-capabilities-gen.h \
       
    21     tp-conn-iface-contact-info-gen.h \
       
    22     tp-conn-iface-forwarding-gen.h \
       
    23     tp-conn-iface-presence-gen.h \
       
    24     tp-conn-iface-privacy-gen.h \
       
    25     tp-conn-iface-renaming-gen.h \
       
    26     tp-props-iface-gen.h \
       
    27     tp-ch-gen.h \
       
    28     tp-ice-session-handler-gen.h \
       
    29     tp-ice-stream-handler-gen.h \
       
    30     tp-ifaces-signals-marshal.h \
       
    31     tp-chan-signals-marshal.h \
       
    32     tp-conn-signals-marshal.h \
       
    33     tp-connmgr-signals-marshal.h
       
    34 
       
    35 MARSHALLER_SOURCES = \
       
    36     tp-ifaces-signals-marshal.c \
       
    37     tp-chan-signals-marshal.c \
       
    38     tp-conn-signals-marshal.c \
       
    39     tp-connmgr-signals-marshal.c
       
    40 
       
    41 
       
    42 BUILT_SOURCES = \
       
    43     $(GENHEADERS) \
       
    44     $(MARSHALLER_SOURCES)
       
    45 
       
    46 
       
    47 # Correctly clean the generated headers, but keep the xml description
       
    48 CLEANFILES = $(BUILT_SOURCES)
       
    49 #Rule to generate the binding headers
       
    50 %-gen.h: $(top_builddir)/xml/%.xml Makefile.am
       
    51 	dbus-binding-tool --prefix=$* --mode=glib-client $< > $*-gen.h
       
    52 
       
    53 # Create the necessary marshallers for the signals implemented by the
       
    54 # library
       
    55 
       
    56 %-marshal.h: %-marshal.list Makefile.am
       
    57 	glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
       
    58 
       
    59 %-marshal.c: %-marshal.list Makefile.am
       
    60 	glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
       
    61 
       
    62 lib_LTLIBRARIES = libtelepathy.la
       
    63 
       
    64 libtelepathy_la_CFLAGS = $(DBUS_CFLAGS) $(ERROR_CFLAGS) $(GLIB_CFLAGS)
       
    65 libtelepathy_la_LIBADD = $(DBUS_LIBS) $(GLIB_LIBS)
       
    66 libtelepathy_la_LDFLAGS = \
       
    67     -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
       
    68     -export-symbols-regex '^tp_' \
       
    69     -export-dynamic
       
    70 
       
    71 CORESOURCES = \
       
    72 	tp-chan.c \
       
    73 	tp-conn.c \
       
    74 	tp-connmgr.c \
       
    75 	tp-helpers.c \
       
    76 	tp-props-iface.c
       
    77 
       
    78 COREHEADERS = \
       
    79 	tp-chan-ifaces-signal-setters.h \
       
    80 	tp-conn-ifaces-signal-setters.h \
       
    81 	tp-chan.h \
       
    82 	tp-conn.h \
       
    83 	tp-connmgr.h \
       
    84 	tp-constants.h \
       
    85 	tp-helpers.h \
       
    86 	tp-interfaces.h \
       
    87 	tp-props-iface.h
       
    88 
       
    89 libtelepathy_la_SOURCES = \
       
    90 	tp-chan-ifaces-signal-setters.c \
       
    91 	tp-conn-ifaces-signal-setters.c \
       
    92 	$(MARSHALLER_SOURCES) \
       
    93 	$(CORESOURCES) \
       
    94 	$(COREHEADERS)
       
    95 
       
    96 telepathyincdir=$(includedir)/telepathy-1.0/libtelepathy
       
    97 
       
    98 telepathyinc_HEADERS = \
       
    99 	$(COREHEADERS) \
       
   100 	$(GENHEADERS)