X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=libempathy-gtk%2FMakefile.am;h=fc0396615b14d3a6b25ef86bbf3fd163ebade98a;hp=b18845a17894a2183fb98eb212edf8ea9e54ead7;hb=33207a87645bf45e9ead5d16dbd94715420882b3;hpb=ae195f5e93d0f92e0c7714b5b27be8d1740803aa diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am index b18845a1..fc039661 100644 --- a/libempathy-gtk/Makefile.am +++ b/libempathy-gtk/Makefile.am @@ -1,77 +1,207 @@ AM_CPPFLAGS = \ -I. \ -I$(top_srcdir) \ + -DDATADIR=\""$(datadir)"\" \ $(EMPATHY_CFLAGS) \ $(WARN_CFLAGS) -AM_LDFLAGS = \ - $(top_builddir)/libempathy/libempathy.la \ - $(EMPATHY_LIBS) - -noinst_LTLIBRARIES = libempathy-gtk.la - -libempathy_gtk_la_SOURCES = \ - ephy-spinner.c ephy-spinner.h \ - empathy-images.h \ - empathy-main-window.c empathy-main-window.h \ - gossip-accounts-dialog.c gossip-accounts-dialog.h \ - gossip-account-widget-generic.c gossip-account-widget-generic.h \ - gossip-account-widget-jabber.c gossip-account-widget-jabber.h \ - gossip-profile-chooser.c gossip-profile-chooser.h \ - gossip-cell-renderer-expander.c gossip-cell-renderer-expander.h \ - gossip-cell-renderer-text.c gossip-cell-renderer-text.h \ - gossip-spell.c gossip-spell.h \ - gossip-contact-groups.c gossip-contact-groups.h \ - gossip-contact-list.c gossip-contact-list.h \ - gossip-preferences.c gossip-preferences.h \ - gossip-theme-manager.c gossip-theme-manager.h \ - gossip-chat.c gossip-chat.h \ - gossip-chat-view.c gossip-chat-view.h \ - gossip-chat-window.c gossip-chat-window.h \ - gossip-private-chat.c gossip-private-chat.h \ - gossip-geometry.c gossip-geometry.h \ - gossip-status-presets.c gossip-status-presets.h \ - gossip-presence-chooser.c gossip-presence-chooser.h \ - gossip-ui-utils.c gossip-ui-utils.h - -libempathy_gtk_includedir = $(includedir)/empathy/ +BUILT_SOURCES = \ + empathy-gtk-marshal.h \ + empathy-gtk-marshal.c \ + empathy-gtk-marshal.list \ + empathy-gtk-enum-types.h \ + empathy-gtk-enum-types.c + +lib_LTLIBRARIES = libempathy-gtk.la + +libempathy_gtk_la_SOURCES = \ + ephy-spinner.c ephy-spinner.h \ + empathy-main-window.c \ + empathy-status-icon.c \ + empathy-conf.c \ + empathy-contact-widget.c \ + empathy-contact-dialogs.c \ + empathy-accounts-dialog.c \ + empathy-account-widget.c \ + empathy-account-widget-irc.c \ + empathy-profile-chooser.c \ + empathy-cell-renderer-expander.c \ + empathy-cell-renderer-text.c \ + empathy-cell-renderer-activatable.c \ + empathy-spell.c \ + empathy-spell-dialog.c \ + empathy-contact-list-store.c \ + empathy-contact-list-view.c \ + empathy-preferences.c \ + empathy-theme.c \ + empathy-theme-boxes.c \ + empathy-theme-irc.c \ + empathy-theme-manager.c \ + empathy-smiley-manager.c \ + empathy-chat-window.c \ + empathy-chat.c \ + empathy-chat-view.c \ + empathy-private-chat.c \ + empathy-group-chat.c \ + empathy-geometry.c \ + empathy-presence-chooser.c \ + empathy-about-dialog.c \ + empathy-account-chooser.c \ + empathy-new-chatroom-dialog.c \ + empathy-chatrooms-window.c \ + empathy-log-window.c \ + empathy-call-window.c \ + empathy-avatar-chooser.c \ + empathy-avatar-image.c \ + empathy-ui-utils.c \ + empathy-new-message-dialog.c \ + empathy-irc-network-dialog.c \ + totem-subtitle-encoding.c totem-subtitle-encoding.h + +# do not distribute generated files +nodist_libempathy_gtk_la_SOURCES =\ + $(BUILT_SOURCES) + +libempathy_gtk_la_LIBADD = \ + $(EMPATHY_LIBS) \ + $(top_builddir)/libempathy/libempathy.la + +libempathy_gtk_la_LDFLAGS = \ + -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \ + -export-symbols-regex ^empathy_ + +libempathy_gtk_headers = \ + empathy-images.h \ + empathy-main-window.h \ + empathy-status-icon.h \ + empathy-conf.h \ + empathy-contact-widget.h \ + empathy-contact-dialogs.h \ + empathy-accounts-dialog.h \ + empathy-account-widget.h \ + empathy-account-widget-irc.h \ + empathy-profile-chooser.h \ + empathy-cell-renderer-expander.h \ + empathy-cell-renderer-text.h \ + empathy-cell-renderer-activatable.h \ + empathy-spell.h \ + empathy-spell-dialog.h \ + empathy-contact-list-store.h \ + empathy-contact-list-view.h \ + empathy-preferences.h \ + empathy-theme.h \ + empathy-theme-boxes.h \ + empathy-theme-irc.h \ + empathy-theme-manager.h \ + empathy-smiley-manager.h \ + empathy-chat-window.h \ + empathy-chat.h \ + empathy-chat-view.h \ + empathy-private-chat.h \ + empathy-group-chat.h \ + empathy-geometry.h \ + empathy-presence-chooser.h \ + empathy-about-dialog.h \ + empathy-account-chooser.h \ + empathy-new-chatroom-dialog.h \ + empathy-chatrooms-window.h \ + empathy-log-window.h \ + empathy-call-window.h \ + empathy-avatar-chooser.h \ + empathy-avatar-image.h \ + empathy-ui-utils.h \ + empathy-new-message-dialog.h \ + empathy-irc-network-dialog.h + +libempathy_gtk_includedir = $(includedir)/libempathy-gtk/ +libempathy_gtk_include_HEADERS = \ + $(libempathy_gtk_headers) \ + empathy-gtk-enum-types.h gladedir = $(datadir)/empathy glade_DATA = \ empathy-main-window.glade \ - gossip-preferences.glade \ - gossip-presence-chooser.glade \ - gossip-accounts-dialog.glade \ - gossip-account-widget-jabber.glade \ - gossip-chat.glade - -dtddir = $(datadir)/empathy -dtd_DATA = \ - gossip-status-presets.dtd \ - gossip-contact-groups.dtd - -schemasdir = $(GCONF_SCHEMA_FILE_DIR) -schemas_in_files = empathy.schemas.in -schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) -@INTLTOOL_SCHEMAS_RULE@ - -if GCONF_SCHEMAS_INSTALL -install-data-local: - if test -z "$(DESTDIR)" ; then \ - for p in $(schemas_DATA) ; do \ - GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \ - done \ + empathy-status-icon.glade \ + empathy-contact-widget.glade \ + empathy-contact-dialogs.glade \ + empathy-preferences.glade \ + empathy-presence-chooser.glade \ + empathy-accounts-dialog.glade \ + empathy-account-widget-jabber.glade \ + empathy-account-widget-msn.glade \ + empathy-account-widget-salut.glade \ + empathy-account-widget-irc.glade \ + empathy-new-chatroom-dialog.glade \ + empathy-group-chat.glade \ + empathy-chatrooms-window.glade \ + empathy-spell-dialog.glade \ + empathy-log-window.glade \ + empathy-call-window.glade \ + empathy-chat.glade \ + empathy-new-message-dialog.glade + +empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am + ( cd $(srcdir) && \ + sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \ + $(libempathy_gtk_la_SOURCES) ) \ + | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp + if cmp -s $@.tmp $@; then \ + rm $@.tmp; \ + else \ + mv $@.tmp $@; \ fi -else -install-data-local: -endif -EXTRA_DIST = \ - $(glade_DATA) \ - $(dtd_DATA) \ - $(schemas_in_files) \ - $(schemas_DATA) +%-marshal.h: %-marshal.list Makefile + $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h + +%-marshal.c: %-marshal.list Makefile + echo "#include \"empathy-gtk-marshal.h\"" > $@ && \ + $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c + +empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h + @true +stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers) + (cd $(srcdir) \ + && glib-mkenums \ + --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \ + --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \ + --fhead "#include \n\n" \ + --fhead "G_BEGIN_DECLS\n\n" \ + --ftail "G_END_DECLS\n\n" \ + --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \ + --fprod "#include \n" \ + --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ + --eprod "GType @enum_name@_get_type (void);\n" \ + $(libempathy_gtk_headers) ) > xgen-gth \ + && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \ + && rm -f xgen-gth \ + && echo timestamp > $(@F) -DISTCLEANFILES = \ - $(schemas_DATA) +empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers) + (cd $(srcdir) \ + && glib-mkenums \ + --fhead "#include \n" \ + --fhead "#include \n" \ + --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \ + --fprod "\n/* enumerations from \"@filename@\" */" \ + --vhead "static const G@Type@Value _@enum_name@_values[] = {" \ + --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ + --vtail " { 0, NULL, NULL }\n};\n\n" \ + --vtail "GType\n@enum_name@_get_type (void)\n{\n" \ + --vtail " static GType type = 0;\n\n" \ + --vtail " if (!type)\n" \ + --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \ + --vtail " return type;\n}\n\n" \ + $(libempathy_gtk_headers) ) > xgen-gtc \ + && cp xgen-gtc $(@F) \ + && rm -f xgen-gtc + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libempathy-gtk.pc + +EXTRA_DIST = \ + $(glade_DATA) +CLEANFILES = \ + $(BUILT_SOURCES) \ + stamp-empathy-gtk-enum-types.h