summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-01-12 20:05:13 +0100
committerGravatar Jonathan Beck2009-01-12 20:05:13 +0100
commit1a46027966ce7afe74955892c74a3b3b978ff9cb (patch)
tree40bc6fa240d3361e5aac37b066f5f2b30302f3af
parentc0c27eb5dc9c9f77cd5d500f36641647ee508d15 (diff)
downloadlibplist-1a46027966ce7afe74955892c74a3b3b978ff9cb.tar.gz
libplist-1a46027966ce7afe74955892c74a3b3b978ff9cb.tar.bz2
Ship SWIG interface file with dev headers.
-rw-r--r--swig/Makefile.am3
-rw-r--r--swig/plist.i5
2 files changed, 6 insertions, 2 deletions
diff --git a/swig/Makefile.am b/swig/Makefile.am
index 2e5b280..1b3b4a2 100644
--- a/swig/Makefile.am
+++ b/swig/Makefile.am
@@ -3,6 +3,9 @@ INCLUDES = -I$(top_srcdir)/include
3BUILT_SOURCES = $(srcdir)/plist_wrap.c 3BUILT_SOURCES = $(srcdir)/plist_wrap.c
4SWIG_SOURCES = plist.i 4SWIG_SOURCES = plist.i
5 5
6swigincludedir =$(includedir)/plist/swig
7swiginclude_HEADERS = $(SWIG_SOURCES)
8
6pkgpython_PYTHON = PList.py __init__.py 9pkgpython_PYTHON = PList.py __init__.py
7pkgpyexec_LTLIBRARIES = _PList.la 10pkgpyexec_LTLIBRARIES = _PList.la
8_PList_la_SOURCES = $(srcdir)/plist_wrap.c $(SWIG_SOURCES) 11_PList_la_SOURCES = $(srcdir)/plist_wrap.c $(SWIG_SOURCES)
diff --git a/swig/plist.i b/swig/plist.i
index 78f102f..f4e6df4 100644
--- a/swig/plist.i
+++ b/swig/plist.i
@@ -1,5 +1,5 @@
1 /* swig.i */ 1 /* swig.i */
2 %module PList 2 %module(package="libplist") PList
3 %{ 3 %{
4 /* Includes the header in the wrapper code */ 4 /* Includes the header in the wrapper code */
5 #include <plist/plist.h> 5 #include <plist/plist.h>
@@ -168,4 +168,5 @@ typedef struct {
168 plist_to_bin($self->node, &s, &l); 168 plist_to_bin($self->node, &s, &l);
169 return s; 169 return s;
170 } 170 }
171}; \ No newline at end of file 171};
172