2022-05-12 21:40:27 +00:00
|
|
|
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']
|
|
|
|
|
2022-05-14 17:33:22 +00:00
|
|
|
full_data_dir = get_option('prefix') / get_option('datadir')
|
|
|
|
|
2022-05-14 17:13:10 +00:00
|
|
|
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])
|
2022-05-14 17:33:22 +00:00
|
|
|
global_config.set_quoted('SCRIPT_PATH', full_data_dir / get_option('script_path') / '')
|
2022-05-14 17:13:10 +00:00
|
|
|
|
2022-05-12 21:40:27 +00:00
|
|
|
subdir('src')
|
|
|
|
|
2022-05-14 17:33:22 +00:00
|
|
|
if meson.project_source_root() != full_data_dir
|
|
|
|
install_data(sources: 'script/main.wren', install_dir: full_data_dir)
|
|
|
|
endif
|