summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-01 15:10:42 +0100
committerwm4 <wm4@nowhere>2015-01-01 15:10:42 +0100
commitbafb9b22715313ef0049630228a744d7f2c9363b (patch)
treea1bd25023be5840467291dbe9876dd7c30bc2034 /wscript
parent64b6b2ea458f679ec0370878b1e54b2b1822c4b1 (diff)
downloadmpv-bafb9b22715313ef0049630228a744d7f2c9363b.tar.bz2
mpv-bafb9b22715313ef0049630228a744d7f2c9363b.tar.xz
win32: add native wrappers for pthread functions
Off by default, use --enable-win32-internal-pthreads . This probably still needs a lot more testing. It also won't work on Windows XP.
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index e9073d30a8..338ded3638 100644
--- a/wscript
+++ b/wscript
@@ -125,6 +125,13 @@ main_dependencies = [
'fmsg': 'Unable to find either POSIX or MinGW-w64 environment, ' \
'or compiler does not work.',
}, {
+ 'name': '--win32-internal-pthreads',
+ 'desc': 'internal pthread wrapper for win32 (Vista+)',
+ 'deps_neg': [ 'posix' ],
+ 'deps': [ 'mingw' ],
+ 'func': check_true,
+ 'default': 'disable',
+ }, {
'name': 'pthreads',
'desc': 'POSIX threads',
'func': check_pthreads,