-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
45 lines (37 loc) · 921 Bytes
/
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
# SPDX-FileCopyrightText: 2022 Andrea Pappacoda
#
# SPDX-License-Identifier: LGPL-3.0-or-later
project(
'scrafurl',
'cpp',
default_options: [
'cpp_std=c++20',
'b_ndebug=if-release',
'b_lto=true'
],
license: 'LGPL-3.0-or-later',
meson_version: '>=0.49.0',
version: '0.0.2'
)
libcurl_dep = dependency('libcurl', version: '>=7.49.0')
include_dir = include_directories('include')
libscrafurl = library(
'scrafurl',
'src'/'scrafurl.cpp',
dependencies: libcurl_dep,
include_directories: include_dir
)
scrafurl_dep = declare_dependency(
link_with: libscrafurl,
dependencies: libcurl_dep,
include_directories: include_dir
)
if meson.version().version_compare('>=0.54.0')
meson.override_dependency('scrafurl', scrafurl_dep)
endif
install_headers('include'/'scrafurl.hpp')
import('pkgconfig').generate(
libscrafurl,
description: 'Lightweight libcurl wrapper written in C++20',
requires: 'libcurl'
)