forked from Mirrors/apostrophe
53 lines
1.5 KiB
Meson
53 lines
1.5 KiB
Meson
project('uberwriter',
|
|
version: '2.1.5',
|
|
meson_version: '>= 0.40.0'
|
|
)
|
|
i18n = import('i18n')
|
|
python = import('python3')
|
|
project_id = 'de.wolfvollprecht.UberWriter'
|
|
|
|
message('Looking for dependencies')
|
|
python_bin = python.find_python()
|
|
if not python_bin.found()
|
|
error('No valid python3 binary found')
|
|
else
|
|
message('Found python3 binary')
|
|
endif
|
|
dependency('glib-2.0')
|
|
dependency('gobject-introspection-1.0', version: '>=1.35.9')
|
|
dependency('gtk+-3.0', version :'>=3.20')
|
|
|
|
python_dir = join_paths(get_option('prefix'), python.sysconfig_path('purelib'))
|
|
LIBEXEC_DIR = join_paths(get_option('prefix'), get_option('libexecdir'))
|
|
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
|
message(DATA_DIR)
|
|
bindir = join_paths(get_option('prefix'), get_option('bindir'))
|
|
|
|
conf = configuration_data()
|
|
conf.set('PACKAGE_URL', 'http://uberwriter.github.io/uberwriter/')
|
|
conf.set('DATA_DIR', DATA_DIR)
|
|
conf.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
|
|
conf.set('PYTHON_DIR', python_dir)
|
|
#conf.set('PYTHON_EXEC_DIR', join_paths(get_option('prefix'), python.sysconfig_path('stdlib')))
|
|
conf.set('libexecdir', LIBEXEC_DIR)
|
|
conf.set('VERSION', meson.project_version())
|
|
conf.set('PYTHON', python_bin.path())
|
|
|
|
subdir('data')
|
|
#subdir('po')
|
|
message(python_dir)
|
|
install_subdir(
|
|
'uberwriter',
|
|
install_dir: python_dir
|
|
)
|
|
|
|
message('Preparing init file')
|
|
configure_file(
|
|
input: 'bin/uberwriter',
|
|
output: 'uberwriter',
|
|
configuration: conf,
|
|
install_dir: bindir
|
|
)
|
|
|
|
#meson.add_install_script('meson_post_install.py')
|