diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-31 00:48:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-31 00:48:04 +0200 |
commit | b99539af570cc725ca3881dfbb2ed9e6b202e2f6 (patch) | |
tree | 92c5b6e74f60a735c36cf7a44b1c523d345a015d /meson.build | |
parent | 1d7c1e7d14c7d92cc6c5a0f824b7eb8a9b61688f (diff) |
Add --version command
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 083e4d8..c8ffa23 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('gpu-screen-recorder', ['c', 'cpp'], version : '4.1.5', default_options : ['warning_level=2']) +project('gpu-screen-recorder', ['c', 'cpp'], version : '4.1.6', default_options : ['warning_level=2']) add_project_arguments('-Wshadow', language : ['c', 'cpp']) if get_option('buildtype') == 'debug' @@ -69,6 +69,8 @@ if get_option('portal') == true add_project_arguments('-DGSR_PORTAL', language : ['c', 'cpp']) endif +add_project_arguments('-DGSR_VERSION="' + meson.project_version() + '"', language: ['c', 'cpp']) + executable('gsr-kms-server', 'kms/server/kms_server.c', dependencies : dependency('libdrm'), c_args : '-fstack-protector-all', install : true) executable('gpu-screen-recorder', src, dependencies : dep, install : true) |