]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Video playback fullscreen mode
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/shave.mk
2
3 AM_CPPFLAGS =                                           \
4         -I$(top_srcdir)                                 \
5         $(EMPATHY_CFLAGS)                               \
6         $(LIBNOTIFY_CFLAGS)                             \
7         $(WARN_CFLAGS)                                  \
8         $(DISABLE_DEPRECATED)
9
10 LDADD =                                                         \
11         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
12         $(top_builddir)/libempathy/libempathy.la                \
13         $(top_builddir)/extensions/libemp-extensions.la         \
14         $(LIBNOTIFY_LIBS)                                       \
15         $(EMPATHY_LIBS)
16
17 bin_PROGRAMS =                  \
18         empathy                 \
19         empathy-logs
20
21 BUILT_SOURCES= \
22         empathy-tube-dispatch-enumtypes.h \
23         empathy-tube-dispatch-enumtypes.c
24
25 empathy_SOURCES =                                                       \
26         bacon-message-connection.c bacon-message-connection.h           \
27         empathy.c                                                       \
28         empathy-about-dialog.c empathy-about-dialog.h                   \
29         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
30         empathy-call-window.c empathy-call-window.h                     \
31         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h                       \
32         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
33         empathy-chat-window.c empathy-chat-window.h                     \
34         empathy-event-manager.c empathy-event-manager.h                 \
35         empathy-ft-manager.c empathy-ft-manager.h                       \
36         empathy-import-dialog.c empathy-import-dialog.h                 \
37         empathy-import-pidgin.c empathy-import-pidgin.h                 \
38         empathy-main-window.c empathy-main-window.h                     \
39         empathy-misc.c empathy-misc.h                                   \
40         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
41         empathy-preferences.c empathy-preferences.h                     \
42         empathy-sidebar.c empathy-sidebar.h                     \
43         empathy-status-icon.c empathy-status-icon.h                     \
44         empathy-tube-dispatch.c empathy-tube-dispatch.h                 \
45         ephy-spinner.c ephy-spinner.h
46
47 nodist_empathy_SOURCES = $(BUILT_SOURCES)
48
49 empathy_logs_SOURCES = empathy-logs.c
50
51 uidir = $(datadir)/empathy
52 ui_DATA =                                       \
53         empathy-accounts-dialog.ui              \
54         empathy-call-window.ui                  \
55         empathy-call-window-fullscreen.ui                       \
56         empathy-chatrooms-window.ui             \
57         empathy-chat-window.ui                  \
58         empathy-ft-manager.ui                   \
59         empathy-import-dialog.ui                \
60         empathy-main-window.ui                  \
61         empathy-new-chatroom-dialog.ui          \
62         empathy-preferences.ui                  \
63         empathy-status-icon.ui
64
65 dist_man_MANS =                 \
66         empathy.1
67
68 # rules for making the glib enum objects
69 %-enumtypes.h: %.h Makefile.in
70         $(QUIET_GEN)glib-mkenums \
71         --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
72         --fprod "/* enumerations from \"@filename@\" */\n" \
73         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
74         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
75         $< > $@
76
77 %-enumtypes.c: %.h Makefile.in
78         $(QUIET_GEN)glib-mkenums \
79         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
80         --fprod "\n/* enumerations from \"@filename@\" */" \
81         --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[] = {"     \
82         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
83         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
84         $< > $@
85
86 EXTRA_DIST =                    \
87         $(autostart_DATA)       \
88         $(ui_DATA)
89
90 CLEANFILES = $(BUILT_SOURCES)
91