1 # SPDX-FileCopyrightText: Copyright © 2017 Intel Corporation
2 # SPDX-License-Identifier: BSD-2-Clause
4 split_version = meson.project_version().split('.')
5 conf_version = configuration_data()
6 conf_version.set('waffle_major_version', split_version[0])
7 conf_version.set('waffle_minor_version', split_version[1])
8 conf_version.set('waffle_patch_version', split_version[2])
10 waffle_version = configure_file(
11 input : 'waffle_version.h.in',
12 output : 'waffle_version.h',
13 configuration : conf_version,
16 install_headers(['waffle.h', 'waffle_gbm.h', 'waffle_gxl.h', 'waffle_wayland.h',
17 'waffle_x11_egl.h', waffle_version],