From 5605e446abae537bac1d5f8f90056cebbdb1c26f Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Wed, 5 Apr 2006 14:10:38 +0000 Subject: 2006-04-03 Jorg Schuler * itdb.h: flag1 -> has_artwork * itdb_track.c: (itdb_track_set_thumbnails, itdb_remove_thumbnails) set has_artwork flag correctly. 2006-04-01 Jorg Schuler * itdb.h: unk178 -> mark_unplayed * itdb_itunesdb.c: reset the mark_unplayed flag when playcount is detected. 2006-03-31 Jorg Schuler * po/es.po: replaced with version from Alejandro Lamas who maintains the gtkpod translation as well. 2006-03-29 Jorg Schuler * itunesdb.c: set filetype identifier when transfering track to the iPod. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1227 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- bindings/python/Makefile.am | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 bindings/python/Makefile.am (limited to 'bindings/python/Makefile.am') diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am new file mode 100644 index 0000000..059836a --- /dev/null +++ b/bindings/python/Makefile.am @@ -0,0 +1,40 @@ +EXTRA_DIST = \ + gpod.i \ + examples/coverart_fetch.py \ + examples/play.py \ + examples/tag-genre-from-audioscrobber.py + +CLEANFILES = \ + *.py* \ + _gpod.so \ + gpod.py \ + gpod_wrap.c \ + gpod_wrap.o + +if HAVE_PYTHON +MODULE_CFLAGS = `$(PKG_CONFIG) --cflags $(top_srcdir)/libgpod-1.0.pc` $(PYTHON_INCLUDES) +MODULE_LIBS = `$(PKG_CONFIG) --libs $(top_srcdir)/libgpod-1.0.pc` -L$(top_srcdir)/src/.libs +python_DATA = gpod.py _gpod.so + +gpod_wrap.c: gpod.i + $(SWIG) -python gpod.i + +gpod.py: gpod.i + $(SWIG) -python gpod.i + +gpod_wrap.o: gpod_wrap.c + $(CC) $(MODULE_CFLAGS) -c -fpic gpod_wrap.c + +_gpod.so: gpod_wrap.o + $(CC) $(MODULE_LIBS) @PYTHON_LDFLAGS@ gpod_wrap.o -o $@ + +install-pythonDATA: $(python_DATA) + $(mkinstalldirs) $(DESTDIR)$(pythondir) + $(INSTALL_PROGRAM) _gpod.so $(DESTDIR)$(pythondir)/_gpod.so + $(INSTALL_DATA) gpod.py $(DESTDIR)$(pythondir)/gpod.py + $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod.py")' + $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod.py")' + +uninstall-pythonDATA: $(python_DATA) + rm -f $(DESTDIR)$(pythondir)/_gpod.so $(DESTDIR)$(pythondir)/gpod.py +endif -- cgit