build/meson: fix x11 test/demo compilation with non-standard xcb
authorRan Benita <ran234@gmail.com>
Sun, 25 Feb 2018 09:51:05 +0000 (11:51 +0200)
committerRan Benita <ran234@gmail.com>
Sun, 25 Feb 2018 09:59:04 +0000 (11:59 +0200)
commit776cb523612f749697b5a0dc8f475b2c7f390b0d
tree9b142059f54acfb227c2661fe09545d2c98e7a9b
parentedb1c662394578a54b7bbed231d918925e5d8150
build/meson: fix x11 test/demo compilation with non-standard xcb

The x11 tests/demos did not depend on xcb and xcb-xkb directly, only
indirectly through link_with: libxkbcommon_x11_internal. So linking
worked, but the xcb and xcb-xkb cflags were *not* included when
compiling them. So when using xcb installed in a non-standard location,
what would happen is:

- Library will link with custom xcb and compile with custom xcb headers.
- Test will link with custom xcb and compile with system xcb headers (if
  exist, otherwise fail).

Fixes: https://github.com/xkbcommon/libxkbcommon/issues/57
Reported-by: @remexre
Signed-off-by: Ran Benita <ran234@gmail.com>
meson.build