[PATCH] Install header files and pkg-config file for external modules

Pekka Paalanen ppaalanen at gmail.com
Sat Feb 16 01:46:09 PST 2013


On Fri, 15 Feb 2013 20:53:45 -0500
Kristian Høgsberg <krh at bitplanet.net> wrote:

> This patch installs the three header files that define the compositor
> plugin interface as well as a pkg-config file.  This allows
> building weston plugins outside the weston tree.  We currently don't make
> any guarantees about the plugin API/ABI except that within a stable
> branch we won't break it.
> ---
>  configure.ac             | 17 +++++++++++++++--
>  src/Makefile.am          | 11 +++++++++++
>  src/compositor.c         |  9 +++++++++
>  src/compositor.h         |  8 ++++++--
>  src/xwayland/Makefile.am |  1 +
>  tests/Makefile.am        |  6 +++++-
>  6 files changed, 47 insertions(+), 5 deletions(-)

Forgot to add weston.pc.in perhaps?


Thanks,
pq

> 
> diff --git a/configure.ac b/configure.ac
> index 32fbb4b..4f2a9e0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1,10 +1,21 @@
> +m4_define([weston_major_version], [1])
> +m4_define([weston_minor_version], [0])
> +m4_define([weston_micro_version], [90])
> +m4_define([weston_version],
> +          [weston_major_version.weston_minor_version.weston_micro_version])
> +
>  AC_PREREQ([2.64])
>  AC_INIT([weston],
> -        [1.0.90],
> -        [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.0.90],
> +        [weston_version],
> +        [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=weston_version],
>          [weston],
>          [http://wayland.freedesktop.org/])
>  
> +AC_SUBST([WESTON_VERSION_MAJOR], [weston_major_version])
> +AC_SUBST([WESTON_VERSION_MINOR], [weston_minor_version])
> +AC_SUBST([WESTON_VERSION_MICRO], [weston_micro_version])
> +AC_SUBST([WESTON_VERSION], [weston_version])
> +
>  AC_CONFIG_HEADERS([config.h])
>  
>  AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
> @@ -294,6 +305,8 @@ AC_CONFIG_FILES([Makefile
>  		 shared/Makefile
>  		 src/Makefile
>  		 src/xwayland/Makefile
> +		 src/version.h
> +		 src/weston.pc
>  		 clients/Makefile
>  		 wcap/Makefile
>  		 data/Makefile


More information about the wayland-devel mailing list