-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
62 lines (55 loc) · 1.44 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
project('pcre2', 'c',
version: '10.42.11'
)
compiler = meson.get_compiler('c')
link_deps = []
incdirs = ['src']
c_flags = ['-DHAVE_CONFIG_H=1', '-DPCRE2_CODE_UNIT_WIDTH=8', '-DPCRE2_STATIC']
sources = [
'src/pcre2_auto_possess.c',
'src/pcre2_chartables.c',
'src/pcre2_chkdint.c',
'src/pcre2_compile.c',
'src/pcre2_compile_class.c',
'src/pcre2_config.c',
'src/pcre2_context.c',
'src/pcre2_convert.c',
'src/pcre2_dfa_match.c',
'src/pcre2_error.c',
'src/pcre2_extuni.c',
'src/pcre2_find_bracket.c',
'src/pcre2_jit_compile.c',
'src/pcre2_maketables.c',
'src/pcre2_match.c',
'src/pcre2_match_data.c',
'src/pcre2_newline.c',
'src/pcre2_ord2utf.c',
'src/pcre2_pattern_info.c',
'src/pcre2_script_run.c',
'src/pcre2_serialize.c',
'src/pcre2_string_utils.c',
'src/pcre2_study.c',
'src/pcre2_substitute.c',
'src/pcre2_substring.c',
'src/pcre2_tables.c',
'src/pcre2_ucd.c',
'src/pcre2_valid_utf.c',
'src/pcre2_xclass.c',
]
incdirs = include_directories(incdirs)
pcre2_lib = library(
'pcre2',
sources,
c_args: c_flags,
include_directories: incdirs,
dependencies: link_deps,
)
pcre2_dep = declare_dependency(
compile_args: c_flags,
include_directories: incdirs,
dependencies: link_deps,
link_with: pcre2_lib,
version: meson.project_version()
)
meson.override_dependency('pcre2', pcre2_dep)
# vim: set ts=4 sts=4 sw=4 et: