23 lines
871 B
Meson
23 lines
871 B
Meson
project('duckticker', 'cpp',
|
|
version: '0.1.0',
|
|
meson_version: '>=0.55.0',
|
|
default_options: ['buildtype=debug', 'cpp_std=c++20', 'b_ndebug=if-release'],
|
|
license: 'GPL3+',
|
|
)
|
|
|
|
compiler_opts = ['-DWRENPP_WITH_NAME_GUESSING']
|
|
|
|
global_config = configuration_data()
|
|
global_config.set_quoted('PROJECT_NAME', meson.project_name())
|
|
version_arr = meson.project_version().split('.')
|
|
global_config.set('PROJECT_VERSION_MAJOR', version_arr[0])
|
|
global_config.set('PROJECT_VERSION_MINOR', version_arr[1])
|
|
global_config.set('PROJECT_VERSION_PATCH', version_arr[2])
|
|
global_config.set_quoted('SCRIPT_PATH', get_option('prefix') / get_option('script_path') / '')
|
|
|
|
subdir('src')
|
|
|
|
#full_config_dir = get_option('prefix') / get_option('sysconfdir')
|
|
#if meson.source_root() != full_config_dir
|
|
# install_data(sources: meson.project_name() + '.conf', install_dir: full_config_dir)
|
|
#endif
|