summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-01-17 15:37:50 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-01-18 13:04:47 -0600
commit553751cb40b79f23b9c8e4d057c2f15feb2c52bf (patch)
treeef03ec34ad0cf8cdc5159417d467f73c15a2b4d5 /configure.ac
parent76066f2d9fa38aa7633e7c289bdc998e3325c6f7 (diff)
downloadefl-553751cb40b79f23b9c8e4d057c2f15feb2c52bf.tar.gz
build: Add rules to auto-generate wayland headers from protocol xml
We've been checking in protocol headers and implementations that wayland-scanner generates. We should just generate them from the upstream xml files.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 06946b2400..45af31bdd0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1975,7 +1975,19 @@ AC_ARG_ENABLE([wayland],
[want_wayland="no"])
if test "${want_wayland}" = "yes"; then
- EFL_PKG_CHECK_STRICT([wayland-client >= 1.11.0])
+ EFL_PKG_CHECK_STRICT([wayland-client >= 1.11.0 wayland-scanner >= 1.11.0])
+ PKG_CHECK_MODULES([WAYLAND], [wayland-scanner >= 1.11.0],
+ [
+ AC_ARG_VAR([wayland_scanner], [The wayland-scanner executable])
+ AC_PATH_PROG([wayland_scanner], [wayland-scanner])
+ if test x$wayland_scanner = x; then
+ PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
+ wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
+ fi
+ AM_CONDITIONAL([HAVE_WAYLAND_SCANNER], [test x$wayland_scanner != x])
+ ac_wayland_protocols_pkgdatadir=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
+ AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, $ac_wayland_protocols_pkgdatadir)
+ ])
fi
# Wayland IVI-Shell