diff options
author | Jonathan Beck | 2009-01-11 20:44:33 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-11 20:44:33 +0100 |
commit | 74dae54b1b092aca744b4df6668569d6fc1153b5 (patch) | |
tree | 46d0e9ade9da94d12a57a06032f4fe81716ff8f5 /swig/Makefile.am | |
parent | ed5f0b7154a5f653c240e6962098ae7b28ab61e5 (diff) | |
download | libplist-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.am | 15 |
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 $@ $< + |