mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
build: fix compilation with MinGW-w64
References to WinMM/OLE/UUID were missing. Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
parent
346c687d5a
commit
baa6d9491c
16
wscript
16
wscript
@ -524,6 +524,18 @@ video_output_features = [
|
||||
'name': 'gdi',
|
||||
'desc': 'GDI',
|
||||
'func': check_cc(lib='gdi32')
|
||||
} , {
|
||||
'name': 'winmm',
|
||||
'desc': 'WinMM',
|
||||
'func': check_cc(lib='winmm')
|
||||
} , {
|
||||
'name': 'ole',
|
||||
'desc': 'OLE',
|
||||
'func': check_cc(lib='ole32')
|
||||
} , {
|
||||
'name': 'uuid',
|
||||
'desc': 'UUID',
|
||||
'func': check_cc(lib='uuid')
|
||||
} , {
|
||||
'name': '--wayland',
|
||||
'desc': 'Wayland',
|
||||
@ -590,7 +602,7 @@ video_output_features = [
|
||||
} , {
|
||||
'name': '--gl-win32',
|
||||
'desc': 'OpenGL Win32 Backend',
|
||||
'deps': [ 'gdi' ],
|
||||
'deps': [ 'gdi', 'winmm', 'ole', 'uuid' ],
|
||||
'groups': [ 'gl' ],
|
||||
'func': check_statement('windows.h', 'wglCreateContext(0)',
|
||||
lib='opengl32')
|
||||
@ -653,7 +665,7 @@ video_output_features = [
|
||||
}, {
|
||||
'name': '--direct3d',
|
||||
'desc': 'Direct3D support',
|
||||
'deps': [ 'gdi' ],
|
||||
'deps': [ 'gdi', 'winmm', 'ole', 'uuid' ],
|
||||
'func': check_cc(header_name='d3d9.h'),
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user