Changed version detection to work at compile time instead of configure time

This commit is contained in:
Rexy712
2018-12-11 13:29:05 -08:00
parent b5815149a3
commit 9a1856ace5
6 changed files with 50 additions and 62 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/python
import subprocess
output = subprocess.run(['git', 'describe', "--always", "--dirty", "--abbrev", "--match=\"NeVeRmAtCh\""], stdout=subprocess.PIPE).stdout.decode('utf-8').rstrip()
if output:
print("#define GIT_COMMIT_HASH " + '"' + output + '"')