src: move scripts to their own directory, install in $prefix/share/

This commit is contained in:
George Kiagiadakis 2021-02-01 17:44:57 +02:00
parent 9fa17e04b4
commit e52bd4468d
10 changed files with 10 additions and 3 deletions

View file

@ -26,6 +26,12 @@ else
wireplumber_config_dir = join_paths(get_option('prefix'), get_option('sysconfdir'), 'wireplumber')
endif
if get_option('datadir').startswith('/')
wireplumber_data_dir = join_paths(get_option('datadir'), 'wireplumber')
else
wireplumber_data_dir = join_paths(get_option('prefix'), get_option('datadir'), 'wireplumber')
endif
if get_option('wrap_mode') == 'nodownload'
cpptoml_dep = dependency('cpptoml')
else

View file

@ -1 +0,0 @@
../common/monitor-alsa.lua

View file

@ -1 +0,0 @@
../common/monitor-bluez5.lua

View file

@ -1 +0,0 @@
../common/monitor-v4l2.lua

View file

@ -8,6 +8,10 @@ install_subdir('config',
install_dir: wireplumber_config_dir,
strip_directory : true
)
install_subdir('scripts',
install_dir: wireplumber_data_dir,
strip_directory : false
)
executable('wireplumber',
wp_sources,