meson: fix building screen-share module
authorStefan Agner <stefan@agner.ch>
Tue, 19 Mar 2019 23:09:51 +0000 (00:09 +0100)
committerStefan Agner <stefan@agner.ch>
Tue, 19 Mar 2019 23:09:51 +0000 (00:09 +0100)
When building screen-share module with meson loading the module
fails with:
  [00:01:28.604] Failed to load module: /usr/local/lib/weston/screen-share.so: undefined symbol: os_create_anonymous_file
  Failed to process Wayland connection: Broken pipe
  failed to create display: Broken pipe

The function os_create_anonymous_file is defined in libshared,
adding libshared to the dependency makes sure the function gets
compiled into screen-share.so.

Fixes: https://gitlab.freedesktop.org/wayland/weston/issues/208
Signed-off-by: Stefan Agner <stefan@agner.ch>
compositor/meson.build

index 420a9605094d7535d3082f8349d3fb48c35a9661..d5d7282f7da50b133f06b4d68cba87fe0cf6a9a8 100644 (file)
@@ -61,6 +61,7 @@ if get_option('screenshare')
                fullscreen_shell_unstable_v1_protocol_c,
        ]
        deps_screenshare = [
+               dep_libshared,
                dep_libweston,
                dep_wayland_client,
        ]