diff options
author | kotontrion <[email protected]> | 2024-05-19 13:15:36 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-05-19 13:15:36 +0200 |
commit | 30b7ccfe9048560989c37bd3e00ff81d16919d55 (patch) | |
tree | 1da92c1791681a9dde7c9f83b150696f4056ddf9 | |
parent | d8802b1fa2c586d05c73e53fb541e1ef482a527e (diff) |
fix header paths
-rw-r--r-- | examples/full_example.c | 2 | ||||
-rw-r--r-- | examples/simple_example.c | 2 | ||||
-rw-r--r-- | include/auth.h (renamed from include/pam.h) | 0 | ||||
-rw-r--r-- | include/meson.build | 4 | ||||
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | src/meson.build | 4 | ||||
-rw-r--r-- | src/pam.c | 2 |
7 files changed, 9 insertions, 8 deletions
diff --git a/examples/full_example.c b/examples/full_example.c index 5174edd..844f423 100644 --- a/examples/full_example.c +++ b/examples/full_example.c @@ -1,4 +1,4 @@ -#include "pam.h" +#include "auth.h" #include <bsd/readpassphrase.h> GMainLoop *loop; diff --git a/examples/simple_example.c b/examples/simple_example.c index e48bc78..257c2fe 100644 --- a/examples/simple_example.c +++ b/examples/simple_example.c @@ -1,5 +1,5 @@ #include <bsd/readpassphrase.h> -#include "pam.h" +#include "auth.h" GMainLoop *loop; diff --git a/include/pam.h b/include/auth.h index bc1c28c..bc1c28c 100644 --- a/include/pam.h +++ b/include/auth.h diff --git a/include/meson.build b/include/meson.build index 59db862..3db00c1 100644 --- a/include/meson.build +++ b/include/meson.build @@ -1,4 +1,4 @@ astal_auth_inc = include_directories('.') -astal_auth_headers = files('pam.h') +astal_auth_headers = files('auth.h') -install_headers('pam.h', subdir : 'astal') +install_headers('auth.h', subdir : 'astal') diff --git a/meson.build b/meson.build index 34ab7c8..7d8fcd2 100644 --- a/meson.build +++ b/meson.build @@ -12,7 +12,8 @@ add_project_arguments( ['-Wno-pedantic'], language : 'c') -lib_so_version = 0 +version_split = meson.project_version().split('.') +lib_so_version = version_split[0] + '.' + version_split[1] pkg_config = import('pkgconfig') gnome = import('gnome') diff --git a/src/meson.build b/src/meson.build index 4c14897..6f41487 100644 --- a/src/meson.build +++ b/src/meson.build @@ -18,7 +18,7 @@ astal_auth_lib = library( install : true ) -pkg_config_name = 'astal-auth-' + lib_so_version.to_string() +pkg_config_name = 'astal-auth-' + lib_so_version if get_option('introspection') gir = gnome.generate_gir( @@ -29,7 +29,7 @@ if get_option('introspection') symbol_prefix : 'astal_auth', identifier_prefix : 'AstalAuth', includes : ['GObject-2.0', 'Gio-2.0'], - header : 'astal/astal-auth.h', + header : 'astal/auth.h', export_packages : pkg_config_name, install : true ) @@ -1,4 +1,4 @@ -#include "pam.h" +#include "auth.h" #include <pwd.h> #include <security/_pam_types.h> #include <security/pam_appl.h> |