1
if meson.is_subproject()
2
project('howdy-gtk', license: 'MIT', version: 'beta', meson_version: '>= 0.64.0')
5
datadir = get_option('prefix') / get_option('datadir') / 'howdy-gtk'
6
py_conf = configuration_data(paths_dict)
7
py_conf.set('data_dir', datadir)
10
py_paths = configure_file(
11
input: 'src/paths.py.in',
13
configuration: py_conf,
21
'src/paths_factory.py',
27
py = import('python').find_installation(
28
# modules: ['gi', 'elevate']
32
if get_option('install_in_site_packages')
33
pysourcesinstalldir = join_paths(py.get_install_dir(), 'howdy-gtk')
35
pysourcesinstalldir = get_option('py_sources_dir') != '' ? get_option('py_sources_dir') / 'howdy-gtk' : join_paths(get_option('prefix'), get_option('libdir'), 'howdy-gtk')
38
if get_option('install_in_site_packages')
43
install_tag: 'py_sources',
49
install_dir: pysourcesinstalldir,
50
install_mode: 'r--r--r--',
51
install_tag: 'py_sources',
59
install_data(logos, install_dir: datadir)
61
interface_files = files(
63
'src/onboarding.glade',
65
install_data(interface_files, install_dir: datadir)
67
cli_path = join_paths(pysourcesinstalldir, 'init.py')
68
conf_data = configuration_data({ 'script_path': cli_path })
72
input: 'bin/howdy-gtk.in',
74
configuration: conf_data
78
install_mode: 'rwxr-xr-x',
79
install_dir: get_option('prefix') / get_option('bindir'),