1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
project('secrets',
version: '12.0',
meson_version: '>= 1.7',
license: 'GPL-3.0-only'
)
i18n = import('i18n')
python = import('python')
gnome = import('gnome')
project_id = 'org.gnome.World.Secrets'
project_name = 'Secrets'
message('Looking for dependencies')
# We need pykeepass>=4.1.1 and pyotp>=2.4.0.
python_bin = python.find_installation('python3', modules:[
'pykeepass',
'pyotp',
'validators',
'zxcvbn_rs_py',
'PyKCS11',
'yubico',
])
if not python_bin.found()
error('No valid python3 binary found')
else
message('Found python3 binary')
endif
if not python_bin.language_version().version_compare('>= 3.8')
error('Python 3.8 or newer is required.')
endif
dependency('glib-2.0', version: '>= 2.73.1')
dependency('gio-2.0', version: '>= 2.66')
dependency('gobject-introspection-1.0', version: '>=1.66.0')
dependency('gtk4', version: '>=4.15.3')
dependency('libadwaita-1', version: '>=1.8.beta')
dependency('pygobject-3.0', version: '>= 3.52')
dependency('gtksourceview-5', version: '>= 5.0')
python_dir = python_bin.get_install_dir()
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
bindir = join_paths(get_option('prefix'), get_option('bindir'))
# Profiles
application_id = project_id
if get_option('profile') == 'development'
profile = 'Devel'
application_id = '@0@.Devel'.format(application_id)
version = ''.join([run_command('git', 'describe', '--long', '--tags', check: false).stdout().strip()])
else
profile = ''
version = meson.project_version()
endif
top_source_dir = meson.current_source_dir()
gettext_package = meson.project_name()
subdir('data')
subdir('po')
subdir('gsecrets')
subdir('tests')
gnome.post_install(
gtk_update_icon_cache: true,
glib_compile_schemas: true,
update_desktop_database: true,
update_mime_database: true,
)
|