diff options
author | Günther Wagner <info@gunibert.de> | 2022-01-12 18:26:38 +0000 |
---|---|---|
committer | Günther Wagner <info@gunibert.de> | 2022-01-12 18:26:38 +0000 |
commit | 6d65d8862ad7d39e55be0adb868c05f194250e74 (patch) | |
tree | 46ffe23af55fb90e3199b184b9c820e0f8af0c9a /rest/meson.build | |
parent | 7766d718735270d1c0850685a3c7655a5726d60f (diff) | |
download | librest-6d65d8862ad7d39e55be0adb868c05f194250e74.tar.gz |
OAuth2 Pkce Workflow
Diffstat (limited to 'rest/meson.build')
-rw-r--r-- | rest/meson.build | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/rest/meson.build b/rest/meson.build index 396ec83..a22742e 100644 --- a/rest/meson.build +++ b/rest/meson.build @@ -19,10 +19,13 @@ librest_sources = [ 'rest-main.c', 'oauth-proxy.c', 'oauth-proxy-call.c', - 'oauth2-proxy.c', - 'oauth2-proxy-call.c', 'sha1.c', + 'rest-oauth2-proxy.c', + 'rest-oauth2-proxy-call.c', + 'rest-pkce-code-challenge.c', + 'rest-utils.c', + librest_enums, librest_marshal, ] @@ -30,8 +33,6 @@ librest_sources = [ librest_headers = [ 'oauth-proxy-call.h', 'oauth-proxy.h', - 'oauth2-proxy-call.h', - 'oauth2-proxy.h', 'rest-param.h', 'rest-params.h', 'rest-proxy-auth.h', @@ -39,11 +40,18 @@ librest_headers = [ 'rest-proxy.h', 'rest-xml-node.h', 'rest-xml-parser.h', + + 'rest-oauth2-proxy.h', + 'rest-oauth2-proxy-call.h', + 'rest-pkce-code-challenge.h', + 'rest-utils.h', + 'rest.h', ] librest_deps = [ glib_dep, libsoup_dep, + libjson_glib_dep, libxml_dep, ] @@ -65,6 +73,8 @@ install_headers(librest_headers, subdir: librest_pkg_string / 'rest', ) +rest_dep_sources = [] + # GObject Introspection if get_option('introspection') librest_gir_extra_args = [ @@ -77,17 +87,25 @@ if get_option('introspection') endforeach librest_gir = gnome.generate_gir(librest_lib, - sources: [ librest_headers, librest_enums[1] ], + sources: [ librest_headers, librest_sources, librest_enums[1] ], + dependencies: librest_deps, namespace: 'Rest', + identifier_prefix: 'Rest', + symbol_prefix: 'rest', nsversion: librest_api_version, includes: [ 'GObject-2.0', 'Gio-2.0', 'Soup-@0@'.format(libsoup_api_version) ], extra_args: librest_gir_extra_args, install: true, ) + + rest_dep_sources += librest_gir endif librest_dep = declare_dependency( + sources: rest_dep_sources, link_with: librest_lib, + include_directories: include_directories('..'), + dependencies: librest_deps, ) # Test suite |