Commit 28296876 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

meson: fix dependencies & serach provider build

parent 9187d452
Pipeline #48539 passed with stage
in 2 minutes and 4 seconds
......@@ -43,6 +43,7 @@ class Keyring:
@staticmethod
def get_default():
if Keyring.instance is None:
Secret.Service.unlock_sync()
Keyring.instance = Keyring()
return Keyring.instance
......
......@@ -26,6 +26,7 @@ configure_file(
search_service_provider_conf = configuration_data()
search_service_provider_conf.set('appid', application_id)
search_service_provider_conf.set('profile', profile)
search_service_provider_conf.set('libexecdir', LIBEXEC_DIR)
configure_file(
configuration: search_service_provider_conf,
input: files(meson.project_name() + '.SearchProvider.service.in'),
......@@ -85,7 +86,7 @@ appdata_file = i18n.merge_file(
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
# Validate AppData File
appstreamcli = find_program('appstream-util', required:false)
appstreamcli = find_program('appstream-util', required: false)
if appstreamcli.found()
test (
'Validate appdata file',
......
project('com.github.bilelmoussaoui.Authenticator',
project('com.github.bilelmoussaoui.Authenticator', 'c',
version: '3.31',
meson_version: '>= 0.48',
license: 'GPL+-3.0',
......@@ -23,6 +23,12 @@ dependency('glib-2.0')
dependency('gobject-2.0')
dependency('gobject-introspection-1.0')
dependency('gtk+-3.0', version: '>=3.16')
dependency('libsecret-1')
dependency('zbar', version: '>= 0.20.1')
find_program('glib-compile-schemas', required: true)
find_program('gtk-update-icon-cache', required: false)
find_program('update-desktop-database', required: false)
python3 = python.find_python()
if not python3.found()
......@@ -34,7 +40,7 @@ endif
LIB_DIR = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name())
LOCALE_DIR = join_paths(get_option('prefix'), get_option('localedir'))
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
LIBEXEC_DIR = join_paths(get_option('prefix'), get_option('libexecdir'))
libgd_dep = dependency('gdlib', required: false)
if not libgd_dep.found()
libgd_proj = subproject('libgd',
......@@ -59,7 +65,7 @@ conf.set('VERSION', meson.project_version())
conf.set('LIB_DIR', LIB_DIR)
conf.set('PROFILE', profile)
conf.set('NAME_SUFFIX', name_suffix)
conf.set('libexecdir', join_paths(get_option('prefix'), get_option('libexecdir')))
conf.set('libexecdir', LIBEXEC_DIR)
conf.set('PYTHON', python3.path())
subdir('data')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment