summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <maister@archlinux.us>2014-03-09 15:26:31 +0100
committerwm4 <wm4@nowhere>2014-03-09 19:11:17 +0100
commitbaa6d9491cd3733a891c0c07a92ff42f0bc8b48d (patch)
treeb4a40801c5abc621651c50a1079aeebbab7c1218 /wscript
parent346c687d5ab2b6b2a876d0e228161252fddbdc4a (diff)
downloadmpv-baa6d9491cd3733a891c0c07a92ff42f0bc8b48d.tar.bz2
mpv-baa6d9491cd3733a891c0c07a92ff42f0bc8b48d.tar.xz
build: fix compilation with MinGW-w64
References to WinMM/OLE/UUID were missing. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'wscript')
-rw-r--r--wscript16
1 files changed, 14 insertions, 2 deletions
diff --git a/wscript b/wscript
index 57543d66bc..fca0c4903b 100644
--- a/wscript
+++ b/wscript
@@ -525,6 +525,18 @@ video_output_features = [
'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',
'func': check_pkg_config('wayland-client', '>= 1.3.0',
@@ -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'),
}
]