diff --git a/meson_options.txt b/meson_options.txt index c1024c4..c186aea 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,2 @@ option('base_url', type: 'string', value: 'https://api.originsro.org') option('database_file', type: 'string', value: 'originsro.db3') -option('config_file', type: 'string', value: 'orotool.conf') diff --git a/src/meson.build b/src/meson.build index 550c572..d2dd846 100644 --- a/src/meson.build +++ b/src/meson.build @@ -22,7 +22,7 @@ endif conf = configuration_data() conf.set_quoted('BASE_URL', base_url) conf.set_quoted('DATABASE', get_option('database_file')) -conf.set_quoted('CONFIG_FILE_PATH', get_option('prefix') / get_option('sysconfdir') / get_option('config_file')) +conf.set_quoted('CONFIG_FILE_PATH', get_option('prefix') / get_option('sysconfdir') / meson.project_name() + '.conf') project_config_file = configure_file( input: 'config.hpp.in', output: meson.project_name() + '_config.hpp',