summaryrefslogtreecommitdiffstats
path: root/swig/Makefile.am
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-01-11 20:44:33 +0100
committerGravatar Jonathan Beck2009-01-11 20:44:33 +0100
commit74dae54b1b092aca744b4df6668569d6fc1153b5 (patch)
tree46d0e9ade9da94d12a57a06032f4fe81716ff8f5 /swig/Makefile.am
parented5f0b7154a5f653c240e6962098ae7b28ab61e5 (diff)
downloadlibplist-74dae54b1b092aca744b4df6668569d6fc1153b5.tar.gz
libplist-74dae54b1b092aca744b4df6668569d6fc1153b5.tar.bz2
Add a pythyon binding to the library (using SWIG).
Diffstat (limited to 'swig/Makefile.am')
-rw-r--r--swig/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/swig/Makefile.am b/swig/Makefile.am
new file mode 100644
index 0000000..2e5b280
--- /dev/null
+++ b/swig/Makefile.am
@@ -0,0 +1,15 @@
+INCLUDES = -I$(top_srcdir)/include
+
+BUILT_SOURCES = $(srcdir)/plist_wrap.c
+SWIG_SOURCES = plist.i
+
+pkgpython_PYTHON = PList.py __init__.py
+pkgpyexec_LTLIBRARIES = _PList.la
+_PList_la_SOURCES = $(srcdir)/plist_wrap.c $(SWIG_SOURCES)
+_PList_la_CFLAGS = $(PYTHON_CPPFLAGS) -I$(top_srcdir)/src
+_PList_la_LDFLAGS = -module $(PYTHON_LDFLAGS)
+_PList_la_LIBADD = ../src/libplist.la
+
+$(srcdir)/plist_wrap.c : $(SWIG_SOURCES)
+ $(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) -I$(top_srcdir)/src -o $@ $<
+