meson: Cleanup build files

Remove some twice declared variables and keep code style
This commit is contained in:
Rafał Dzięgiel
2021-09-08 20:44:12 +02:00
parent b5007d12a1
commit 6cddb1a16d
6 changed files with 81 additions and 85 deletions

View File

@@ -11,13 +11,13 @@ project('com.github.rafostar.Clapper', 'c', 'cpp',
gnome = import('gnome')
i18n = import('i18n')
python = import('python')
python_bin = python.find_installation('python3')
pkgdatadir = join_paths(get_option('datadir'), meson.project_name())
bindir = join_paths(get_option('prefix'), get_option('bindir'))
libdir = join_paths(get_option('prefix'), get_option('libdir'))
datadir = join_paths(get_option('prefix'), get_option('datadir'))
if not python_bin.found()
error('No valid python3 binary found')
endif
pkglibdir = join_paths(libdir, meson.project_name())
pkgdatadir = join_paths(datadir, meson.project_name())
if get_option('clapper-lib')
subdir('lib')
@@ -28,11 +28,14 @@ if get_option('clapper-player')
subdir('data')
subdir('po')
installdir = join_paths(get_option('prefix'), 'share', meson.project_name())
install_subdir('src', install_dir : installdir)
install_subdir('extras', install_dir : installdir)
install_subdir('css', install_dir : installdir)
install_subdir('ui', install_dir : installdir)
install_subdir('src', install_dir: pkgdatadir)
install_subdir('extras', install_dir: pkgdatadir)
install_subdir('css', install_dir: pkgdatadir)
install_subdir('ui', install_dir: pkgdatadir)
python_bin = python.find_installation('python3')
if not python_bin.found()
error('No valid python3 binary found')
endif
meson.add_install_script('build-aux/meson/postinstall.py')
endif