wayland: resolve wayland-client symbols at runtime (via libdl)
commitbd32a55d927766205de97c857e317425a9124281
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Mar 2015 14:27:26 +0000 (4 14:27 +0000)
committerChad Versace <chad.versace@intel.com>
Mon, 23 Mar 2015 16:21:00 +0000 (23 09:21 -0700)
treefa189f4179dadcb2cb3237ecd49008871fb7fe85
parent53f059e61d511fc40e2b3c0151726e67b47a1eb8
wayland: resolve wayland-client symbols at runtime (via libdl)

By doing so one can use waffle's other platforms, without having
wayland installed/available on their system.

This patch is based on a similar work by the SDL devs.

v2:
 - Remove implementation details from commit message.
 - Follow SDL's approach.

v3:
 - Include wayland-client.h only when needed (in the C files).

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
cmake/Modules/WafflePrintConfigurationSummary.cmake
src/waffle/CMakeLists.txt
src/waffle/wayland/wayland_display.c
src/waffle/wayland/wayland_platform.c
src/waffle/wayland/wayland_window.c
src/waffle/wayland/wayland_wrapper.c [new file with mode: 0644]
src/waffle/wayland/wayland_wrapper.h [new file with mode: 0644]