mirror of https://github.com/mpv-player/mpv
build: don't build win32 mpv.com wrapper with --disable-cplayer
It'll be useless.
This commit is contained in:
parent
e627168233
commit
cfa9724a79
|
@ -427,6 +427,20 @@ def build(ctx):
|
||||||
ctx.install_as(os.path.join(ctx.env.DOCDIR, f),
|
ctx.install_as(os.path.join(ctx.env.DOCDIR, f),
|
||||||
os.path.join('etc/', f))
|
os.path.join('etc/', f))
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
build_shared = ctx.dependency_satisfied('libmpv-shared')
|
build_shared = ctx.dependency_satisfied('libmpv-shared')
|
||||||
build_static = ctx.dependency_satisfied('libmpv-static')
|
build_static = ctx.dependency_satisfied('libmpv-static')
|
||||||
if build_shared or build_static:
|
if build_shared or build_static:
|
||||||
|
@ -501,19 +515,6 @@ def build(ctx):
|
||||||
install_path = None
|
install_path = None
|
||||||
)
|
)
|
||||||
|
|
||||||
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("vf-dlopen-filters"):
|
if ctx.dependency_satisfied("vf-dlopen-filters"):
|
||||||
dlfilters = "showqscale telecine tile rectangle framestep \
|
dlfilters = "showqscale telecine tile rectangle framestep \
|
||||||
ildetect".split()
|
ildetect".split()
|
||||||
|
|
Loading…
Reference in New Issue