diff options
author | wm4 <wm4@nowhere> | 2015-03-06 11:01:53 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-06 11:31:06 +0100 |
commit | dfa562b5db95735edca8f7730d887f420e1cd585 (patch) | |
tree | 6a658bec39d64d8af7a98f807b0f8a3002a32476 /wscript | |
parent | 90496f3088fb635916fd97ffa5bcdc57d281e1ca (diff) |
build: make vdpau and dxva2 checks nicer
Using check_statement() with an empty statement just to check for the
header is quite a hack. Fix check_headers() (so it takes a "use"
parameter), and use it for the checks instead.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -665,7 +665,7 @@ hwaccel_features = [ 'name': '--vaapi-hwaccel', 'desc': 'libavcodec VAAPI hwaccel', 'deps': [ 'vaapi' ], - 'func': check_statement('libavcodec/vaapi.h', '', use='libav'), + 'func': check_headers('libavcodec/vaapi.h', use='libav'), } , { 'name': '--vda-hwaccel', 'desc': 'libavcodec VDA hwaccel', @@ -691,7 +691,7 @@ hwaccel_features = [ 'name': '--dxva2-hwaccel', 'desc': 'libavcodec DXVA2 hwaccel', 'deps': [ 'gdi' ], - 'func': check_statement('libavcodec/dxva2.h', '', use='libav'), + 'func': check_headers('libavcodec/dxva2.h', use='libav'), } ] |