]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3680] Add pkg-config .pc file
authorAndrei Pavel <andrei@isc.org>
Thu, 29 May 2025 06:13:30 +0000 (09:13 +0300)
committerAndrei Pavel <andrei@isc.org>
Tue, 17 Jun 2025 19:09:23 +0000 (22:09 +0300)
changelog_unreleased/3680-kea-should-distribute-pkg-config-pc-files-for-use-with-hooks [new file with mode: 0644]
meson.build

diff --git a/changelog_unreleased/3680-kea-should-distribute-pkg-config-pc-files-for-use-with-hooks b/changelog_unreleased/3680-kea-should-distribute-pkg-config-pc-files-for-use-with-hooks
new file mode 100644 (file)
index 0000000..246a74b
--- /dev/null
@@ -0,0 +1,3 @@
+[build]                andrei
+       Kea now generates and installs a pkg-config .pc file.
+       (Gitlab #3680)
index 31be3700ab771f9f714c169d79c90003081725e3..7e3440cea48ea860089374ced580b9c186b33634 100644 (file)
@@ -37,6 +37,7 @@ PROJECT_VERSION = meson.project_version()
 #### Imports
 
 fs = import('fs')
+pkg = import('pkgconfig')
 python_module = import('python')
 
 #### Variables
@@ -1036,6 +1037,27 @@ if premium
     subdir('premium')
 endif
 
+#### pkg-config
+
+additional_requires = []
+foreach i : [KRB5_DEP, MYSQL_DEP, POSTGRESQL_DEP]
+    if i.found() and i.type_name() == 'pkgconfig'
+        additional_requires += i
+    endif
+endforeach
+if NETCONF_DEP.found()
+    additional_requires += ['libyang', 'sysrepo', 'libyang-cpp', 'sysrepo-cpp']
+endif
+pkg.generate(
+    description: 'High-performance, extensible DHCP server engine',
+    filebase: 'kea',
+    libraries: LIBS_BUILT_SO_FAR,
+    name: 'Kea',
+    requires: [CRYPTO_DEP, LOG4CPLUS_DEP] + additional_requires,
+    subdirs: 'kea',
+    version: meson.project_version(),
+)
+
 #### More Custom Targets
 
 if TARGETS_GEN_MESSAGES.length() > 0