X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=9dbfd22648c140dbfded07ed3133bc95fc3e00e4;hb=e9bec1e17f41f66d3567148e110fe8a3b6451fb3;hp=296615e1ec7632879505ddebdfe45a2080088a81;hpb=d82236748bd88b6dee9dd82653fbf0f766bb6cae;p=nageru diff --git a/meson.build b/meson.build index 296615e..9dbfd22 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('nageru', 'cpp', default_options: ['buildtype=debugoptimized']) +project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'], version: '1.8.0-pre') cxx = meson.get_compiler('cpp') @@ -7,7 +7,7 @@ code = '''#include int main() { printf("Hello, world!\n"); return 0; } ''' if cxx.links(code, args: '-fuse-ld=lld', name: 'check for LLD') - add_project_link_arguments('-fuse-ld=lld') + add_project_link_arguments('-fuse-ld=lld', language: 'cpp') endif # Add the right MOVIT_SHADER_DIR definition. @@ -17,6 +17,9 @@ if r.returncode() != 0 endif add_project_arguments('-DMOVIT_SHADER_DIR="' + r.stdout().strip() + '"', language: 'cpp') +# Make the Nageru version available as a #define. +add_project_arguments('-DNAGERU_VERSION="' + meson.project_version() + '"', language: 'cpp') + # DeckLink has these issues, and we include it from various places. if cxx.has_argument('-Wno-non-virtual-dtor') add_project_arguments('-Wno-non-virtual-dtor', language: 'cpp')