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)
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 06946b2..45af31b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1975,7 +1975,19 @@ AC_ARG_ENABLE([wayland],
1975 [want_wayland="no"]) 1975 [want_wayland="no"])
1976 1976
1977if test "${want_wayland}" = "yes"; then 1977if test "${want_wayland}" = "yes"; then
1978 EFL_PKG_CHECK_STRICT([wayland-client >= 1.11.0]) 1978 EFL_PKG_CHECK_STRICT([wayland-client >= 1.11.0 wayland-scanner >= 1.11.0])
1979 PKG_CHECK_MODULES([WAYLAND], [wayland-scanner >= 1.11.0],
1980 [
1981 AC_ARG_VAR([wayland_scanner], [The wayland-scanner executable])
1982 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
1983 if test x$wayland_scanner = x; then
1984 PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
1985 wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
1986 fi
1987 AM_CONDITIONAL([HAVE_WAYLAND_SCANNER], [test x$wayland_scanner != x])
1988 ac_wayland_protocols_pkgdatadir=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
1989 AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, $ac_wayland_protocols_pkgdatadir)
1990 ])
1979fi 1991fi
1980 1992
1981# Wayland IVI-Shell 1993# Wayland IVI-Shell