diff options
| -rw-r--r-- | swig/Makefile.am | 3 | ||||
| -rw-r--r-- | swig/plist.i | 5 |
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 | |||
| 3 | BUILT_SOURCES = $(srcdir)/plist_wrap.c | 3 | BUILT_SOURCES = $(srcdir)/plist_wrap.c |
| 4 | SWIG_SOURCES = plist.i | 4 | SWIG_SOURCES = plist.i |
| 5 | 5 | ||
| 6 | swigincludedir =$(includedir)/plist/swig | ||
| 7 | swiginclude_HEADERS = $(SWIG_SOURCES) | ||
| 8 | |||
| 6 | pkgpython_PYTHON = PList.py __init__.py | 9 | pkgpython_PYTHON = PList.py __init__.py |
| 7 | pkgpyexec_LTLIBRARIES = _PList.la | 10 | pkgpyexec_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 | |||
