]> git.0d.be Git - empathy.git/blob - tp-account-widgets/Makefile.am
fa79032f6710d6e2a3c2244fdc816561e4d613e1
[empathy.git] / tp-account-widgets / Makefile.am
1 AM_CPPFLAGS =                                           \
2         $(ERROR_CFLAGS)                                 \
3         -I$(top_srcdir)/libempathy                      \
4         -I$(top_srcdir)/libempathy-gtk                  \
5         -DDATADIR=\""$(datadir)"\"                      \
6         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
7         -DG_LOG_DOMAIN=\"empathy\"                      \
8         -DGCR_API_SUBJECT_TO_CHANGE                     \
9         $(EMPATHY_CFLAGS)                               \
10         $(UDEV_CFLAGS)                                  \
11         $(CHEESE_CFLAGS)                                \
12         $(WARN_CFLAGS)                                  \
13         $(DISABLE_DEPRECATED)
14
15 libtp_account_widgets_LIBADD =                          \
16         $(UDEV_LIBS)                                    \
17         $(CHEESE_LIBS)                          \
18         $(NULL)
19
20 BUILT_SOURCES =                                         \
21         tpaw-account-widgets-resources.c                \
22         tpaw-account-widgets-resources.h                \
23         $(NULL)
24
25 libtp_account_widgets_sources =                 \
26         tpaw-account-settings.c                 \
27         tpaw-account-widget.c                   \
28         tpaw-account-widget-irc.c               \
29         tpaw-account-widget-private.h           \
30         tpaw-account-widget-sip.c               \
31         tpaw-avatar-chooser.c                   \
32         tpaw-builder.c                          \
33         tpaw-calendar-button.c                  \
34         tpaw-camera-monitor.c                   \
35         tpaw-connection-managers.c              \
36         tpaw-contactinfo-utils.c                \
37         tpaw-keyring.c                          \
38         tpaw-irc-network-chooser.c              \
39         tpaw-irc-network-chooser-dialog.c       \
40         tpaw-irc-network-dialog.c               \
41         tpaw-irc-network-manager.c              \
42         tpaw-irc-network.c                      \
43         tpaw-irc-server.c                       \
44         tpaw-live-search.c                      \
45         tpaw-string-parser.c                    \
46         tpaw-time.c                             \
47         tpaw-user-info.c                        \
48         tpaw-utils.c                            \
49         totem-subtitle-encoding.c               \
50         $(NULL)
51
52 libtp_account_widgets_headers =                 \
53         tpaw-account-settings.h                 \
54         tpaw-account-widget.h                   \
55         tpaw-account-widget-irc.h               \
56         tpaw-account-widget-sip.h               \
57         tpaw-avatar-chooser.h                   \
58         tpaw-builder.h                          \
59         tpaw-calendar-button.h                  \
60         tpaw-camera-monitor.h                   \
61         tpaw-connection-managers.h              \
62         tpaw-contactinfo-utils.h                \
63         tpaw-gsettings.h                        \
64         tpaw-images.h                           \
65         tpaw-keyring.h                          \
66         tpaw-irc-network-chooser-dialog.h       \
67         tpaw-irc-network-chooser.h              \
68         tpaw-irc-network-dialog.h               \
69         tpaw-irc-network-manager.h              \
70         tpaw-irc-network.h                      \
71         tpaw-irc-server.h                       \
72         tpaw-live-search.h                      \
73         tpaw-string-parser.h                    \
74         tpaw-time.h                             \
75         tpaw-user-info.h                        \
76         tpaw-utils.h                            \
77         totem-subtitle-encoding.h               \
78         $(NULL)
79
80 nocheck_sources = \
81         cheese-camera-device-monitor.c          \
82         cheese-camera-device-monitor.h          \
83         $(NULL)
84
85 pkglib_LTLIBRARIES = libtp-account-widgets.la
86
87 # libtp-account-widgets's API is not stable and will never be, so use -release to make the
88 # SONAME of the plugin library change with every Empathy release.
89 libtp_account_widgets_la_LDFLAGS = \
90    -no-undefined \
91    -release $(VERSION) \
92    $(NULL)
93
94 libtp_account_widgets_la_SOURCES =                      \
95         $(libtp_account_widgets_sources)                \
96         $(libtp_account_widgets_headers)                \
97         $(nocheck_sources)                              \
98         $(NULL)
99
100 # these are sources that depend on Ubuntu Online Accounts
101 uoa_sources = \
102         tpaw-uoa-utils.c \
103         tpaw-uoa-utils.h \
104         $(NULL)
105
106 if HAVE_UOA
107 libtp_account_widgets_la_SOURCES += $(uoa_sources)
108 EXTRA_DIST =
109 else
110 EXTRA_DIST = $(uoa_sources)
111 endif
112
113 # do not distribute generated files
114 nodist_libtp_account_widgets_la_SOURCES = \
115         $(BUILT_SOURCES)
116
117 check_c_sources = \
118     $(libtp_account_widgets_sources) \
119     $(libtp_account_widgets_headers) \
120     $(uoa_sources) \
121     $(NULL)
122 include $(top_srcdir)/tools/check-coding-style.mk
123 check-local: check-coding-style
124
125 account_widgets_dtd_files =             \
126         tpaw-irc-networks.dtd           \
127         $(NULL)
128
129 ircnetworksdir = $(datadir)/empathy
130 ircnetworks_DATA =              \
131         irc-networks.xml
132
133 account_widgets_ui_files =                      \
134         tpaw-account-widget-generic.ui          \
135         tpaw-account-widget-jabber.ui           \
136         tpaw-account-widget-msn.ui              \
137         tpaw-account-widget-sip.ui              \
138         tpaw-account-widget-local-xmpp.ui       \
139         tpaw-account-widget-irc.ui              \
140         tpaw-account-widget-icq.ui              \
141         tpaw-account-widget-yahoo.ui            \
142         tpaw-account-widget-groupwise.ui        \
143         tpaw-account-widget-aim.ui              \
144         $(NULL)
145
146 account_widgets_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/tpaw-account-widgets.gresource.xml)
147
148 tpaw-account-widgets-resources.c: tpaw-account-widgets.gresource.xml $(account_widgets_resource_files)
149         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
150
151 tpaw-account-widgets-resources.h: tpaw-account-widgets.gresource.xml $(account_widgets_resource_files)
152         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<
153
154 EXTRA_DIST +=                                   \
155         tpaw-account-widgets.gresource.xml      \
156         $(account_widgets_dtd_files)            \
157         $(account_widgets_ui_files)             \
158         $(ircnetworks_DATA)                     \
159         $(NULL)
160
161 CLEANFILES =                            \
162         $(BUILT_SOURCES)                \
163         $(NULL)