Skip to content

Commit 5d9e635

Browse files
no92ArsenArsen
authored andcommitted
build: install pkgconfig file
1 parent 5a8f412 commit 5d9e635

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ libasync_inc = include_directories('include/')
77
libasync_dep = declare_dependency(include_directories : libasync_inc)
88

99
if get_option('install_headers')
10+
pkgconfig = import('pkgconfig')
11+
1012
install_headers(
1113
'include/async/algorithm.hpp',
1214
'include/async/barrier.hpp',
@@ -23,6 +25,12 @@ if get_option('install_headers')
2325
'include/async/sequenced-event.hpp',
2426
'include/async/wait-group.hpp',
2527
subdir : 'async/')
28+
29+
pkgconfig.generate(
30+
name : 'libasync',
31+
description : 'An async primitives library for C++20',
32+
version : meson.project_version(),
33+
)
2634
endif
2735

2836
if get_option('build_tests')

0 commit comments

Comments
 (0)