King_DuckZ
41eeee4e69
Only install if sysconfdir is not the same as the source config file from the source directory.
19 lines
685 B
Meson
19 lines
685 B
Meson
project('orotool', 'cpp', 'c',
|
|
version: '0.2.0',
|
|
meson_version: '>=0.55.0',
|
|
default_options: ['buildtype=debug', 'cpp_std=gnu++17', 'b_ndebug=if-release'],
|
|
license: 'GPL3+',
|
|
)
|
|
|
|
duckhandy_inc = include_directories('subprojects/duckhandy/include')
|
|
date_inc = include_directories('subprojects/date/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')
|
|
|
|
if meson.source_root() != full_config_dir
|
|
install_data(sources: 'orotool.conf', install_dir: full_config_dir)
|
|
endif
|