mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 10:50:53 +00:00
build: pick a main-fn source file only if cplayer is built
libmpv does not need this.
This commit is contained in:
parent
09c501a40e
commit
5361c0b5d8
@ -119,11 +119,12 @@ def build(ctx):
|
|||||||
ctx(features = "ebml_header", target = "ebml_types.h")
|
ctx(features = "ebml_header", target = "ebml_types.h")
|
||||||
ctx(features = "ebml_definitions", target = "ebml_defs.c")
|
ctx(features = "ebml_definitions", target = "ebml_defs.c")
|
||||||
|
|
||||||
main_fn_c = ctx.pick_first_matching_dep([
|
if ctx.dependency_satisfied('cplayer'):
|
||||||
( "osdep/main-fn-cocoa.c", "cocoa" ),
|
main_fn_c = ctx.pick_first_matching_dep([
|
||||||
( "osdep/main-fn-unix.c", "posix" ),
|
( "osdep/main-fn-cocoa.c", "cocoa" ),
|
||||||
( "osdep/main-fn-win.c", "win32-desktop" ),
|
( "osdep/main-fn-unix.c", "posix" ),
|
||||||
])
|
( "osdep/main-fn-win.c", "win32-desktop" ),
|
||||||
|
])
|
||||||
|
|
||||||
getch2_c = ctx.pick_first_matching_dep([
|
getch2_c = ctx.pick_first_matching_dep([
|
||||||
( "osdep/terminal-unix.c", "posix" ),
|
( "osdep/terminal-unix.c", "posix" ),
|
||||||
|
Loading…
Reference in New Issue
Block a user