diff options
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/wscript_build.py b/wscript_build.py index 4146ca4576..e15b226b15 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -518,34 +518,6 @@ def build(ctx): ctx.install_as(ctx.env.LIBDIR + '/pkgconfig/mpv.pc', 'libmpv/mpv.pc') - if ctx.dependency_satisfied('client-api-examples'): - # This assumes all examples are single-file (as examples should be) - examples_sources = [ - ( "simple/simple.c" ), - ( "cocoa/cocoabasic.m", "cocoa" ), - ] - - # Create a "local" include dir, so we can build the examples without - # installing the headers. - incdir = os.path.join(ctx.bldnode.abspath(), "include") - ctx( - rule = "mkdir -p {1} && ln -s {0} {1}/mpv".format( - os.path.join(ctx.srcnode.abspath(), "libmpv"), incdir), - before = ("c",), - name = "incdir", - ) - - for source in ctx.filtered_sources(examples_sources): - ctx( - target = os.path.splitext(source)[0], - source = "DOCS/client_api_examples/" + source, - includes = [incdir, ctx.srcnode.abspath()], - use = "mpv incdir", - features = "c cprogram", - install_path = None - ) - ctx.env.CFLAGS += ['-isystem', incdir] - if ctx.dependency_satisfied("vf-dlopen-filters"): dlfilters = "telecine tile rectangle framestep ildetect".split() for dlfilter in dlfilters: |