King_DuckZ
8ce0e362bb
To run the binary while debugging you should now configure with -Dscript_path=$HOME/your/source/dir
24 lines
848 B
Meson
24 lines
848 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']
|
|
|
|
full_data_dir = get_option('prefix') / get_option('datadir')
|
|
|
|
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_data_dir / get_option('script_path') / '')
|
|
|
|
subdir('src')
|
|
|
|
if meson.project_source_root() != full_data_dir
|
|
install_data(sources: 'script/main.wren', install_dir: full_data_dir)
|
|
endif
|