diff options
author | wm4 <wm4@nowhere> | 2014-11-17 23:47:30 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-17 23:47:30 +0100 |
commit | 41fd7fa021644f71f3d80f5bab8914f8acd5180f (patch) | |
tree | 119ec980dd59184d61a1ed6f064287f01a47ad1d | |
parent | 469eb321e8ec123936ebe74ab01e1c24341ba486 (diff) | |
download | mpv-41fd7fa021644f71f3d80f5bab8914f8acd5180f.tar.bz2 mpv-41fd7fa021644f71f3d80f5bab8914f8acd5180f.tar.xz |
build: check for mingw-w64 explicitly
And fail building if not any of MingW-w64 or POSIX are found. Obviously,
mpv needs one of those 2.
-rw-r--r-- | wscript | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -107,7 +107,22 @@ main_dependencies = [ 'name': 'mingw', 'desc': 'MinGW', 'deps': [ 'os-win32' ], - 'func': check_statement('stddef.h', 'int x = __MINGW32__') + 'func': check_statement('stddef.h', 'int x = __MINGW32__;' + 'int y = __MINGW64_VERSION_MAJOR'), + }, { + 'name': 'posix', + 'desc': 'POSIX environment', + # This should be good enough. + 'func': check_statement(['poll.h', 'unistd.h'], + 'struct pollfd pfd; poll(&pfd, 1, 0); fork(); int f[2]; pipe(f)'), + }, { + 'name': 'posix-or-mingw', + 'desc': 'programming environment', + 'deps_any': [ 'posix', 'mingw' ], + 'func': check_true, + 'req': True, + 'fmsg': 'Unable to find either POSIX or MinGW-w64 environment, ' \ + 'or compiler does not work.', }, { 'name': 'pthreads', 'desc': 'POSIX threads', |