diff options
-rw-r--r-- | wscript_build.py | 11 |
1 files changed, 6 insertions, 5 deletions
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" ), |