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