diff options
author | wm4 <wm4@nowhere> | 2015-01-01 23:56:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-02 00:00:03 +0100 |
commit | 4ed0907f2d596ba66652ca6d739cc12dae7dc2a0 (patch) | |
tree | 129a7b1670e0a4328d60d6cf7de7f9539d87ae09 /DOCS/tech-overview.txt | |
parent | da4f7225796037b814919e79912cfaa7a9ddc113 (diff) | |
download | mpv-4ed0907f2d596ba66652ca6d739cc12dae7dc2a0.tar.bz2 mpv-4ed0907f2d596ba66652ca6d739cc12dae7dc2a0.tar.xz |
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.
Diffstat (limited to 'DOCS/tech-overview.txt')
0 files changed, 0 insertions, 0 deletions