# - libs/* are needed by modules
BASE_SUBDIRS = po src modules share doc test
EXTRA_SUBDIRS = m4 extras/package/ipkg \
- bindings/python \
libs/loader libs/srtp \
projects/mozilla projects/activex
DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
if BUILD_ACTIVEX
SUBDIRS += projects/activex
endif
-if BUILD_PYTHON
-SUBDIRS += bindings/python
-endif
EXTRA_DIST = \
HACKING \
+++ /dev/null
-##############################################################################
-# Building the Python binding
-###############################################################################
-
-EXTRA_DIST = vlcglue.h setup.py vlcwrapper.py vlcwidget.py \
- vlc_module.c \
- vlc_media.c vlc_position.c \
- vlc_instance.c vlc_mediaplayer.c
-
-if BUILD_PYTHON
-
-all:
-if HAVE_WIN32
- COMPILERARG=--compiler=mingw32
-else
- COMPILERARG=
-endif
- srcdir="`cd $(srcdir);pwd`" top_builddir="$(abs_top_builddir)" python "$(srcdir)/setup.py" build $(COMPILERARG)
-
-install:
- top_builddir="$(abs_top_builddir)" srcdir="`cd $(srcdir);pwd`" python $(srcdir)/setup.py install
-
-clean:
- $(RM) -rf build
-endif
import os
# Get build variables (buildir, srcdir)
-try:
- top_builddir=os.environ['top_builddir']
-except KeyError:
- # Note: do not initialize here, so that we get
- # a correct default value if the env. var is
- # defined but empty
- top_builddir=None
-if not top_builddir:
- top_builddir = os.path.join( '..', '..' )
- os.environ['top_builddir'] = top_builddir
+top_builddir = os.path.join( '..', '..' )
+os.environ['top_builddir'] = top_builddir
# Determine the extra link args. Normally, vlc-config should take care
# of this and return the right path values, from a development tree or
linkargs=[ '-L' + d ]
# For out-of-tree compilations
-try:
- srcdir=os.environ['srcdir']
-except KeyError:
- # Note: same as above
- srcdir=None
-if not srcdir:
- srcdir = '.'
+srcdir = '.'
def get_vlcconfig():
vlcconfig=None
[enable_maintainer_mode="yes"])
AM_MAINTAINER_MODE
+dnl
+dnl Deprecated options
+dnl to notify packagers that stuff has changed
+dnl
+AC_ARG_ENABLE(python-bindings,
+ [ --enable-python-bindings Always fails for historical reasons)],,
+ [enable_python_bindings="no"])
+AS_IF([test "${enable_python_bindings}" != "no"], [
+ AC_MSG_ERROR([Python bindings are now built from a separate source package])
+])
+
+AC_ARG_ENABLE(java-bindings,
+ [ --enable-java-bindings Always fails for historical reasons],,
+ [enable_java_bindings="no"])
+AS_IF([test "${enable_java_bindings}" != "no"], [
+ AC_MSG_ERROR([Java bindings are now built from a separate source package])
+])
+
dnl
dnl Save *FLAGS
dnl
VLC_ADD_LIBS([x11 xvideo xvmc glx],[-lXsp])
])
-dnl
-dnl Mediacontrol Python bindings
-dnl
-AC_ARG_ENABLE(python-bindings,
- [ --enable-python-bindings Enable Python bindings (default disabled)])
-
-if test "${enable_python_bindings}" = "yes"; then
- AC_PATH_PROG(PYTHON_CONFIG, python-config, no)
- CFLAGS="${CFLAGS_save} `${PYTHON_CONFIG} --cflags`"
- AC_CHECK_HEADER([Python.h],
- PLUGINS_BINDINGS="${PLUGINS_BINDINGS} python",
- AC_MSG_ERROR([You have to install python-dev to build the bindings]),
- []
- )
- CFLAGS="${CFLAGS_save}"
-fi
-AM_CONDITIONAL(BUILD_PYTHON, [test "${enable_python_bindings}" = "yes"])
-
-dnl
-dnl Java bindings
-dnl
-AC_ARG_ENABLE(java-bindings,
- [ --enable-java-bindings Always fail for historical reasons],,
- [enable_java_bindings="no"])
-AS_IF([test "${enable_java_bindings}" != "no"], [
- AC_MSG_ERROR([Java bindings are now built from a separate source package])
-])
-
dnl
dnl test plugins
dnl
VLC_ADD_LDFLAGS([qte_main],[${LDFLAGS_qte} ${LDFLAGS_qt_video}])
fi
-
dnl
dnl Plugin and builtin checks
dnl