mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 05:37:04 +00:00
build: allow to disable building the cplayer
This commit is contained in:
parent
212374149f
commit
2e241c0a47
4
wscript
4
wscript
@ -728,6 +728,10 @@ scripting_features = [
|
||||
|
||||
standalone_features = [
|
||||
{
|
||||
'name': '--cplayer',
|
||||
'desc': 'mpv CLI player',
|
||||
'func': check_true
|
||||
}, {
|
||||
'name': 'win32-executable',
|
||||
'desc': 'w32 executable',
|
||||
'deps_any': [ 'os-win32', 'os-cygwin'],
|
||||
|
@ -434,6 +434,8 @@ def build(ctx):
|
||||
install_name = '/mpv.app/Contents/Resources/' + res_basename
|
||||
ctx.install_as(ctx.env.BINDIR + install_name, resource)
|
||||
|
||||
|
||||
if ctx.dependency_satisfied('cplayer'):
|
||||
ctx(
|
||||
target = "mpv",
|
||||
source = ctx.filtered_sources(sources) + ["player/main_fn.c"],
|
||||
|
Loading…
Reference in New Issue
Block a user