This has support for everything that the autotools build does, except for altering your git config.
Signed-off-by: Dylan Baker <[email protected]> --- meson.build | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..6d9cb68 --- /dev/null +++ b/meson.build @@ -0,0 +1,44 @@ +# Copyright © 2017 Intel Corporation + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +project('dri2proto', license : 'MIT', version : '2.8') + +install_headers( + 'include/X11/extensions/dri2proto.h', + 'include/X11/extensions/dri2tokens.h', + subdir : 'X11/extensions' +) + +install_data( + 'dri2proto.txt', + install_dir : join_paths(get_option('datadir'), 'doc'), +) + +pkg = import('pkgconfig') +pkg.generate( + name : 'DRI2Proto', + filebase : 'dri2proto', + description : 'DRI2 extension headers', + version : meson.project_version(), +) + +ext_dri2proto = declare_dependency( + include_directories : include_directories('include') +) -- 2.15.0 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
