]> git.0d.be Git - empathy.git/blob - tp-account-widgets/Makefile.am
tp-account-widgets: Move account widgets code in the tp-account-widgets subdir
[empathy.git] / tp-account-widgets / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I$(top_srcdir)/libempathy                      \
6         -I$(top_srcdir)/libempathy-gtk                  \
7         -DDATADIR=\""$(datadir)"\"                      \
8         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
9         -DG_LOG_DOMAIN=\"empathy\"                      \
10         -DGCR_API_SUBJECT_TO_CHANGE                     \
11         $(EMPATHY_CFLAGS)                               \
12         $(WARN_CFLAGS)                                  \
13         $(DISABLE_DEPRECATED)
14
15 BUILT_SOURCES =                                         \
16         empathy-account-widgets-resources.c             \
17         empathy-account-widgets-resources.h             \
18         $(NULL)
19
20 libtp_account_widgets_sources =                 \
21         empathy-account-widget.c                \
22         empathy-account-widget-irc.c            \
23         empathy-account-widget-private.h        \
24         empathy-account-widget-sip.c            \
25         empathy-irc-network-chooser.c           \
26         empathy-irc-network-chooser-dialog.c    \
27         empathy-irc-network-dialog.c            \
28         totem-subtitle-encoding.c               \
29         $(NULL)
30
31 libtp_account_widgets_headers =                 \
32         empathy-account-widget.h                \
33         empathy-account-widget-irc.h            \
34         empathy-account-widget-sip.h            \
35         empathy-irc-network-chooser-dialog.h    \
36         empathy-irc-network-chooser.h           \
37         empathy-irc-network-dialog.h            \
38         totem-subtitle-encoding.h               \
39         $(NULL)
40
41 pkglib_LTLIBRARIES = libtp-account-widgets.la
42
43 # libtp-account-widgets's API is not stable and will never be, so use -release to make the
44 # SONAME of the plugin library change with every Empathy release.
45 libtp_account_widgets_la_LDFLAGS = \
46    -no-undefined \
47    -release $(VERSION) \
48    $(NULL)
49
50 libtp_account_widgets_la_SOURCES =                      \
51         $(libtp_account_widgets_sources)                \
52         $(libtp_account_widgets_headers)                \
53         $(NULL)
54
55 # do not distribute generated files
56 nodist_libtp_account_widgets_la_SOURCES = \
57         $(BUILT_SOURCES)
58
59 check_c_sources = \
60     $(libtp_account_widgets_sources) \
61     $(libtp_account_widgets_headers) \
62     $(NULL)
63 include $(top_srcdir)/tools/check-coding-style.mk
64 check-local: check-coding-style
65
66 account_widgets_ui_files =                      \
67         empathy-account-widget-generic.ui       \
68         empathy-account-widget-jabber.ui        \
69         empathy-account-widget-msn.ui           \
70         empathy-account-widget-sip.ui           \
71         empathy-account-widget-local-xmpp.ui    \
72         empathy-account-widget-irc.ui           \
73         empathy-account-widget-icq.ui           \
74         empathy-account-widget-yahoo.ui         \
75         empathy-account-widget-groupwise.ui     \
76         empathy-account-widget-aim.ui           \
77         $(NULL)
78
79 account_widgets_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/empathy-account-widgets.gresource.xml)
80
81 empathy-account-widgets-resources.c: empathy-account-widgets.gresource.xml $(account_widgets_resource_files)
82         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
83
84 empathy-account-widgets-resources.h: empathy-account-widgets.gresource.xml $(account_widgets_resource_files)
85         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<
86
87 EXTRA_DIST =                                    \
88         empathy-account-widgets.gresource.xml   \
89         $(account_widgets_ui_files)             \
90         $(NULL)
91
92 CLEANFILES =                            \
93         $(BUILT_SOURCES)                \
94         $(NULL)