[PATCH wayland] build: add uninstalled pkg-config files

Kristian Høgsberg hoegsberg at gmail.com
Tue May 29 07:04:45 PDT 2012


On Tue, May 29, 2012 at 12:05:58PM +0300, Pekka Paalanen wrote:
> Required for building apps against wayland libraries that have not been
> installed.

I've seen this before, but how do you actually use uninstalled .pc files?

Kristian

> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> ---
>  configure.ac                         |    2 ++
>  src/wayland-client-uninstalled.pc.in |    8 ++++++++
>  src/wayland-server-uninstalled.pc.in |    8 ++++++++
>  3 files changed, 18 insertions(+), 0 deletions(-)
>  create mode 100644 src/wayland-client-uninstalled.pc.in
>  create mode 100644 src/wayland-server-uninstalled.pc.in
> 
> diff --git a/configure.ac b/configure.ac
> index ebbcd49..e668594 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -83,6 +83,8 @@ AC_CONFIG_FILES([Makefile
>  		 doc/Makefile
>  		 doc/Wayland/Makefile
>  		 src/Makefile
> +		 src/wayland-server-uninstalled.pc
> +		 src/wayland-client-uninstalled.pc
>  		 src/wayland-server.pc
>  		 src/wayland-client.pc
>  		 src/wayland-version.h
> diff --git a/src/wayland-client-uninstalled.pc.in b/src/wayland-client-uninstalled.pc.in
> new file mode 100644
> index 0000000..559a7e1
> --- /dev/null
> +++ b/src/wayland-client-uninstalled.pc.in
> @@ -0,0 +1,8 @@
> +libdir=@abs_top_srcdir@/src/.libs
> +includedir=@abs_top_srcdir@/src
> + 
> +Name: Wayland Client
> +Description: Wayland client side library (not installed)
> +Version: @PACKAGE_VERSION@
> +Cflags: -I${includedir}
> +Libs: -L${libdir} -lwayland-client
> diff --git a/src/wayland-server-uninstalled.pc.in b/src/wayland-server-uninstalled.pc.in
> new file mode 100644
> index 0000000..a113ad6
> --- /dev/null
> +++ b/src/wayland-server-uninstalled.pc.in
> @@ -0,0 +1,8 @@
> +libdir=@abs_top_srcdir@/src/.libs
> +includedir=@abs_top_srcdir@/src
> + 
> +Name: Wayland Server
> +Description: Server side implementation of the Wayland protocol (not installed)
> +Version: @PACKAGE_VERSION@
> +Cflags: -I${includedir}
> +Libs: -L${libdir} -lwayland-server
> -- 
> 1.7.3.4
> 


More information about the wayland-devel mailing list