~ci-train-bot/account-plugins/account-plugins-ubuntu-yakkety-landing-049

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
SUBDIRS = \
	po

DISTCHECK_CONFIGURE_FLAGS = \
	--enable-libaccount-plugin \
	--enable-tests

if ENABLE_LIBACCOUNT_PLUGIN
# Binary account plugins.
plugin_LTLIBRARIES = \
	libfacebook.la \
	libflickr.la \
	libgeneric-oauth.la \
	libgoogle.la \
	libtwitter.la

VALAFLAGS = \
	--vapidir $(top_srcdir)/src \
	--pkg config \
	--pkg AccountPlugin \
	--pkg libaccounts-glib \
	--pkg posix \
	--pkg signon \
	--pkg gtk+-3.0 \
	--pkg gmodule-2.0

plugin_cppflags = \
	$(ACCOUNT_PLUGINS_CFLAGS) \
	-include $(top_builddir)/config.h \
	$(WARN_CFLAGS)

plugin_libadd = \
	$(ACCOUNT_PLUGINS_LIBS)

plugin_ldflags = \
	-export_dynamic \
	-avoid-version \
	-module \
	-no-undefined \
	-export-symbols-regex '^ap_module_get_object_type'

libfacebook_la_CPPFLAGS = $(plugin_cppflags) $(RESTAPIS_CFLAGS)
libfacebook_la_LIBADD = $(plugin_libadd) $(RESTAPIS_LIBS)
libfacebook_la_LDFLAGS = $(plugin_ldflags)
libfacebook_la_VALAFLAGS = --pkg libsoup-2.4 --pkg json-glib-1.0
libfacebook_la_SOURCES = \
	src/facebook.vala

libflickr_la_CPPFLAGS = $(plugin_cppflags)
libflickr_la_LIBADD = $(plugin_libadd)
libflickr_la_LDFLAGS = $(plugin_ldflags)
libflickr_la_SOURCES = \
	src/flickr.vala

libgoogle_la_CPPFLAGS = $(plugin_cppflags) $(RESTAPIS_CFLAGS)
libgoogle_la_LIBADD = $(plugin_libadd) $(RESTAPIS_LIBS)
libgoogle_la_LDFLAGS = $(plugin_ldflags)
libgoogle_la_VALAFLAGS = --pkg libsoup-2.4 --pkg json-glib-1.0
libgoogle_la_SOURCES = \
	src/google.vala

libtwitter_la_CPPFLAGS = $(plugin_cppflags)
libtwitter_la_LIBADD = $(plugin_libadd)
libtwitter_la_LDFLAGS = $(plugin_ldflags)
libtwitter_la_SOURCES = \
	src/twitter.vala

libgeneric_oauth_la_CPPFLAGS = $(plugin_cppflags)
libgeneric_oauth_la_LIBADD = $(plugin_libadd)
libgeneric_oauth_la_LDFLAGS = $(plugin_ldflags)
libgeneric_oauth_la_SOURCES = \
	src/generic-oauth.vala
endif # ENABLE_LIBACCOUNT_PLUGIN

if ENABLE_QML_PLUGINS
SUBDIRS += qml
endif # ENABLE_QML_PLUGINS

# Extract transatable strings from .provider files
%.provider: %.provider.in $(INTLTOOL_MERGE)
	$(AM_V_at)$(MKDIR_P) $(builddir)/data/providers
	$(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@

providers_in_in_files = \
	data/providers/facebook.provider.in.in \
	data/providers/flickr.provider.in.in \
	data/providers/foursquare.provider.in.in \
	data/providers/google.provider.in.in \
	data/providers/identica.provider.in.in \
	data/providers/linkedin.provider.in.in \
	data/providers/instagram.provider.in.in \
	data/providers/owncloud.provider.in.in \
	data/providers/sina.provider.in.in \
	data/providers/sohu.provider.in.in \
	data/providers/twitter.provider.in.in \
	data/providers/vk.provider.in.in \
	data/providers/windows-live.provider.in.in

providers_DATA = \
	$(providers_in_in_files:.provider.in.in=.provider)

# Extract translatable strings from .service files
%.service: %.service.in $(INTLTOOL_MERGE)
	$(AM_V_at)$(MKDIR_P) $(builddir)/data/services
	$(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@

services_in_files = \
	data/services/facebook-microblog.service.in \
	data/services/facebook-sharing.service.in \
	data/services/flickr-microblog.service.in \
	data/services/flickr-sharing.service.in \
	data/services/foursquare-microblog.service.in \
	data/services/google-drive.service.in \
	data/services/google-im.service.in \
	data/services/identica-microblog.service.in \
	data/services/linkedin-microblog.service.in \
	data/services/instagram-microblog.service.in \
	data/services/picasa.service.in \
	data/services/sina-microblog.service.in \
	data/services/sohu-microblog.service.in \
	data/services/twitter-microblog.service.in

services_DATA = \
	$(services_in_files:.service.in=.service)

webkitoptionsdir = $(sysconfdir)/signon-ui/webkit-options.d
dist_webkitoptions_DATA = \
	data/webkit-options/accounts.google.com.conf \
	data/webkit-options/api.instagram.com.conf \
	data/webkit-options/api.weibo.com.conf \
	data/webkit-options/api.t.sohu.com.conf \
	data/webkit-options/foursquare.com.conf \
	data/webkit-options/identi.ca.conf \
	data/webkit-options/login.live.com.conf \
	data/webkit-options/www.linkedin.com.conf

# Temporary until these bugs are fixed:
# https://bugs.launchpad.net/bugs/1567908
# https://bugs.launchpad.net/bugs/1571587
iconsdir = $(datadir)/icons/hicolor/32x32/apps
dist_icons_DATA = \
	data/icons/owncloud.png \
	data/icons/vk.png

dist_bin_SCRIPTS = \
	tools/account-console

dist_noinst_DATA = \
	$(services_in_files) \
	src/config.vapi

if HAVE_XMLLINT
TESTS = \
	test-provider \
	test-service

test-provider: Makefile $(providers_DATA)
	$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
		echo "for provider in $(providers_DATA)" >> $@; \
		echo "do" >> $@; \
		echo "    $(XMLLINT) --noout $(top_builddir)/\$$provider || exit 1" >> $@; \
		echo "done" >> $@; \
		chmod +x $@

test-service: Makefile $(services_DATA)
	$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
		echo "for service in $(services_DATA)" >> $@; \
		echo "do" >> $@; \
		echo "    $(XMLLINT) --noout $(top_builddir)/\$$service || exit 1" >> $@; \
		echo "done" >> $@; \
		chmod +x $@
endif # HAVE_XMLLINT

CLEANFILES = \
	$(services_DATA) \
	$(providers_DATA) \
	$(TESTS)

DISTCLEANFILES = \
	intltool-extract \
	intltool-merge \
	intltool-update \
	po/.intltool-merge-cache

dist-hook: bzr-changelog-hook

bzr-changelog-hook: Makefile
	$(AM_V_at)cd $(top_srcdir) && \
	if $(top_srcdir)/missing --run bzr log \
		--gnu-changelog > .ChangeLog.tmp; \
	then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
	else rm -f .ChangeLog.tmp; exit 1; fi

.PHONY: bzr-changelog-hook