wayvnc icon indicating copy to clipboard operation
wayvnc copied to clipboard

Add meson subproject wraps for aml and neatvnc

Open Consolatis opened this issue 3 years ago • 1 comments

Makes compiling as easy as: meson build_dir && meson compile -C build_dir

Consolatis avatar Jan 27 '22 21:01 Consolatis

https://github.com/any1/wayvnc/blob/3b26a43b97722be451ac851597e36ecd11c4ba8a/meson.build#L52-L69

The use of subprojects as preferred with fallback to system dependencies means that adding a wrap file actually breaks the ability to build with system deps. This may be the reason that they aren't already wrap files.

I would advise nuking all this code though. See https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section

dependency('foo') should be enough, and simply use a suitable wrap file that specifies a [provide] section. Meson will natively do subproject fallback, and it can even be configured to prefer subprojects using --wrap-mode=forcefallback.

eli-schwartz avatar Jan 28 '22 02:01 eli-schwartz