From a0ed62fc1d427bc02af8a2865d491ebde73ad2f0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Jan 2015 15:32:23 +0100 Subject: build: remove bogus client API examples build The symlink trick made waf go crazy (deleting source files, getting tangled up in infinite recursion... I wish I was joking). This means we still can't build the client API examples in a reasonable way using the include files of the local repository (instead of globally installed headers). Not building them at all is better than deleting source files. Instead, provide some manual instructions how to build each example (except for the Qt examples, which provide qmake project files). --- wscript_build.py | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'wscript_build.py') 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: -- cgit v1.2.3