mirror of
https://github.com/videolan/vlc.git
synced 2024-12-14 20:24:21 +08:00
28 lines
845 B
Makefile
28 lines
845 B
Makefile
##############################################################################
|
|
# Building the Python binding
|
|
###############################################################################
|
|
|
|
EXTRA_DIST = vlcglue.h setup.py vlcwrapper.py vlcwidget.py \
|
|
vlc_module.c \
|
|
vlc_mediacontrol.c vlc_position.c \
|
|
vlc_instance.c vlc_input.c
|
|
|
|
if BUILD_PYTHON
|
|
|
|
all:
|
|
if HAVE_WIN32
|
|
COMPILERARG=--compiler=mingw32
|
|
else
|
|
COMPILERARG=
|
|
endif
|
|
srcdir="$(srcdir)" top_builddir="$(top_builddir)" python "$(srcdir)/setup.py" build $(COMPILERARG) "--build-base=$(top_builddir)/bindings/python" "--build-temp=$(top_builddir)/bindings/python"
|
|
|
|
# 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
|
|
install:
|
|
python $(srcdir)/setup.py install
|
|
|
|
clean:
|
|
$(RM) -rf build
|
|
endif
|