project('duckticker', 'cpp', version: '0.1.1', 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'] full_data_dir = get_option('prefix') / get_option('datadir') full_script_dir = full_data_dir / get_option('script_path') / '' 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', full_script_dir) subdir('src') if not get_option('script_path').startswith(meson.project_source_root()) install_data(sources: 'script/main.wren', install_dir: get_option('script_path')) endif