diff options
author | David Robillard <d@drobilla.net> | 2008-07-30 21:16:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-07-30 21:16:51 +0000 |
commit | 2cd12ad217c63068c0e33cd70e80ee6344af3216 (patch) | |
tree | 03ce118eec13f707e888219f5b078ed896445f5f /swig/python | |
parent | 69557918d1492853483be5aa904652edf094384f (diff) | |
download | lilv-2cd12ad217c63068c0e33cd70e80ee6344af3216.tar.gz lilv-2cd12ad217c63068c0e33cd70e80ee6344af3216.tar.bz2 lilv-2cd12ad217c63068c0e33cd70e80ee6344af3216.zip |
Move stuff for various binding languages to own directories.
git-svn-id: http://svn.drobilla.net/lad/slv2@1315 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'swig/python')
-rw-r--r-- | swig/python/Makefile.am | 12 | ||||
-rwxr-xr-x | swig/python/lv2_list.py | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/swig/python/Makefile.am b/swig/python/Makefile.am new file mode 100644 index 0000000..8a7afc7 --- /dev/null +++ b/swig/python/Makefile.am @@ -0,0 +1,12 @@ +EXTRA_DIST = lv2_list.py + +if WITH_PYTHON +all: + swig -DPYTHON -Wall -python -I../.. -o slv2_python.c -oh slv2_python.h ../slv2.i + gcc -fPIC -shared -I../.. $(PYTHON_CPPFLAGS) $(PYTHON_EXTRA_LDFLAGS) \ + $(PYTHON_EXTRA_LIBS) $(PYTHON_EXTRA_LDFLAGS) \ + slv2_python.c ../../src/.libs/libslv2.so -o _slv2.so + +clean-local: + rm -f *.[ch] *.so *.o slv2.py +endif diff --git a/swig/python/lv2_list.py b/swig/python/lv2_list.py new file mode 100755 index 0000000..685b62b --- /dev/null +++ b/swig/python/lv2_list.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python +import slv2; + +w = slv2.World() +w.load_all() + +for p in w.get_all_plugins(): + print p.uri(), "-", p.name() |