feat(meson): add library to pkgconf

This commit is contained in:
2026-03-28 18:09:20 +01:00
parent 449fcb4cba
commit 9b10360acf
+9 -1
View File
@@ -31,6 +31,8 @@ endif
# Static library # Static library
pkg = import('pkgconfig')
myclib_lib = static_library( myclib_lib = static_library(
'myclib', 'myclib',
lib_src, lib_src,
@@ -38,6 +40,12 @@ myclib_lib = static_library(
install: true, install: true,
) )
pkg.generate(
myclib_lib,
name: 'myclib',
description: 'My personal C std library.',
)
# Install headers # Install headers
install_headers( install_headers(
@@ -77,4 +85,4 @@ foreach tc : test_cases
) )
test(test_name, test_exe) test(test_name, test_exe)
endforeach endforeach