AC_PREREQ([2.64])
+
+m4_define([wayland_major_version], [0])
+m4_define([wayland_minor_version], [89])
+m4_define([wayland_micro_version], [0])
+m4_define([wayland_version],
+ [wayland_major_version.wayland_minor_version.wayland_micro_version])
+
AC_INIT([wayland],
- [master],
+ [wayland_version],
[https://bugs.freedesktop.org/enter_bug.cgi?product=wayland],
[wayland],
[http://wayland.freedesktop.org/])
+AC_SUBST([WAYLAND_VERSION_MAJOR], [wayland_major_version])
+AC_SUBST([WAYLAND_VERSION_MINOR], [wayland_minor_version])
+AC_SUBST([WAYLAND_VERSION_MICRO], [wayland_micro_version])
+AC_SUBST([WAYLAND_VERSION], [wayland_version])
+
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
src/Makefile
src/wayland-server.pc
src/wayland-client.pc
+ src/wayland-version.h
protocol/Makefile
tests/Makefile])
AC_OUTPUT
wayland-client-protocol.h
wayland-protocol.c
wayland-server-protocol.h
+/wayland-version.h
wayland-server.h \
wayland-client-protocol.h \
wayland-client.h \
- wayland-egl.h
+ wayland-egl.h \
+ wayland-version.h
libwayland_util_la_SOURCES = \
connection.c \
wayland-protocol.c
CLEANFILES = $(BUILT_SOURCES)
+DISTCLEANFILES = wayland-version.h
+EXTRA_DIST = wayland-version.h.in
#define _WAYLAND_CLIENT_H
#include "wayland-util.h"
+#include "wayland-version.h"
#ifdef __cplusplus
extern "C" {
Name: Wayland Client
Description: Wayland client side library
-Version: 0.1
+Version: @WAYLAND_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lwayland-client
#include <sys/types.h>
#include <stdint.h>
#include "wayland-util.h"
+#include "wayland-version.h"
enum {
WL_EVENT_READABLE = 0x01,
Name: Wayland Server
Description: Server side implementation of the Wayland protocol
-Version: 0.1
+Version: @WAYLAND_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lwayland-server
--- /dev/null
+/*
+ * Copyright © 2012 Intel Corporation
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that copyright
+ * notice and this permission notice appear in supporting documentation, and
+ * that the name of the copyright holders not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. The copyright holders make no representations
+ * about the suitability of this software for any purpose. It is provided "as
+ * is" without express or implied warranty.
+ *
+ * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THIS SOFTWARE.
+ */
+
+#ifndef WAYLAND_VERSION_H
+#define WAYLAND_VERSION_H
+
+#define WAYLAND_VERSION_MAJOR @WAYLAND_VERSION_MAJOR@
+#define WAYLAND_VERSION_MINOR @WAYLAND_VERSION_MINOR@
+#define WAYLAND_VERSION_MICRO @WAYLAND_VERSION_MICRO@
+#define WAYLAND_VERSION "@WAYLAND_VERSION@"
+
+#endif