meson: exclude rst files from being installed with the scripts
and add them nicely to the sphinx_files without referencing '..' paths
This commit is contained in:
parent
ca3bc3eb6d
commit
c4a0f5317e
|
@ -69,6 +69,7 @@ if build_doc
|
|||
meson.current_source_dir()/'..'/'README.rst',
|
||||
meson.current_source_dir()/'..'/'NEWS.rst',
|
||||
)
|
||||
sphinx_files += scripts_doc_files
|
||||
subdir('rst')
|
||||
|
||||
sphinx_conf_data = configuration_data()
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
sphinx_files += files(
|
||||
'existing_scripts.rst',
|
||||
'default_nodes.rst',
|
||||
meson.current_source_dir()/'..'/'..'/'..'/'src'/'scripts'/'default-nodes'/'README.rst',
|
||||
'device.rst',
|
||||
meson.current_source_dir()/'..'/'..'/'..'/'src'/'scripts'/'device'/'README.rst',
|
||||
'linking.rst',
|
||||
meson.current_source_dir()/'..'/'..'/'..'/'src'/'scripts'/'linking'/'README.rst',
|
||||
)
|
||||
|
|
|
@ -136,12 +136,12 @@ common_flags = [
|
|||
add_project_arguments(cc.get_supported_arguments(common_flags), language: 'c')
|
||||
|
||||
subdir('lib')
|
||||
subdir('docs')
|
||||
if build_modules
|
||||
subdir('modules')
|
||||
endif
|
||||
subdir('src')
|
||||
subdir('po')
|
||||
subdir('docs')
|
||||
|
||||
if get_option('tests')
|
||||
subdir('tests')
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
scripts_doc_files_relative = [
|
||||
'default-nodes'/'README.rst',
|
||||
'device'/'README.rst',
|
||||
'linking'/'README.rst',
|
||||
]
|
||||
|
||||
scripts_doc_files = []
|
||||
foreach f : scripts_doc_files_relative
|
||||
scripts_doc_files += files('scripts'/f)
|
||||
endforeach
|
||||
|
||||
if build_tools
|
||||
subdir('tools')
|
||||
endif
|
||||
|
@ -8,6 +19,7 @@ if build_daemon
|
|||
|
||||
install_subdir('scripts',
|
||||
install_dir: wireplumber_data_dir,
|
||||
exclude_files: scripts_doc_files_relative,
|
||||
strip_directory : false
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue