1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-27 19:01:07 +00:00

build: pick a main-fn source file only if cplayer is built

libmpv does not need this.
This commit is contained in:
wm4 2017-08-22 11:40:39 +02:00
parent 09c501a40e
commit 5361c0b5d8

View File

@ -119,6 +119,7 @@ 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")
if ctx.dependency_satisfied('cplayer'):
main_fn_c = ctx.pick_first_matching_dep([ main_fn_c = ctx.pick_first_matching_dep([
( "osdep/main-fn-cocoa.c", "cocoa" ), ( "osdep/main-fn-cocoa.c", "cocoa" ),
( "osdep/main-fn-unix.c", "posix" ), ( "osdep/main-fn-unix.c", "posix" ),