meson.build 835 Bytes
Newer Older
Olivier Fourdan's avatar
Olivier Fourdan committed
1
project('libxcvt', 'c',
Matt Turner's avatar
Matt Turner committed
2
        version: '0.1.0',
Olivier Fourdan's avatar
Olivier Fourdan committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
        meson_version: '>= 0.40.0',
        default_options: ['warning_level=1',
                          'buildtype=debugoptimized'])

libcvt_version = meson.project_version().split('.')

cc = meson.get_compiler('c')
mdep = cc.find_library('m', required : false)

prefix  = get_option('prefix')
inc = include_directories('include')
man = join_paths(prefix, get_option('mandir'))

subdir('include')
subdir('lib')
subdir('cvt')
subdir('man')

pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : libxcvt,
                 version : '1.0',
                 name : 'libxcvt',
                 description : 'A Library to generate VESA CVT standard timing modelines.')
Simon Ser's avatar
Simon Ser committed
26
27
28

libxcvt_dep = declare_dependency(link_with: libxcvt,
                                 include_directories: inc)