Skip to content

Commit 5dbb8b3

Browse files
committed
asio: generate .pc file with pkg-config module
It's less error-prone to use Meson's module rather than upstream's template.
1 parent 956edcd commit 5dbb8b3

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

releases.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"asio"
187187
],
188188
"versions": [
189+
"1.36.0-2",
189190
"1.36.0-1",
190191
"1.30.2-2",
191192
"1.30.2-1",

subprojects/packagefiles/asio/meson.build

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(
33
'cpp',
44
version: '1.36.0',
55
license: 'BSL-1.0',
6-
meson_version: '>=0.60.0',
6+
meson_version: '>=0.49.0',
77
)
88

99
asio_deps = []
@@ -25,17 +25,8 @@ install_subdir(
2525
'include/asio',
2626
install_dir: get_option('includedir'),
2727
)
28-
conf_data = configuration_data()
29-
conf_data.set('prefix', get_option('prefix'))
30-
conf_data.set('exec_prefix', '${prefix}')
31-
conf_data.set('includedir', '${prefix}/' + get_option('includedir'))
32-
conf_data.set('PACKAGE_NAME', meson.project_name())
33-
conf_data.set('PACKAGE_VERSION', meson.project_version())
34-
configure_file(
35-
input: 'asio.pc.in',
36-
output: 'asio.pc',
37-
configuration: conf_data,
38-
install: true,
39-
install_tag: 'devel',
28+
import('pkgconfig').generate(
29+
name: meson.project_name(),
30+
description: 'A cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.',
4031
install_dir: get_option('datadir') / 'pkgconfig',
4132
)

0 commit comments

Comments
 (0)