Skip to content

Commit

Permalink
asio: install pkg-config file
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Lachnit <[email protected]>
  • Loading branch information
stephanlachnit authored and jpakkane committed Oct 17, 2024
1 parent 29654d7 commit 2e536c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"asio"
],
"versions": [
"1.30.2-2",
"1.30.2-1",
"1.28.1-1",
"1.24.0-1"
Expand Down
15 changes: 15 additions & 0 deletions subprojects/packagefiles/asio/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ project('asio',
'cpp',
version : '1.30.2',
license : 'BSL-1.0',
meson_version: '>=0.60.0',
)

asio_deps = []
Expand All @@ -20,3 +21,17 @@ asio_dep = declare_dependency(

install_headers('include/asio.hpp')
install_subdir('include/asio', install_dir: get_option('includedir'))
conf_data = configuration_data()
conf_data.set('prefix', get_option('prefix'))
conf_data.set('exec_prefix', '${prefix}')
conf_data.set('includedir', '${prefix}/' + get_option('includedir'))
conf_data.set('PACKAGE_NAME', meson.project_name())
conf_data.set('PACKAGE_VERSION', meson.project_version())
configure_file(
input: 'asio.pc.in',
output: 'asio.pc',
configuration: conf_data,
install: true,
install_tag: 'devel',
install_dir: get_option('datadir') / 'pkgconfig',
)

0 comments on commit 2e536c8

Please sign in to comment.