summaryrefslogtreecommitdiff
path: root/src/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..4c14897
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,53 @@
+srcs = files(
+ 'pam.c',
+)
+
+deps = [
+ dependency('gobject-2.0'),
+ dependency('gio-2.0'),
+ dependency('pam')
+]
+
+astal_auth_lib = library(
+ 'astal-auth',
+ sources : srcs,
+ include_directories : astal_auth_inc,
+ dependencies : deps,
+ version : meson.project_version(),
+ soversion : lib_so_version,
+ install : true
+)
+
+pkg_config_name = 'astal-auth-' + lib_so_version.to_string()
+
+if get_option('introspection')
+ gir = gnome.generate_gir(
+ astal_auth_lib,
+ sources : srcs + astal_auth_headers,
+ nsversion : '1.0',
+ namespace : 'AstalAuth',
+ symbol_prefix : 'astal_auth',
+ identifier_prefix : 'AstalAuth',
+ includes : ['GObject-2.0', 'Gio-2.0'],
+ header : 'astal/astal-auth.h',
+ export_packages : pkg_config_name,
+ install : true
+ )
+
+ if get_option('vapi')
+ gnome.generate_vapi(
+ pkg_config_name,
+ sources : [gir[0]],
+ packages : ['gobject-2.0', 'gio-2.0'],
+ install : true)
+ endif
+endif
+
+pkg_config.generate(
+ name : 'astal-auth',
+ version : meson.project_version(),
+ libraries : [astal_auth_lib],
+ filebase : pkg_config_name,
+ subdirs : 'astal',
+ description : 'astal authentication module',
+ url : 'https://github.com/kotontrion/astal-auth')