mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
meson: Cleanup build files
Remove some twice declared variables and keep code style
This commit is contained in:
23
meson.build
23
meson.build
@@ -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
|
||||
|
Reference in New Issue
Block a user