diff options
| author | 2009-11-11 22:07:28 +0100 | |
|---|---|---|
| committer | 2009-11-12 10:57:12 -0800 | |
| commit | 1ccc8762a6564348b775a5038c16b3566114f2eb (patch) | |
| tree | c6fd44a42ad7c4d2b52eae09207bc6f751a425b5 /swig | |
| parent | 28d1fcac0eda09e829ef8c8b46fad0e45590af16 (diff) | |
| download | libimobiledevice-1ccc8762a6564348b775a5038c16b3566114f2eb.tar.gz libimobiledevice-1ccc8762a6564348b775a5038c16b3566114f2eb.tar.bz2 | |
Simplify 'libiphone.iPhone' module to 'iphone'
Diffstat (limited to 'swig')
| -rw-r--r-- | swig/Makefile.am | 24 | ||||
| -rw-r--r-- | swig/__init__.py | 3 | ||||
| -rw-r--r-- | swig/iphone.i | 2 |
3 files changed, 15 insertions, 14 deletions
diff --git a/swig/Makefile.am b/swig/Makefile.am index 0da739b..580158d 100644 --- a/swig/Makefile.am +++ b/swig/Makefile.am | |||
| @@ -6,26 +6,26 @@ SWIG_SOURCES = iphone.i | |||
| 6 | CLEANFILES = \ | 6 | CLEANFILES = \ |
| 7 | *.pyc \ | 7 | *.pyc \ |
| 8 | *.pyo \ | 8 | *.pyo \ |
| 9 | _iPhone.so \ | 9 | _iphone.so \ |
| 10 | iPhone.py \ | 10 | iphone.py \ |
| 11 | iphone_wrap.cxx | 11 | iphone_wrap.cxx |
| 12 | 12 | ||
| 13 | EXTRA_DIST = \ | 13 | EXTRA_DIST = \ |
| 14 | __init__.py \ | 14 | __init__.py \ |
| 15 | iphone.i | 15 | iphone.i |
| 16 | 16 | ||
| 17 | swigincludedir =$(includedir)/libiphone/swig | 17 | swigincludedir =$(includedir)/libiphone/swig |
| 18 | swiginclude_HEADERS = $(SWIG_SOURCES) | 18 | swiginclude_HEADERS = $(SWIG_SOURCES) |
| 19 | 19 | ||
| 20 | iPhonedir = $(pyexecdir)/libiphone | 20 | iphonedir = $(pyexecdir)/iphone |
| 21 | iPhone_PYTHON = __init__.py | 21 | iphone_PYTHON = __init__.py |
| 22 | nodist_iPhone_PYTHON = iPhone.py | 22 | nodist_iphone_PYTHON = iphone.py |
| 23 | iPhone_LTLIBRARIES = _iPhone.la | 23 | iphone_LTLIBRARIES = _iphone.la |
| 24 | nodist__iPhone_la_SOURCES = iphone_wrap.cxx $(SWIG_SOURCES) | 24 | nodist__iphone_la_SOURCES = iphone_wrap.cxx $(SWIG_SOURCES) |
| 25 | _iPhone_la_CFLAGS = $(PYTHON_CPPFLAGS) -I$(top_srcdir)/src | 25 | _iphone_la_CFLAGS = $(PYTHON_CPPFLAGS) -I$(top_srcdir)/src |
| 26 | _iPhone_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) | 26 | _iphone_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) |
| 27 | _iPhone_la_LIBADD = $(top_builddir)/src/libiphone.la $(libplistmm_LIBS) | 27 | _iphone_la_LIBADD = $(top_builddir)/src/libiphone.la $(libplistmm_LIBS) |
| 28 | 28 | ||
| 29 | iphone_wrap.cxx : $(SWIG_SOURCES) | 29 | iphone_wrap.cxx : $(SWIG_SOURCES) |
| 30 | $(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) -I$(top_srcdir)/src -o $@ $< | 30 | $(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) -I$(top_srcdir)/src -o $@ $< |
| 31 | 31 | ||
diff --git a/swig/__init__.py b/swig/__init__.py index 8d1c8b6..e70dcce 100644 --- a/swig/__init__.py +++ b/swig/__init__.py | |||
| @@ -1 +1,2 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | from iphone import * | ||
diff --git a/swig/iphone.i b/swig/iphone.i index 6604c63..a0ee509 100644 --- a/swig/iphone.i +++ b/swig/iphone.i | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* swig.i */ | 1 | /* swig.i */ |
| 2 | %module(package="libiphone") iPhone | 2 | %module iphone |
| 3 | %feature("autodoc", "1"); | 3 | %feature("autodoc", "1"); |
| 4 | %{ | 4 | %{ |
| 5 | /* Includes the header in the wrapper code */ | 5 | /* Includes the header in the wrapper code */ |
