2020-03-29 14:08:15 +00:00
|
|
|
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
|
|
|
moduledir = join_paths(pkgdatadir, meson.project_name())
|
|
|
|
sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
|
2020-08-11 17:27:23 +00:00
|
|
|
|
2020-03-29 14:08:15 +00:00
|
|
|
python = import('python')
|
2020-08-11 17:27:23 +00:00
|
|
|
|
2020-03-29 14:08:15 +00:00
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('PYTHON', python.find_installation('python3').path())
|
|
|
|
conf.set('VERSION', meson.project_version())
|
|
|
|
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
|
|
|
conf.set('pkgdatadir', pkgdatadir)
|
|
|
|
conf.set('sysconfigdir', sysconfdir)
|
2021-11-18 16:27:37 +00:00
|
|
|
conf.set('log_print_output', get_option('log_print_output'))
|
|
|
|
conf.set('log_print_stack', get_option('log_print_stack'))
|
2021-11-17 03:42:29 +00:00
|
|
|
conf.set('use_flatpak', get_option('use_flatpak'))
|
2020-08-11 17:27:23 +00:00
|
|
|
|
|
|
|
configure_file(
|
2020-03-29 14:08:15 +00:00
|
|
|
input: 'diffuse.in',
|
|
|
|
output: 'diffuse',
|
|
|
|
configuration: conf,
|
2020-08-11 17:27:23 +00:00
|
|
|
install: true,
|
2020-03-29 14:08:15 +00:00
|
|
|
install_dir: get_option('bindir')
|
2020-08-11 17:27:23 +00:00
|
|
|
)
|
|
|
|
|
2021-11-17 03:42:29 +00:00
|
|
|
configure_file(
|
|
|
|
input: 'constants.py.in',
|
|
|
|
output: 'constants.py',
|
|
|
|
configuration: conf,
|
|
|
|
install: true,
|
|
|
|
install_dir: moduledir
|
|
|
|
)
|
|
|
|
|
2020-03-29 14:08:15 +00:00
|
|
|
diffuse_sources = [
|
|
|
|
'__init__.py',
|
|
|
|
'main.py',
|
|
|
|
'utils.py',
|
|
|
|
]
|
2020-12-05 20:04:13 +00:00
|
|
|
|
2020-03-29 14:08:15 +00:00
|
|
|
install_data(diffuse_sources, install_dir: moduledir)
|
2021-11-18 18:12:20 +00:00
|
|
|
install_subdir('vcs', install_dir: moduledir, strip_directory: false)
|