History

meson: declare libmpv as a dependency and override it

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.

Dudemanguy committed 3 years ago

Commit ace4d251 parent 01c53461 file · +4 −0Browse files

Unified · Split

meson.build+4−0
@@ -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)
1743endif1747endif
1744 1748
1745if get_option('cplayer')1749if get_option('cplayer')

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t