return []
else:
cflags=os.popen('%s --cflags' % vlcconfig, 'r').readline().rstrip().split()
- cflags.append( "-D__VLC__")
+ cflags.append( "-D__LIBVLC__")
return cflags
def get_ldflags():
# To compile in a local vlc tree
native_libvlc_test = Extension( 'native_libvlc_test',
sources = ['native/init.c', 'native/url.c', 'native/i18n.c',
- 'native/stats.c', 'native/libvlc.c', 'native/profiles.c'],
+ 'native/stats.c', 'native/libvlc.c', 'native/profiles.c',
+ 'native/algo.c', 'native/threads.c'],
include_dirs = ['../include', '../', '/usr/win32/include' ],
- extra_objects = [ '../src/.libs/libvlc.so' ],
+ extra_objects = [ '../src/.libs/libvlc.so', '../src/.libs/libvlc-control.so' ],
extra_compile_args = get_cflags(),
extra_link_args = [ '-L../..' ] + get_ldflags(),
)