1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 20:34:58 +00:00
mpv/DOCS/client_api_examples
wm4 4ed0907f2d build: try to make examples build both in-tree and out-of-tree
The examples simple.c and cocoabasic.m can be compiled without
installing libmpv. But also, they didn't use the correct include path
libmpv programs normally use, so they couldn't be built with a properly
installed system-libmpv. That's pretty bad for examples, which are
supposed to show how to use libmpv correctly.

So do some bullshit that symlinks libmpv to a "mpv" include directory
under the build directory. This name-mismatch is a direct consequence of
the bullshit done in 499a6758 (requested in #539 for dumb reasons). (We
don't want to name the client API headers directory "mpv", because that
would be too unspecific, and clashes with having the mpv binary in the
same directory.)

If you have spaces or other "unusual" characters in your paths, the
build will break, because I couldn't find out where waf hides its
function to escape shell parameters (or a way to invoke programs
without involving the shell). Neither does such a thing to be
documented, nor do they seem to have a clear way to do this in
their code.

This also doesn't compile the Qt examples, because everything becomes
even more terrible from there on.
2015-01-02 00:00:03 +01:00
..
cocoa build: try to make examples build both in-tree and out-of-tree 2015-01-02 00:00:03 +01:00
qml DOCS/client_api_examples: don't throw char* in C++ code 2015-01-01 22:56:57 +01:00
qt DOCS/client_api_examples: move all examples into their own subdirs 2015-01-01 23:08:15 +01:00
simple build: try to make examples build both in-tree and out-of-tree 2015-01-02 00:00:03 +01:00
Copyright DOCS/client_api_examples: add an explicit license 2014-12-30 22:47:50 +01:00