2005-11-26 23:36:28 +08:00
|
|
|
##############################################################################
|
|
|
|
# Building the Python binding
|
|
|
|
###############################################################################
|
|
|
|
|
2006-09-22 21:07:07 +08:00
|
|
|
EXTRA_DIST = vlcglue.h setup.py vlcwrapper.py vlcwidget.py \
|
2007-01-06 10:04:34 +08:00
|
|
|
vlc_module.c \
|
2006-09-20 19:10:44 +08:00
|
|
|
vlc_mediacontrol.c vlc_position.c \
|
|
|
|
vlc_instance.c vlc_input.c
|
2006-03-30 22:31:02 +08:00
|
|
|
|
|
|
|
if BUILD_PYTHON
|
2006-02-22 21:15:10 +08:00
|
|
|
|
2007-04-27 22:25:08 +08:00
|
|
|
all:
|
2005-12-09 22:17:18 +08:00
|
|
|
if HAVE_WIN32
|
2007-04-24 22:02:40 +08:00
|
|
|
COMPILERARG=--compiler=mingw32
|
2005-12-09 22:17:18 +08:00
|
|
|
else
|
2007-04-24 22:02:40 +08:00
|
|
|
COMPILERARG=
|
2005-12-09 22:17:18 +08:00
|
|
|
endif
|
2006-09-26 00:01:07 +08:00
|
|
|
srcdir="$(srcdir)" top_builddir="$(top_builddir)" python "$(srcdir)/setup.py" build $(COMPILERARG) "--build-base=$(top_builddir)/bindings/python" "--build-temp=$(top_builddir)/bindings/python"
|
2005-11-26 23:36:28 +08:00
|
|
|
|
2006-02-22 21:15:10 +08:00
|
|
|
# FIXME: python setup.py install does not have any option to install from a different build directory
|
|
|
|
# so this will not work in a separate builddir
|
2005-11-26 23:36:28 +08:00
|
|
|
install:
|
2006-02-22 21:15:10 +08:00
|
|
|
python $(srcdir)/setup.py install
|
2005-11-26 23:36:28 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -rf build
|
|
|
|
endif
|