]> git.sesse.net Git - vlc/blobdiff - test/setup.py
fix for libvlc_get_input_thread: check for null before locking. fixes #1522
[vlc] / test / setup.py
index dc43b12754d584a39f61d583b69205ed65835bf4..d03c4eb374e33e796d9eff5bd48f9fec3178b571 100644 (file)
@@ -21,7 +21,7 @@ def get_cflags():
         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():
@@ -41,7 +41,16 @@ 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/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', '../src/.libs/libvlc-control.so' ],
+                extra_compile_args = get_cflags(),
+                           extra_link_args = [ '-L../..' ]  + get_ldflags(),
+                )
+
+native_gc_test = Extension( 'native_gc_test',
+                sources = ['native/gc.c'],
                 include_dirs = ['../include', '../', '/usr/win32/include' ],
                 extra_objects = [ '../src/.libs/libvlc.so' ],
                 extra_compile_args = get_cflags(),
@@ -49,3 +58,6 @@ native_libvlc_test = Extension( 'native_libvlc_test',
                 )
 
 setup( name = 'native_libvlc_test' ,version = '1242', ext_modules = [ native_libvlc_test ] )
+
+
+setup( name = 'native_gc_test' ,version = '1242', ext_modules = [ native_gc_test ] )