Skip to content

Commit 5eb233a

Browse files
committed
Generate pkg-config file
1 parent 6180c8b commit 5eb233a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ project(
44
version: '1.0.0',
55
)
66

7+
pkg = import('pkgconfig')
78
cc = meson.get_compiler('c')
89

910
# Dependencies

src/meson.build

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@ libfst = library(
1818
'fst',
1919
sources: libfst_sources,
2020
dependencies: libfst_dependencies,
21-
# include_directories: config_inc,
22-
install: true,
2321
version: meson.project_version(),
22+
install: true,
2423
)
2524

2625
libfst_dep = declare_dependency(
2726
link_with: libfst,
2827
include_directories: '.',
2928
)
3029

31-
install_headers(libfst_headers, subdir: 'libfst')
30+
install_headers(libfst_headers, subdir: 'libfst')
31+
32+
pkg.generate(
33+
name: 'libfst',
34+
libraries: libfst,
35+
description: 'FST reader and writer library',
36+
subdirs: 'libfst',
37+
)

0 commit comments

Comments
 (0)