main.c: add -v, -V, -d command line options

This commit is contained in:
Johan Malm 2021-03-06 11:38:17 +00:00
parent 5a36fef547
commit 5101ee87eb
2 changed files with 15 additions and 20 deletions

View file

@ -1,6 +1,7 @@
project(
'labwc',
'c',
version: '0.1.0',
license: 'GPL-2',
default_options: [
'c_std=c11',
@ -26,6 +27,9 @@ add_project_arguments(cc.get_supported_arguments(
language: 'c',
)
version='"@0@"'.format(meson.project_version())
add_project_arguments('-DLABWC_VERSION=@0@'.format(version), language: 'c')
wlroots_proj = subproject(
'wlroots',
default_options: ['examples=false'],