-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
51 lines (41 loc) · 1.33 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
# SPDX-FileCopyrightText: 2024 The Lemuriad <[email protected]>
# SPDX-License-Identifier: BSL-1.0
project('irepeat', 'cpp',
default_options : ['warning_level=3'],
meson_version : '>=0.54.0',
version : 'v0.6'
)
headers = files(
'irepeat/IREPEAT.hpp',
'irepeat/IREPEAT_UNDEF.hpp',
'irepeat/VREPEAT.hpp',
'irepeat/VREPEAT_DISPATCH.hpp',
'irepeat/VREPEATx10.hpp',
'irepeat/VREPEATx100.hpp',
'irepeat/VREPEATx1000.hpp',
'irepeat/VREPEATx10000.hpp',
)
install_headers(headers, subdir: 'irepeat')
extra_args = meson.get_compiler('cpp').get_supported_arguments('/Zc:preprocessor')
irepeat_dep = declare_dependency(
include_directories : include_directories('irepeat'),
compile_args : extra_args
).partial_dependency(includes : true, compile_args : true)
meson.override_dependency('irepeat', irepeat_dep)
import('pkgconfig').generate(
name: 'irepeat',
subdirs: 'irepeat',
filebase: 'irepeat',
description: 'Preprocessor utilities to generate indexed repetitions.',
url: 'https://github.com/Lemuriad/irepeat',
)
if get_option('tests').disable_auto_if(meson.is_subproject()).allowed()
test('test IREPEAT',
executable('test_IREPEAT', 'tests/test_IREPEAT.cpp',
dependencies : [irepeat_dep])
)
test('test VREPEAT',
executable('test_VREPEAT', 'tests/test_VREPEAT.cpp',
dependencies : [irepeat_dep])
)
endif