This allows libmpv users to build it as a subproject easily, i.e. meson setup build --force-fallback-for=mpv -Dmpv:libmpv=true, if the mpv source is in the subprojects directory. Mainly useful for development.
Unified · Split
| @@ -1740,6 +1740,10 @@ if get_option('libmpv') · 1739 unmodified lines | |||
| 1740 | headers = ['libmpv/client.h', 'libmpv/render.h', | 1740 | headers = ['libmpv/client.h', 'libmpv/render.h', |
| 1741 | 'libmpv/render_gl.h', 'libmpv/stream_cb.h'] | 1741 | 'libmpv/render_gl.h', 'libmpv/stream_cb.h'] |
| 1742 | install_headers(headers, subdir: 'mpv') | 1742 | install_headers(headers, subdir: 'mpv') |
| 1743 | |||
| 1744 | # Allow projects to build with libmpv by cloning into ./subprojects/mpv | ||
| 1745 | libmpv_dep = declare_dependency(link_with: libmpv) | ||
| 1746 | meson.override_dependency('mpv', libmpv_dep) | ||
| 1743 | endif | 1747 | endif |
| 1744 | 1748 | ||
| 1745 | if get_option('cplayer') | 1749 | if get_option('cplayer') |