1project('libxcvt', 'c', 2 version: '0.1.3', 3 meson_version: '>= 0.40.0', 4 default_options: ['warning_level=1', 5 'buildtype=debugoptimized']) 6 7libcvt_version = meson.project_version().split('.') 8 9cc = meson.get_compiler('c') 10mdep = cc.find_library('m', required : false) 11 12prefix = get_option('prefix') 13inc = include_directories('include') 14man = join_paths(prefix, get_option('mandir')) 15 16subdir('include') 17subdir('lib') 18subdir('cvt') 19subdir('man') 20 21pkg_mod = import('pkgconfig') 22pkg_mod.generate(libraries : libxcvt, 23 version : meson.project_version(), 24 name : 'libxcvt', 25 description : 'A Library to generate VESA CVT standard timing modelines.') 26 27libxcvt_dep = declare_dependency(link_with: libxcvt, 28 include_directories: inc) 29