summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-23 15:32:23 +0100
committerwm4 <wm4@nowhere>2015-01-23 15:32:23 +0100
commita0ed62fc1d427bc02af8a2865d491ebde73ad2f0 (patch)
tree34b256ff319153d9d8f3616a1e135879c510c4ed /wscript_build.py
parente5bceb061b50fe405caa0851f2d309e6801e82f7 (diff)
downloadmpv-a0ed62fc1d427bc02af8a2865d491ebde73ad2f0.tar.bz2
mpv-a0ed62fc1d427bc02af8a2865d491ebde73ad2f0.tar.xz
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).
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py28
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: