l10n: sync translations with transifex.net
[siplcs.git] / src / purple / Makefile.am
blobf781c243cb1fd9fd66a58ae695c0b6abf121f471
1 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
3 noinst_LTLIBRARIES = libsipe_backend.la
5 pkg_LTLIBRARIES = libsipe.la
7 MAINTAINERCLEANFILES = \
8         Makefile.in
10 libsipe_backend_la_SOURCES = \
11         purple-private.h \
12         purple-buddy.c \
13         purple-chat.c \
14         purple-connection.c \
15         purple-debug.c \
16         purple-dnsquery.c \
17         purple-ft.c \
18         purple-groupchat.c \
19         purple-im.c \
20         purple-markup.c \
21         purple-network.c \
22         purple-notify.c \
23         purple-schedule.c \
24         purple-search.c \
25         purple-setting.c \
26         purple-status.c \
27         purple-transport.c \
28         purple-user.c
30 libsipe_la_SOURCES = \
31         purple-plugin.c
33 AM_CFLAGS = $(st)
35 libsipe_backend_la_CFLAGS = \
36         $(DEBUG_CFLAGS) \
37         $(QUALITY_CFLAGS) \
38         $(GLIB_CFLAGS) \
39         $(PURPLE_CFLAGS) \
40         -I$(srcdir)/../api
42 if !SIPE_OS_WIN32
43 libsipe_backend_la_CFLAGS += \
44         $(LOCALE_CPPFLAGS)
45 endif
47 libsipe_la_CFLAGS = $(libsipe_backend_la_CFLAGS)
49 libsipe_la_LDFLAGS = \
50         -module -avoid-version -no-undefined
52 libsipe_la_LIBADD = \
53         ../core/libsipe_core.la \
54         ../core/libsipe_core_crypto_nss.la \
55         ../core/libsipe_core_libxml2.la \
56         libsipe_backend.la \
57         $(LIBXML2_LIBS) \
58         $(NSS_LIBS) \
59         $(GLIB_LIBS) \
60         $(PURPLE_LIBS)
62 if SIPE_OS_WIN32
63 libsipe_la_CFLAGS += -DHAVE_SSPI=1
64 libsipe_la_LIBADD += -lws2_32 -lsecur32
65 endif
67 if SIP_SEC_KRB5
68 libsipe_la_LIBADD += $(KRB5_LDFLAGS)
69 endif
71 check_PROGRAMS = tests_load
72 tests_load_SOURCES = tests-load.c
73 tests_load_CFLAGS  = $(GMODULE_CFLAGS)
74 tests_load_LDADD   = $(GMODULE_LIBS)
76 if !SIPE_OS_WIN32
77 check_PROGRAMS += tests
78 tests_SOURCES   = tests.c
79 tests_CFLAGS    = $(libsipe_la_CFLAGS)
80 tests_LDADD     = \
81         ../core/libsipe_core_tests.la \
82         ../core/libsipe_core.la \
83         ../core/libsipe_core_crypto_nss.la \
84         libsipe_backend.la \
85         $(NSS_LIBS) \
86         $(PURPLE_LIBS)
87 endif
89 if SIPE_MIME_GMIME
90 libsipe_la_LIBADD += \
91         ../core/libsipe_core_mime.la \
92         $(GMIME_LIBS)
93 if !SIPE_OS_WIN32
94 tests_LDADD       += \
95         ../core/libsipe_core_mime.la \
96         $(GMIME_LIBS)
97 endif
98 else
99 libsipe_backend_la_SOURCES += purple-mime.c
100 endif
102 if SIPE_WITH_VV
103 noinst_LTLIBRARIES            += libsipe_backend_vv.la
104 libsipe_backend_vv_la_SOURCES  = purple-media.c
105 libsipe_backend_vv_la_CFLAGS   = \
106         $(libsipe_backend_la_CFLAGS) \
107         $(NICE_CFLAGS) \
108         $(GSTREAMER_CFLAGS)
109 libsipe_la_LIBADD             += \
110         libsipe_backend_vv.la \
111         $(NICE_LIBS) \
112         $(GSTREAMER_LIBS)
113 endif
115 TESTS = $(check_PROGRAMS)
117 # Remove any libsipe.so from the old incorrect installation location
118 install-exec-local:
119         rm -f $(DESTDIR)$(libdir)/pidgin/libsipe.so