Link to libvlc.

This commit is contained in:
Relintai 2021-06-05 22:48:34 +02:00
parent 8a50158e51
commit ad405727ed
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/env python
Import("env")
#env.Prepend(LINKFLAGS=["-lvlc"])

View File

@ -0,0 +1,46 @@
import os
import platform
import sys
def is_active():
return True
def get_name():
return "sdl2"
def can_build():
if os.name == "posix" or sys.platform == "darwin":
x11_error = os.system("pkg-config --version > /dev/null")
if x11_error:
return False
libevent_err = os.system("pkg-config libvlc --modversion --silence-errors > /dev/null ")
if libevent_err:
print("libvlc not found!")
return False
print("libvlc found!")
return True
return False
def get_opts():
return []
def get_flags():
return []
def configure(env):
env.ParseConfig("pkg-config libvlc --cflags --libs")
env.Append(CPPDEFINES=["VLC_PRESENT"])