forked from jbeder/yaml-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
68 lines (61 loc) · 1.59 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
project('yaml-cpp', 'cpp',
version: '0.7.1',
license: 'MIT',
default_options: ['cpp_std=c++14'],
meson_version:'>= 1.0.0'
)
modpkgconfig = import('pkgconfig')
libyamlcpp = library('yaml-cpp',
version: meson.project_version(),
include_directories: 'include',
sources: files(
'src/binary.cpp',
'src/convert.cpp',
'src/depthguard.cpp',
'src/directives.cpp',
'src/emit.cpp',
'src/emitfromevents.cpp',
'src/emitter.cpp',
'src/emitterstate.cpp',
'src/emitterutils.cpp',
'src/exceptions.cpp',
'src/exp.cpp',
'src/memory.cpp',
'src/node.cpp',
'src/node_data.cpp',
'src/nodebuilder.cpp',
'src/nodeevents.cpp',
'src/null.cpp',
'src/ostream_wrapper.cpp',
'src/parse.cpp',
'src/parser.cpp',
'src/regex_yaml.cpp',
'src/scanner.cpp',
'src/scanscalar.cpp',
'src/scantag.cpp',
'src/scantoken.cpp',
'src/simplekey.cpp',
'src/singledocparser.cpp',
'src/stream.cpp',
'src/tag.cpp'
),
install: true
)
depyamlcpp = declare_dependency(
include_directories: 'include',
link_with: libyamlcpp
)
install_subdir('include' / 'yaml-cpp',
install_dir: get_option('includedir')
)
modpkgconfig.generate(
libyamlcpp,
name: 'yaml-cpp',
version: meson.project_version(),
description: 'A YAML parser and emitter in C++',
url: 'https://github.com/jbeder/yaml-cpp',
filebase: 'yaml-cpp'
)
if get_option('tests')
subdir('test')
endif