Commit cda1488c authored by Pekka Paalanen's avatar Pekka Paalanen

Rename version.h to libweston/version.h

This is an installed public header, and without the subdir would surely
conflict with something else.

include/libweston/meson.build is necessary for putting the generated header in
the right subdirectory so that '#include <libweston/version.h>' can work.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
parent eebb7dc9
......@@ -52,7 +52,7 @@
#include "../shared/helpers.h"
#include "../shared/string-helpers.h"
#include "git-version.h"
#include "version.h"
#include <libweston/version.h>
#include "weston.h"
#include <libweston/backend-drm.h>
......
......@@ -17,3 +17,15 @@ backend_wayland_h = files('backend-wayland.h')
backend_x11_h = files('backend-x11.h')
xwayland_api_h = files('xwayland-api.h')
libweston_version_h = configuration_data()
libweston_version_h.set('WESTON_VERSION_MAJOR', version_weston_arr[0])
libweston_version_h.set('WESTON_VERSION_MINOR', version_weston_arr[1])
libweston_version_h.set('WESTON_VERSION_MICRO', version_weston_arr[2])
libweston_version_h.set('WESTON_VERSION', version_weston)
version_h = configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: libweston_version_h
)
install_headers(version_h, subdir: dir_include_libweston_install)
......@@ -68,7 +68,7 @@
#include "shared/string-helpers.h"
#include "shared/timespec-util.h"
#include "git-version.h"
#include "version.h"
#include <libweston/version.h>
#include <libweston/plugin-registry.h>
#include "pixel-formats.h"
......
......@@ -45,17 +45,6 @@ public_inc = include_directories('include')
pkgconfig = import('pkgconfig')
libweston_version_h = configuration_data()
libweston_version_h.set('WESTON_VERSION_MAJOR', version_weston_arr[0])
libweston_version_h.set('WESTON_VERSION_MINOR', version_weston_arr[1])
libweston_version_h.set('WESTON_VERSION_MICRO', version_weston_arr[2])
libweston_version_h.set('WESTON_VERSION', version_weston)
version_h = configure_file(
input: 'libweston/version.h.in',
output: 'version.h',
configuration: libweston_version_h
)
install_headers(version_h, subdir: dir_include_libweston)
git_version_h = vcs_tag(
input: 'libweston/git-version.h.meson',
output: 'git-version.h',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment