mirror of
https://github.com/Relintai/rpi_player.git
synced 2024-11-23 15:27:42 +01:00
Link to libvlc.
This commit is contained in:
parent
8a50158e51
commit
ad405727ed
5
custom_modules/libvlc/SCsub
Normal file
5
custom_modules/libvlc/SCsub
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
Import("env")
|
||||
|
||||
#env.Prepend(LINKFLAGS=["-lvlc"])
|
46
custom_modules/libvlc/detect.py
Normal file
46
custom_modules/libvlc/detect.py
Normal 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"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user