From 5361c0b5d897ec7c969d2a75bb2dde345d62a59c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Aug 2017 11:40:39 +0200 Subject: build: pick a main-fn source file only if cplayer is built libmpv does not need this. --- wscript_build.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index e0eaec4b66..d96ff40133 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -119,11 +119,12 @@ def build(ctx): ctx(features = "ebml_header", target = "ebml_types.h") ctx(features = "ebml_definitions", target = "ebml_defs.c") - main_fn_c = ctx.pick_first_matching_dep([ - ( "osdep/main-fn-cocoa.c", "cocoa" ), - ( "osdep/main-fn-unix.c", "posix" ), - ( "osdep/main-fn-win.c", "win32-desktop" ), - ]) + if ctx.dependency_satisfied('cplayer'): + main_fn_c = ctx.pick_first_matching_dep([ + ( "osdep/main-fn-cocoa.c", "cocoa" ), + ( "osdep/main-fn-unix.c", "posix" ), + ( "osdep/main-fn-win.c", "win32-desktop" ), + ]) getch2_c = ctx.pick_first_matching_dep([ ( "osdep/terminal-unix.c", "posix" ), -- cgit v1.2.3