Skip to content

Commit 5f60897

Browse files
committed
build: initialize meson build system
1 parent aa31a25 commit 5f60897

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

include/meson.build

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
inc = include_directories('.')
2+
3+
hdrs = files(
4+
'ctll.hpp',
5+
'ctll/actions.hpp',
6+
'ctll/fixed_string.hpp',
7+
'ctll/grammars.hpp',
8+
'ctll/list.hpp',
9+
'ctll/parser.hpp',
10+
'ctll/utilities.hpp',
11+
'ctre-unicode.hpp',
12+
'ctre.hpp',
13+
'ctre/actions/asserts.inc.hpp',
14+
'ctre/actions/atomic_group.inc.hpp',
15+
'ctre/actions/backreference.inc.hpp',
16+
'ctre/actions/boundaries.inc.hpp',
17+
'ctre/actions/capture.inc.hpp',
18+
'ctre/actions/characters.inc.hpp',
19+
'ctre/actions/class.inc.hpp',
20+
'ctre/actions/fusion.inc.hpp',
21+
'ctre/actions/hexdec.inc.hpp',
22+
'ctre/actions/look.inc.hpp',
23+
'ctre/actions/mode.inc.hpp',
24+
'ctre/actions/named_class.inc.hpp',
25+
'ctre/actions/options.inc.hpp',
26+
'ctre/actions/properties.inc.hpp',
27+
'ctre/actions/repeat.inc.hpp',
28+
'ctre/actions/sequence.inc.hpp',
29+
'ctre/actions/set.inc.hpp',
30+
'ctre/atoms.hpp',
31+
'ctre/atoms_characters.hpp',
32+
'ctre/atoms_unicode.hpp',
33+
'ctre/evaluation.hpp',
34+
'ctre/find_captures.hpp',
35+
'ctre/first.hpp',
36+
'ctre/flags_and_modes.hpp',
37+
'ctre/functions.hpp',
38+
'ctre/id.hpp',
39+
'ctre/iterators.hpp',
40+
'ctre/literals.hpp',
41+
'ctre/operators.hpp',
42+
'ctre/pcre.hpp',
43+
'ctre/pcre_actions.hpp',
44+
'ctre/range.hpp',
45+
'ctre/return_type.hpp',
46+
'ctre/rotate.hpp',
47+
'ctre/starts_with_anchor.hpp',
48+
'ctre/utf8.hpp',
49+
'ctre/utility.hpp',
50+
'ctre/wrapper.hpp',
51+
'unicode-db.hpp',
52+
'unicode-db/unicode-db.hpp',
53+
'unicode-db/unicode_interface.hpp',
54+
)
55+
56+
install_headers(
57+
hdrs,
58+
preserve_path: true,
59+
)

meson.build

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
project(
2+
'ctre',
3+
'cpp',
4+
version: '3.9.0',
5+
license: 'Apache-2.0',
6+
default_options: ['cpp_std=gnu++20,gnu++17,vc++latest,c++20,c++17'],
7+
)
8+
9+
subdir('include')
10+
11+
ctre_dep = declare_dependency(
12+
include_directories: inc,
13+
sources: hdrs,
14+
)
15+
16+
meson.override_dependency('ctre', ctre_dep)
17+
18+
pkgconf = import('pkgconfig')
19+
pkgconf.generate(
20+
name: 'ctre',
21+
description: 'Fast compile-time regular expressions with support for matching/searching/capturing during compile-time or runtime.',
22+
)

0 commit comments

Comments
 (0)