mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
meson: generate version.hxx on compile
This fixes local builds (re-generates version.hxx if it gets removed), ninja dist now works correctly too. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
This commit is contained in:
parent
f34a44e775
commit
bc8e55b036
3 changed files with 6 additions and 1 deletions
|
@ -38,5 +38,5 @@ foreach dep : dep_names
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
# compile the main project
|
# compile the main project
|
||||||
executable('luppp', luppp_src,
|
executable('luppp', luppp_src + [version_hxx],
|
||||||
dependencies: deps)
|
dependencies: deps)
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
version_hxx = vcs_tag(
|
||||||
|
input : 'version.hxx.in',
|
||||||
|
output : 'version.hxx')
|
||||||
|
|
||||||
luppp_src = files(
|
luppp_src = files(
|
||||||
'audiobuffer.cxx',
|
'audiobuffer.cxx',
|
||||||
'controllerupdater.cxx',
|
'controllerupdater.cxx',
|
||||||
|
|
1
src/version.hxx.in
Normal file
1
src/version.hxx.in
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#define GIT_VERSION "@VCS_TAG@"
|
Loading…
Add table
Reference in a new issue