summary refs log tree commit diff stats
path: root/data/pkgconfig/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'data/pkgconfig/meson.build')
-rw-r--r--data/pkgconfig/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/pkgconfig/meson.build b/data/pkgconfig/meson.build
new file mode 100644
index 00000000..3bacf301
--- /dev/null
+++ b/data/pkgconfig/meson.build
@@ -0,0 +1,14 @@
+pkg_conf = configuration_data()
+prefix = get_option('prefix')
+pkg_conf.set('prefix', prefix)
+pkg_conf.set('VERSION', meson.project_version())
+pkg_conf.set('hexchatlibdir', join_paths(prefix, plugindir))
+pkg_conf.set('includedir', join_paths(prefix, get_option('includedir')))
+
+configure_file(
+  input: 'hexchat-plugin.pc.in',
+  output: 'hexchat-plugin.pc',
+  configuration: pkg_conf,
+  install: true,
+  install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
+)