diff options
Diffstat (limited to 'rust/qmk-hid-com/src_c/meson.build')
-rw-r--r-- | rust/qmk-hid-com/src_c/meson.build | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/rust/qmk-hid-com/src_c/meson.build b/rust/qmk-hid-com/src_c/meson.build index 9e8357f..20388b8 100644 --- a/rust/qmk-hid-com/src_c/meson.build +++ b/rust/qmk-hid-com/src_c/meson.build @@ -4,22 +4,9 @@ project( 'qmk-unicode-type', 'c', version: '0.1', license: 'GPL-3.0-or-later', - default_options : [ - 'buildtype=release', - 'default_library=static' - ], ) -git = find_program('git', native: true, required: false) - -if not git.found() - add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'c') -else - git_commit_hash = run_command([git.full_path(), 'describe', '--always', '--tags'], check: true).stdout().strip() - git_branch = run_command([git.full_path(), 'rev-parse', '--abbrev-ref', 'HEAD'], check: true).stdout().strip() - version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash, git_branch) - add_project_arguments('-DVERSION=@0@'.format(version), language: 'c') -endif +add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'c') cc = meson.get_compiler('c') @@ -47,5 +34,6 @@ executable( libhid, rt, ], + install: true ) |