Skip to content

Commit

Permalink
meson: declare libmpv as a dependency and override it
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dudemanguy committed Oct 3, 2023
1 parent 01c5346 commit ace4d25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,10 @@ if get_option('libmpv')
headers = ['libmpv/client.h', 'libmpv/render.h',
'libmpv/render_gl.h', 'libmpv/stream_cb.h']
install_headers(headers, subdir: 'mpv')

# Allow projects to build with libmpv by cloning into ./subprojects/mpv
libmpv_dep = declare_dependency(link_with: libmpv)
meson.override_dependency('mpv', libmpv_dep)
endif

if get_option('cplayer')
Expand Down

0 comments on commit ace4d25

Please sign in to comment.