summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-07-30 21:16:51 +0000
committerDavid Robillard <d@drobilla.net>2008-07-30 21:16:51 +0000
commit2cd12ad217c63068c0e33cd70e80ee6344af3216 (patch)
tree03ce118eec13f707e888219f5b078ed896445f5f
parent69557918d1492853483be5aa904652edf094384f (diff)
downloadlilv-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
-rw-r--r--configure.ac3
-rw-r--r--swig/Makefile.am36
-rw-r--r--swig/chicken/Makefile.am15
-rw-r--r--swig/chicken/lv2_list.scm (renamed from swig/lv2_list.scm)0
-rw-r--r--swig/chicken/slv2.setup (renamed from swig/slv2.setup)0
-rw-r--r--swig/mzscheme/Makefile.am10
-rw-r--r--swig/python/Makefile.am12
-rwxr-xr-xswig/python/lv2_list.py (renamed from swig/lv2_list.py)0
8 files changed, 42 insertions, 34 deletions
diff --git a/configure.ac b/configure.ac
index f1977a6..1756ea5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,6 +202,9 @@ AC_CONFIG_FILES([slv2.pc])
AC_CONFIG_FILES([slv2/Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([swig/Makefile])
+AC_CONFIG_FILES([swig/python/Makefile])
+AC_CONFIG_FILES([swig/mzscheme/Makefile])
+AC_CONFIG_FILES([swig/chicken/Makefile])
AC_CONFIG_FILES([utils/Makefile])
AC_OUTPUT
diff --git a/swig/Makefile.am b/swig/Makefile.am
index 3555c3a..8a6f8ae 100644
--- a/swig/Makefile.am
+++ b/swig/Makefile.am
@@ -1,40 +1,8 @@
-EXTRA_DIST = slv2.i lv2_list.py slv2.setup
+EXTRA_DIST = slv2.i
if WITH_SWIG
-all: python mzscheme chicken
-
-if WITH_PYTHON
-python:
- 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
-else
-python:
-
-endif # WITH_PYTHON
-
-if WITH_MZSCHEME
-mzscheme:
- swig -DMZSCHEME -Wall -mzscheme -I.. -o slv2_mzscheme.c -oh slv2_mzscheme.h slv2.i
- gcc -fPIC -shared -Iplt -I.. \
- -I/usr/include/plt slv2_mzscheme.c -o libslv2_mzscheme.so
-endif # WITH_MZSCHEME
-
-if WITH_CHICKEN
-chicken:
- rm -f slv2.scm slv2_wrap.c
- rm -rf eggs
- mkdir -p eggs
- swig -DCHICKEN -Wall -chicken -proxy -nounit -I.. -o slv2_wrap.c -oh slv2_wrap.h slv2.i
- tar -czf eggs/slv2.egg slv2.setup slv2.scm slv2_wrap.c
-endif # WITH_CHICKEN
+SUBDIRS = python mzscheme chicken
endif # WITH_SWIG
-clean-local:
- rm -f *.cxx
- rm -f *.so
- rm -f *.o
- rm -f slv2.py
diff --git a/swig/chicken/Makefile.am b/swig/chicken/Makefile.am
new file mode 100644
index 0000000..8e3de73
--- /dev/null
+++ b/swig/chicken/Makefile.am
@@ -0,0 +1,15 @@
+EXTRA_DIST = slv2.setup lv2_list.scm
+
+if WITH_CHICKEN
+all:
+ rm -f slv2.scm slv2_wrap.c
+ swig -DCHICKEN -Wall -chicken -proxy -nounit -I../.. -o slv2_wrap.c -oh slv2_wrap.h ../slv2.i
+ tar -czf slv2.egg slv2.setup slv2.scm slv2_wrap.c
+
+#install-exec-local:
+# chicken-setup ./slv2.egg
+
+clean-local:
+ rm -f *.[ch] *.so *.o slv2.egg slv2.scm
+endif
+
diff --git a/swig/lv2_list.scm b/swig/chicken/lv2_list.scm
index cc23e0d..cc23e0d 100644
--- a/swig/lv2_list.scm
+++ b/swig/chicken/lv2_list.scm
diff --git a/swig/slv2.setup b/swig/chicken/slv2.setup
index ef15f6d..ef15f6d 100644
--- a/swig/slv2.setup
+++ b/swig/chicken/slv2.setup
diff --git a/swig/mzscheme/Makefile.am b/swig/mzscheme/Makefile.am
new file mode 100644
index 0000000..afc8f10
--- /dev/null
+++ b/swig/mzscheme/Makefile.am
@@ -0,0 +1,10 @@
+if WITH_MZSCHEME
+all:
+ swig -DMZSCHEME -Wall -mzscheme -I../.. -o slv2_mzscheme.c -oh slv2_mzscheme.h ../slv2.i
+ gcc -fPIC -shared -Iplt -I../.. \
+ -I/usr/include/plt slv2_mzscheme.c -o libslv2_mzscheme.so
+
+clean-local:
+ rm -f *.[ch] *.so *.o
+endif
+
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/lv2_list.py b/swig/python/lv2_list.py
index 685b62b..685b62b 100755
--- a/swig/lv2_list.py
+++ b/swig/python/lv2_list.py