meson: bring MESA_GIT_SHA1 in line with other build systems
authorEric Engestrom <eric@engestrom.ch>
Tue, 24 Oct 2017 17:03:39 +0000 (18:03 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 27 Oct 2017 12:38:37 +0000 (13:38 +0100)
commit05a94a4dfc79f95d597dd6fc08eea4a947eb300c
tree87edb77470fea174b4c20b84e72cda29dea9438b
parent7088622e5fb506b64c906b673a9af0feb9a5ba14
meson: bring MESA_GIT_SHA1 in line with other build systems

Meson's vcs_tag() uses the output of `git describe`, eg.
  17.3-branchpoint-5-gfbf29c3cd15ae831e249+

Whereas the other build systems used a script that outputs only the sha1
of the HEAD commit, eg.
  fbf29c3cd1

Given that this information is used by printing it next to the version
number, there's some redundancy here, and inconsistency between build
systems.

Bring Meson in line by making it use the same script, with the added
advantage of now supporting the MESA_GIT_SHA1_OVERRIDE env var.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
bin/meson.build [new file with mode: 0644]
meson.build
src/meson.build