1ed4cbf61c5104a832d9aab894923c653e8d3773
[claws.git] / src / plugins / python / Makefile.am
1 # Makefile.am for "src/plugins/python" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_in_files = claws-mail-python.metainfo.xml.in
6 appdatadir=$(datadir)/appdata
7 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
8
9 @INTLTOOL_XML_RULE@
10
11 EXTRA_DIST = $(appdata_DATA)
12
13 SUBDIRS = examples
14
15 plugindir = $(pkglibdir)/plugins
16
17 if BUILD_PYTHON_PLUGIN
18 plugin_LTLIBRARIES = python.la
19 endif
20
21 python_la_SOURCES = \
22         accounttype.c \
23         accounttype.h \
24         clawsmailmodule.c \
25         clawsmailmodule.h \
26         composewindowtype.c \
27         composewindowtype.h \
28         folderpropertiestype.c \
29         folderpropertiestype.h \
30         foldertype.c \
31         foldertype.h \
32         mailboxtype.c \
33         mailboxtype.h \
34         messageinfotype.c \
35         messageinfotype.h \
36         nodetype.c \
37         nodetype.h \
38         python_plugin.c \
39         python-hooks.c \
40         python-hooks.h \
41         python-shell.c \
42         python-shell.h
43
44 python_la_LDFLAGS = \
45         -avoid-version -module \
46         $(GLIB_LIBS) \
47         $(GTK_LIBS) \
48         $(PYGTK_LIBS) \
49         $(PYTHON_LIBS)
50
51
52 python_la_CPPFLAGS = \
53         -I$(top_srcdir)/src \
54         -I$(top_srcdir)/src/common \
55         -I$(top_builddir)/src/common \
56         -I$(top_srcdir)/src/gtk \
57         $(GLIB_CFLAGS) \
58         $(GTK_CFLAGS) \
59         $(PYTHON_CFLAGS) \
60         $(PYGTK_CFLAGS) \
61         -DPYTHON_SHARED_LIB="\"$(PYTHON_SHARED_LIB)\"" \
62         -DENABLE_PYTHON \
63         -fno-strict-aliasing