summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2013-12-28 04:45:52 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2014-01-02 05:30:49 +0100
commite9f577eb9a81cea09209bbf4eb910f89caa63b02 (patch)
tree9e097866d594edcb7ea975d64eed09d66445bdac /waftools
parentfd89a7598820f5b5a7a4b7029e31dd100cefbb96 (diff)
downloadmpv-e9f577eb9a81cea09209bbf4eb910f89caa63b02.tar.bz2
mpv-e9f577eb9a81cea09209bbf4eb910f89caa63b02.tar.xz
Windows: use the GUI subsystem, attach to console
This is necessary to start mpv without forcing a console window, but also breaks console usability. A workaround is to call mpv from a wrapper process that uses the console subsystem and helps redirecting the standard streams and WriteConsole output to where they belong.
Diffstat (limited to 'waftools')
-rw-r--r--waftools/detections/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py
index ab658b8ce3..a3ad2835d2 100644
--- a/waftools/detections/compiler.py
+++ b/waftools/detections/compiler.py
@@ -36,7 +36,7 @@ def __add_mingw_flags__(ctx):
ctx.env.CFLAGS += ['-DBYTE_ORDER=1234']
ctx.env.CFLAGS += ['-DLITLE_ENDIAN=1234']
ctx.env.CFLAGS += ['-DBIG_ENDIAN=4321']
- ctx.env.LAST_LINKFLAGS += ['-mconsole']
+ ctx.env.LAST_LINKFLAGS += ['-mwindows']
def __add_cygwin_flags__(ctx):
ctx.env.CFLAGS += ['-mwin32']