mirror of
https://github.com/Relintai/rpi_player.git
synced 2025-02-20 09:44:19 +01:00
47 lines
748 B
Python
47 lines
748 B
Python
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"])
|
|
|
|
|