metainfo: add python plugin
[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_files = claws-mail-python.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
8 EXTRA_DIST = $(appdata_files)
9
10 SUBDIRS = examples
11
12 plugindir = $(pkglibdir)/plugins
13
14 if BUILD_PYTHON_PLUGIN
15 plugin_LTLIBRARIES = python.la
16 endif
17
18 python_la_SOURCES = \
19         accounttype.c \
20         accounttype.h \
21         clawsmailmodule.c \
22         clawsmailmodule.h \
23         composewindowtype.c \
24         composewindowtype.h \
25         folderpropertiestype.c \
26         folderpropertiestype.h \
27         foldertype.c \
28         foldertype.h \
29         mailboxtype.c \
30         mailboxtype.h \
31         messageinfotype.c \
32         messageinfotype.h \
33         nodetype.c \
34         nodetype.h \
35         python_plugin.c \
36         python-hooks.c \
37         python-hooks.h \
38         python-shell.c \
39         python-shell.h
40
41 python_la_LDFLAGS = \
42         -avoid-version -module \
43         $(GLIB_LIBS) \
44         $(GTK_LIBS) \
45         $(PYGTK_LIBS) \
46         $(PYTHON_LIBS)
47
48
49 python_la_CPPFLAGS = \
50         -I$(top_srcdir)/src \
51         -I$(top_srcdir)/src/common \
52         -I$(top_builddir)/src/common \
53         -I$(top_srcdir)/src/gtk \
54         $(GLIB_CFLAGS) \
55         $(GTK_CFLAGS) \
56         $(PYTHON_CFLAGS) \
57         $(PYGTK_CFLAGS) \
58         -DPYTHON_SHARED_LIB="\"$(PYTHON_SHARED_LIB)\"" \
59         -DENABLE_PYTHON \
60         -fno-strict-aliasing