Commit 03dbdfe7 authored by Rafaël Carré's avatar Rafaël Carré

Fix out of tree building of the python bindings

parent 97a9d4e9
...@@ -15,12 +15,10 @@ if HAVE_WIN32 ...@@ -15,12 +15,10 @@ if HAVE_WIN32
else else
COMPILERARG= COMPILERARG=
endif 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" srcdir="`cd $(srcdir);pwd`" top_builddir="$(abs_top_builddir)" python "$(srcdir)/setup.py" build $(COMPILERARG)
# 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: install:
python $(srcdir)/setup.py install top_builddir="$(abs_top_builddir)" srcdir="`cd $(srcdir);pwd`" python $(srcdir)/setup.py install
clean: clean:
$(RM) -rf build $(RM) -rf build
......
...@@ -92,12 +92,12 @@ source_files = [ 'vlc_module.c' ] ...@@ -92,12 +92,12 @@ source_files = [ 'vlc_module.c' ]
# To compile in a local vlc tree # To compile in a local vlc tree
vlclocal = Extension('vlc', vlclocal = Extension('vlc',
sources = [ os.path.join( srcdir, f ) for f in source_files ], sources = [ os.path.join( srcdir, f ) for f in source_files ],
include_dirs = [ top_builddir, include_dirs = [ top_builddir,
os.path.join( srcdir, '..', '..', 'include' ), os.path.join( srcdir, '..', '..', 'include' ),
srcdir, srcdir,
'/usr/win32/include' ], '/usr/win32/include' ],
extra_objects = [ ], extra_objects = [ ],
extra_compile_args = get_cflags(), extra_compile_args = get_cflags(),
extra_link_args = linkargs + get_ldflags(), extra_link_args = linkargs + get_ldflags(),
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment