forked from Mirrors/apostrophe
initial meson build script
parent
424bb7f8f4
commit
aa4a878dbc
|
@ -20,3 +20,4 @@ data/ui/shortcut_handlers
|
||||||
.vscode/
|
.vscode/
|
||||||
*.glade~
|
*.glade~
|
||||||
dist/uberwriter-2.0b0-py3.7.egg
|
dist/uberwriter-2.0b0-py3.7.egg
|
||||||
|
buildir/*
|
||||||
|
|
|
@ -0,0 +1,61 @@
|
||||||
|
project('uberwriter',
|
||||||
|
version: '2.1.4',
|
||||||
|
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())
|
||||||
|
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')
|
||||||
|
|
||||||
|
install_subdir(
|
||||||
|
'uberwriter',
|
||||||
|
install_dir: python_dir
|
||||||
|
)
|
||||||
|
|
||||||
|
install_subdir(
|
||||||
|
'data',
|
||||||
|
install_dir: DATA_DIR
|
||||||
|
)
|
||||||
|
|
||||||
|
install_subdir(
|
||||||
|
'thirdparty',
|
||||||
|
install_dir: join_paths(python_dir, 'lollypop')
|
||||||
|
)
|
||||||
|
|
||||||
|
message('Preparing init file')
|
||||||
|
configure_file(
|
||||||
|
input: 'bin/uberwriter',
|
||||||
|
output: 'uberwriter',
|
||||||
|
configuration: conf,
|
||||||
|
install_dir: bindir
|
||||||
|
)
|
||||||
|
|
||||||
|
#meson.add_install_script('meson_post_install.py')
|
Loading…
Reference in New Issue