build: Add wayland-scanner.pc.

To allow user program to include wayland-scanner.m4 in tarball, move
the path variables from it into wayland-scanner.pc.
This commit is contained in:
Daiki Ueno 2013-07-02 18:38:15 +09:00 committed by Kristian Høgsberg
parent 60fc83af6e
commit 40fc79d5b0
7 changed files with 32 additions and 18 deletions

11
wayland-scanner.m4 Normal file
View file

@ -0,0 +1,11 @@
AC_DEFUN([WAYLAND_SCANNER_RULES], [
PKG_PROG_PKG_CONFIG
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
AC_SUBST([wayland_scanner])
wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk
AC_SUBST_FILE([wayland_scanner_rules])
AC_SUBST([wayland_protocoldir], [$1])
])