# which have makefiles with distribution information.
# - intl should come before modules and . because all the code uses gettext
# - modules should come before . because vlc needs the builtins
-# - . should come before mozilla because the plugin needs libvlc_pic.a
+# - . should come before mozilla/bindings because the plugin needs libvlc_pic.a
# - po should come before . because VLC.app needs the pofiles
# - loader should come before modules because some plugins need it
-SUBDIRS = intl loader modules po . mozilla activex share m4 doc
+SUBDIRS = intl loader modules po . mozilla bindings activex share m4 doc
DIST_SUBDIRS = $(SUBDIRS) debian ipkg lib
EXTRA_DIST = \
if HAVE_WIN32
lib_LIBRARIES = lib/libvlc.a
else
-if BUILD_SHARED
-lib_LIBRARIES = lib/libvlc_pic.a
-else
lib_LIBRARIES = lib/libvlc.a
-if BUILD_MOZILLA
+if BUILD_PIC
lib_LIBRARIES += lib/libvlc_pic.a
-endif
+else
endif
endif
--- /dev/null
+SUBDIRS = python
+++ /dev/null
-ifdef HOMEDRIVE
- COMPILERARG = --compiler=mingw32
-else
- COMPILERARG =
-endif
-
-all:
- python setup.py build $(COMPILERARG)
-
-install:
- python setup.py install
-
-clean:
- $(RM) -rf build
-
--- /dev/null
+##############################################################################
+# Building the Python binding
+###############################################################################
+
+# FIXME
+#ifdef HOMEDRIVE
+# COMPILERARG = --compiler=mingw32
+#else
+# COMPILERARG =
+#endif
+
+if BUILD_PYTHON
+
+all:
+ python setup.py build $(COMPILERARG)
+
+install:
+ python setup.py install
+
+clean:
+ $(RM) -rf build
+endif
{ "set", vlcObject_var_set, METH_VARARGS,
"set(str, value) Set a variable value" },
{ "config_get", vlcObject_config_get, METH_VARARGS,
- "get(str) -> value Get an option value." },
+ "config_get(str) -> value Get a configuration option." },
{ "config_set", vlcObject_config_set, METH_VARARGS,
- "set(str, value) Set an option value" },
+ "config_set(str, value) Set a configuration option" },
{ "type", vlcObject_var_type, METH_VARARGS,
"type(str) -> str Get a variable type" },
{ "list", vlcObject_var_list, METH_VARARGS,
[ --enable-release activate extra optimizations (default disabled)])
test "${enable_release}" != "yes" && enable_release="no"
+dnl
+dnl Is the shared libvlc forced ?
+dnl
+build_pic=no
+AC_ARG_ENABLE(shared-libvlc,
+ [ --enable-shared-libvlc shared libvlc (default disabled EXPERIMENTAL)],
+ ,[shared_libvlc=no])
+
+
dnl
dnl Stream output
dnl
fi
fi
-dnl
-dnl Joystick plugin
-dnl
-AC_ARG_ENABLE(joystick,
- [ --enable-joystick joystick control (default enabled)])
-if test "${enable_joystick}" = "yes"; then
- AC_CHECK_HEADER(linux/joystick.h, [VLC_ADD_PLUGINS([joystick])])
-fi
dnl
dnl corba (ORBit) plugin
fi
])
AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
+if test "${mozilla}" != "false"
+then
+ build_pic=yes
+fi
+
+dnl
+dnl Python bindings
+dnl
+AC_ARG_ENABLE(python-bindings,
+ [ --enable-python-bindings Enable Python bindings (default disabled)])
+dnl TODO: look for python dev headers
+AM_CONDITIONAL( BUILD_PYTHON, [test "${enable_python_bindings}" = "yes"] )
+if test "${enable_python_bindings}" = "yes"
+then
+ build_pic=yes
+fi
+
dnl
dnl test plugins
fi]
AM_CONDITIONAL(HAVE_BUILTINS, ${builtin_support})
-AC_ARG_ENABLE(shared-libvlc,
- [ --enable-shared-libvlc shared libvlc (default disabled EXPERIMENTAL)],
- ,[shared_libvlc=no])
-
+dnl
+dnl Pic and shared libvlc stuff
+dnl
AM_CONDITIONAL(BUILD_SHARED, [test "${shared_libvlc}" != "no"])
+AM_CONDITIONAL(BUILD_PIC, [test "${build_pic}" = "yes" -o "${shared_libvlc}" != "no"] )
AS_IF([test "${shared_libvlc}" != "no"], [
AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.])
])
pic=no
-AS_IF([test "${shared_libvlc}" != "no"], [pic=pic])
-AS_IF([${mozilla}], [pic=pic])
+AS_IF([test "${shared_libvlc}" != "no" -o "${build_pic}" = "yes"], [pic=pic])
AS_IF([test "${SYS}" = "mingw32"], [pic=no])
-
AS_IF([test "${pic}" = "no"], [pic=])
AC_SUBST(pic)
Makefile
activex/Makefile
activex/axvlc.inf
+ bindings/Makefile
+ bindings/python/Makefile
debian/Makefile
doc/Makefile
intl/Makefile
dnl Shortcut to nice compile message
rm -f compile
echo '#! /bin/sh' >compile
-echo "PATH=$PATH LANG=C make $* 2>&1| ${srcdir}/extras/make.pl" >>compile
+echo "PATH=$PATH LANG=C make \$\* 2>&1| ${srcdir}/extras/make.pl" >>compile
chmod a+x compile
printf "