2018-03-16 04:12:49 +01:00
|
|
|
project('com.github.bilelmoussaoui.Authenticator',
|
2018-09-02 15:09:48 +02:00
|
|
|
version: '0.2.2',
|
2017-09-16 14:15:40 +02:00
|
|
|
meson_version: '>= 0.40',
|
|
|
|
license: 'GPL+-3.0',
|
|
|
|
default_options: ['prefix=/usr']
|
|
|
|
)
|
|
|
|
python = import('python3')
|
|
|
|
gnome = import('gnome')
|
|
|
|
i18n = import('i18n')
|
2016-12-13 00:26:54 +01:00
|
|
|
|
2017-09-16 14:15:40 +02:00
|
|
|
message('Looking for dependencies')
|
|
|
|
dependency('glib-2.0')
|
|
|
|
dependency('gobject-2.0')
|
|
|
|
dependency('gobject-introspection-1.0')
|
|
|
|
dependency('gtk+-3.0', version : '>=3.16')
|
2016-12-13 00:26:54 +01:00
|
|
|
|
|
|
|
|
2018-09-02 15:05:51 +02:00
|
|
|
use_zbar = false
|
|
|
|
if get_option('enable-zbar')
|
|
|
|
use_zebar = true
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2017-09-16 14:15:40 +02:00
|
|
|
|
|
|
|
PYTHON_DIR = join_paths(get_option('prefix'), python.sysconfig_path('purelib'))
|
|
|
|
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
|
|
|
LOCALE_DIR = join_paths(get_option('prefix'), get_option('localedir'))
|
|
|
|
|
2016-12-13 00:26:54 +01:00
|
|
|
|
|
|
|
# Configuration params
|
|
|
|
conf = configuration_data()
|
2017-09-16 21:58:59 +02:00
|
|
|
conf.set('DATA_DIR', DATA_DIR)
|
2017-09-16 14:15:40 +02:00
|
|
|
conf.set('LOCALE_DIR', LOCALE_DIR)
|
|
|
|
conf.set('PYTHON_DIR', PYTHON_DIR)
|
2016-12-13 00:26:54 +01:00
|
|
|
conf.set('VERSION', meson.project_version())
|
2018-09-02 15:05:51 +02:00
|
|
|
conf.set('ENABLE_QRSCANNER', use_zbar)
|
2016-12-13 00:26:54 +01:00
|
|
|
|
|
|
|
subdir('data')
|
|
|
|
subdir('po')
|
|
|
|
|
2017-09-16 14:15:40 +02:00
|
|
|
install_subdir(
|
|
|
|
'Authenticator',
|
|
|
|
install_dir: PYTHON_DIR
|
|
|
|
)
|
2016-12-13 00:26:54 +01:00
|
|
|
|
2017-09-16 14:15:40 +02:00
|
|
|
configure_file(
|
2018-03-16 04:12:49 +01:00
|
|
|
input: 'authenticator.py.in',
|
|
|
|
output: 'authenticator',
|
2017-09-16 14:15:40 +02:00
|
|
|
configuration: conf,
|
|
|
|
install_dir: join_paths(get_option('prefix'), get_option('bindir'))
|
|
|
|
)
|
2016-12-13 00:26:54 +01:00
|
|
|
|
|
|
|
|
2017-09-16 14:15:40 +02:00
|
|
|
meson.add_install_script('tools/build/meson_post_install.py')
|