Install config file to etc
Only install if sysconfdir is not the same as the source config file from the source directory.
This commit is contained in:
parent
2221aef77c
commit
41eeee4e69
1 changed files with 7 additions and 0 deletions
|
@ -9,4 +9,11 @@ duckhandy_inc = include_directories('subprojects/duckhandy/include')
|
||||||
date_inc = include_directories('subprojects/date/include')
|
date_inc = include_directories('subprojects/date/include')
|
||||||
magic_enum_inc = include_directories('subprojects/magic_enum/include')
|
magic_enum_inc = include_directories('subprojects/magic_enum/include')
|
||||||
|
|
||||||
|
full_config_dir = get_option('prefix') / get_option('sysconfdir')
|
||||||
|
full_config_path = get_option('prefix') / get_option('sysconfdir') / meson.project_name() + '.conf'
|
||||||
|
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|
||||||
|
if meson.source_root() != full_config_dir
|
||||||
|
install_data(sources: 'orotool.conf', install_dir: full_config_dir)
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue