mirror of
https://git.allpurposem.at/mat/WiggleWobble.git
synced 2025-12-23 13:01:28 +01:00
22 lines
770 B
Meson
22 lines
770 B
Meson
project('example', 'cpp', 'c',
|
|
# we always take the VERSION file as the single source of truth
|
|
version: run_command('cat', join_paths(meson.project_source_root(), 'VERSION'), check: true).stdout().strip(),
|
|
default_options: ['buildtype=release'],
|
|
)
|
|
|
|
cpp_compiler = meson.get_compiler('cpp')
|
|
if cpp_compiler.has_argument('-std=c++23')
|
|
add_global_arguments('-std=c++23', language: 'cpp')
|
|
elif cpp_compiler.has_argument('-std=c++2b')
|
|
add_global_arguments('-std=c++2b', language: 'cpp')
|
|
else
|
|
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
|
|
endif
|
|
|
|
hyprland_headers = dependency('hyprland')
|
|
|
|
incdir = include_directories('include')
|
|
|
|
subdir('include')
|
|
subdir('src')
|