42 lines
947 B
Python
42 lines
947 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
##
|
|
## @author Edouard DUPIN
|
|
##
|
|
## @copyright 2012, Edouard DUPIN, all right reserved
|
|
##
|
|
## @license MPL v2.0 (see license file)
|
|
##
|
|
|
|
from lutin import debug
|
|
from lutin import system
|
|
from lutin import tools
|
|
from lutin import env
|
|
import os
|
|
|
|
class System(system.System):
|
|
def __init__(self, target):
|
|
system.System.__init__(self)
|
|
# create some HELP:
|
|
self.set_help("vdpau : Video decaudatge hardware Acceleration")
|
|
# check if the library exist:
|
|
if not os.path.isfile("/usr/include/vdpau/vdpau.h"):
|
|
# we did not find the library reqiested (just return) (automaticly set at false)
|
|
return;
|
|
# No check ==> on the basic std libs:
|
|
self.set_valid(True)
|
|
self.add_flag("link-lib", "vdpau")
|
|
self.add_depend([
|
|
'X11'
|
|
])
|
|
if env.get_isolate_system() == True:
|
|
self.add_header_file([
|
|
"/usr/include/vdpau/*"
|
|
],
|
|
destination_path="vdpau",
|
|
recursive=True)
|
|
|
|
|
|
|
|
|