summaryrefslogtreecommitdiffstats
path: root/DOCS
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 /DOCS
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 'DOCS')
-rw-r--r--DOCS/client_api_examples/README.md10
-rw-r--r--DOCS/client_api_examples/cocoa/cocoabasic.m2
-rw-r--r--DOCS/client_api_examples/simple/simple.c2
3 files changed, 9 insertions, 5 deletions
diff --git a/DOCS/client_api_examples/README.md b/DOCS/client_api_examples/README.md
index 9de90a6748..1b6b40b082 100644
--- a/DOCS/client_api_examples/README.md
+++ b/DOCS/client_api_examples/README.md
@@ -8,6 +8,11 @@ cocoa
Shows how to embed the mpv video window in Objective-C/Cocoa.
+qt
+--
+
+Shows how to embed the mpv video window in Qt (using normal desktop widgets).
+
qml
---
@@ -19,11 +24,6 @@ qml_direct
Alternative example, which typically avoids a FBO indirection. Might be
slightly faster, but is less flexible and harder to use.
-qt
---
-
-Shows how to embed the mpv video window in Qt (using normal desktop widgets).
-
simple
------
diff --git a/DOCS/client_api_examples/cocoa/cocoabasic.m b/DOCS/client_api_examples/cocoa/cocoabasic.m
index ea3e9c69d5..08c9b18e14 100644
--- a/DOCS/client_api_examples/cocoa/cocoabasic.m
+++ b/DOCS/client_api_examples/cocoa/cocoabasic.m
@@ -3,6 +3,8 @@
// but that's not quite ready yet.
// You may need a basic Info.plist and MainMenu.xib to make this work.
+// Build with: clang -o cocoabasic cocoabasic.m `pkg-config --libs --cflags mpv`
+
#include <mpv/client.h>
#include <stdio.h>
diff --git a/DOCS/client_api_examples/simple/simple.c b/DOCS/client_api_examples/simple/simple.c
index ca8699a076..d18003dc2d 100644
--- a/DOCS/client_api_examples/simple/simple.c
+++ b/DOCS/client_api_examples/simple/simple.c
@@ -1,3 +1,5 @@
+// Build with: gcc -o simple simple.c `pkg-config --libs --cflags mpv`
+
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>