feat(meson): add library to pkgconf
This commit is contained in:
+9
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user