From 1437d9b8bc49228c626c751ff39f595b40ec718d Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Thu, 2 Jan 2014 05:26:22 +0100 Subject: Add Windows console wrapper program (mpv.com) --- wscript_build.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index cf3ccbfe45..4f216e41fb 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -447,6 +447,19 @@ def build(ctx): **cprog_kwargs ) + if ctx.env.DEST_OS == 'win32': + wrapctx = ctx( + target = "mpv", + source = ['osdep/win32-console-wrapper.c'], + features = "c cprogram", + install_path = ctx.env.BINDIR + ) + + wrapctx.env.cprogram_PATTERN = "%s.com" + wrapflags = ['-municode', '-mconsole'] + wrapctx.env.CFLAGS = wrapflags + wrapctx.env.LAST_LINKFLAGS = wrapflags + if ctx.dependency_satisfied('macosx-bundle'): from waflib import Utils ctx.install_files(ctx.env.BINDIR, 'mpv', chmod=Utils.O755) -- cgit v1.2.3