summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJan Palus <atler@pld-linux.org>2020-04-18 20:38:52 +0200
committerwm4 <1387750+wm4@users.noreply.github.com>2020-05-14 15:08:33 +0200
commit727b1bff57389774b067f0af662455e64d6109bb (patch)
tree13a54eba3f8c9f33dbd70e69b764bf0398a77002 /wscript
parent65fd6c8ae9b131445bf9bfd99c8600661d93d73c (diff)
downloadmpv-727b1bff57389774b067f0af662455e64d6109bb.tar.bz2
mpv-727b1bff57389774b067f0af662455e64d6109bb.tar.xz
build: link against single EGL provider
when building with rpi EGL is provided by librcmegl library and libEGL should not be linked then
Diffstat (limited to 'wscript')
-rw-r--r--wscript19
1 files changed, 9 insertions, 10 deletions
diff --git a/wscript b/wscript
index 5132a763ed..d0a5833dd9 100644
--- a/wscript
+++ b/wscript
@@ -548,14 +548,19 @@ video_output_features = [
'func': check_libs(['GL', 'GL Xdamage'],
check_cc(fragment=load_fragment('gl_x11.c'),
use=['x11', 'libdl', 'pthreads']))
+ }, {
+ 'name': '--rpi',
+ 'desc': 'Raspberry Pi support',
+ 'func': check_egl_provider(name='brcmegl', check=any_check(
+ check_pkg_config('brcmegl'),
+ check_pkg_config('/opt/vc/lib/pkgconfig/brcmegl.pc')
+ )),
+ 'default': 'disable',
} , {
'name': '--egl',
'desc': 'EGL 1.4',
'groups': [ 'gl' ],
- 'func': compose_checks(
- check_pkg_config('egl'),
- check_statement(['EGL/egl.h'], 'int x[EGL_VERSION_1_4]')
- ),
+ 'func': check_egl_provider('1.4')
} , {
'name': '--egl-x11',
'desc': 'OpenGL X11 EGL Backend',
@@ -708,12 +713,6 @@ video_output_features = [
'desc': 'Direct3D 11 video output',
'deps': 'win32-desktop && shaderc && spirv-cross',
'func': check_cc(header_name=['d3d11_1.h', 'dxgi1_6.h']),
- }, {
- 'name': '--rpi',
- 'desc': 'Raspberry Pi support',
- 'func': any_check(check_pkg_config('brcmegl'),
- check_pkg_config('/opt/vc/lib/pkgconfig/brcmegl.pc')),
- 'default': 'disable',
} , {
'name': '--ios-gl',
'desc': 'iOS OpenGL ES hardware decoding interop support',